/* ==========================================================================
   ROAR Showcase - Floating Demo Bar Stylesheet
   Barra superior flotante no invasiva para navegar entre las 5 demos
   ========================================================================== */

:root {
  --roar-orange: #ff7a00;
  --roar-orange-glow: rgba(255, 122, 0, 0.35);
  --roar-dark: #0a0d14;
  --roar-card: #121826;
  --roar-border: rgba(255, 255, 255, 0.12);
  --roar-text: #f1f5f9;
  --roar-text-muted: #94a3b8;
}

/* Floating Top Bar */
.roar-demo-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999999;
  background: rgba(10, 13, 20, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--roar-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  color: var(--roar-text);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.roar-demo-bar.is-collapsed {
  transform: translateY(-100%);
  pointer-events: none;
}

.roar-demo-bar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Left Brand */
.roar-demo-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.roar-demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.25), rgba(255, 77, 0, 0.1));
  border: 1px solid rgba(255, 122, 0, 0.5);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ff9d42;
  text-transform: uppercase;
}

.roar-demo-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff7a00;
  box-shadow: 0 0 8px #ff7a00;
  animation: roarPulse 1.8s infinite;
}

@keyframes roarPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.roar-demo-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.roar-demo-title span {
  color: var(--roar-text-muted);
  font-weight: 400;
  font-size: 12px;
}

.roar-demo-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 8px 4px 2px;
  flex-shrink: 1;
}

.roar-demo-nav::-webkit-scrollbar {
  display: none;
}

.roar-demo-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.roar-demo-pill:hover,
.roar-demo-pill:active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.roar-demo-pill.is-active {
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.3), rgba(255, 122, 0, 0.15));
  color: #ff9d42;
  border-color: rgba(255, 122, 0, 0.6);
  font-weight: 700;
  box-shadow: 0 0 12px rgba(255, 122, 0, 0.25);
}

.roar-demo-pill .icon {
  font-size: 14px;
}

/* Right Actions */
.roar-demo-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.roar-demo-btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #ff7a00, #ff5500);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(255, 122, 0, 0.35);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.roar-demo-btn-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 122, 0, 0.5);
  filter: brightness(1.1);
}

.roar-demo-btn-toggle {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--roar-text-muted);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
}

.roar-demo-btn-toggle:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

/* Floating Reopen Button (when collapsed) */
.roar-demo-floater {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 999998;
  display: none;
  align-items: center;
  gap: 8px;
  background: rgba(10, 13, 20, 0.94);
  border: 1px solid rgba(255, 122, 0, 0.5);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(255, 122, 0, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

.roar-demo-floater.is-visible {
  display: flex;
  animation: roarFloatIn 0.35s ease;
}

@keyframes roarFloatIn {
  from { transform: translateY(-20px) scale(0.9); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.roar-demo-floater:hover {
  transform: translateY(-2px);
  border-color: #ff7a00;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 122, 0, 0.4);
}

/* Body offset adjustment */
body.has-demo-bar {
  padding-top: 50px !important;
}

/* Collapsed Header & Category repositioning */
body:not(.has-demo-bar) .burger-nav,
body:not(.has-demo-bar) .fiam-nav,
body:not(.has-demo-bar) .kiosk-nav,
body:not(.has-demo-bar) .lib-nav,
body:not(.has-demo-bar) .merc-nav {
  top: 0 !important;
}

body:not(.has-demo-bar) .filter-sticky-bar {
  top: 58px !important;
}

/* Mobile Optimizations */
@media (max-width: 900px) {
  .roar-demo-title span {
    display: none;
  }
}

@media (max-width: 768px) {
  .roar-demo-bar-inner {
    padding: 6px 10px;
    gap: 8px;
  }
  .roar-demo-title {
    display: none;
  }
  .roar-demo-badge {
    padding: 3px 8px;
    font-size: 10px;
  }
  .roar-demo-pill {
    padding: 5px 10px;
    font-size: 11px;
  }
  .roar-demo-btn-cta span {
    display: none;
  }
  .roar-demo-btn-cta {
    padding: 6px 10px;
  }
  body.has-demo-bar {
    padding-top: 48px !important;
  }
}
