/* ==========================================================================
   VELANOV — Monochrome Editorial Sanctuary Design System
   Matches Velanov App 1:1 (Geist + Newsreader + Neutral Grayscale Palette)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700;800&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;1,6..72,400;1,6..72,500;1,6..72,600&family=Outfit:wght@500;600;700;800&family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=swap');

:root {
  /* Neutral scale ported 1:1 from app's tokens.dart */
  --v-surface: #F9F9F9;
  --v-surface-container-lowest: #FFFFFF;
  --v-surface-container-low: #F3F3F4;
  --v-surface-container: #EEEEEE;
  --v-surface-container-high: #E8E8E8;
  --v-surface-container-highest: #E2E2E2;
  
  --v-on-surface: #171717;
  --v-on-surface-variant: #525252;
  --v-outline: #737373;
  --v-outline-variant: #D4D4D4;
  --v-outline-light: #E5E5E5;
  
  --v-primary: #171717;
  --v-primary-hover: #000000;
  --v-primary-container: #262626;
  --v-on-primary: #FFFFFF;

  --v-neutral-50: #FAFAFA;
  --v-neutral-100: #F5F5F5;
  --v-neutral-200: #E5E5E5;
  --v-neutral-300: #D4D4D4;
  --v-neutral-400: #A3A3A3;
  --v-neutral-500: #737373;
  --v-neutral-600: #525252;
  --v-neutral-700: #404040;
  --v-neutral-800: #262626;
  --v-neutral-900: #171717;

  /* Fonts */
  --v-font-sans: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  --v-font-heading: 'Geist', sans-serif;
  --v-font-serif: 'Newsreader', Georgia, serif;

  /* Radii */
  --v-radius-sm: 4px;
  --v-radius-lg: 8px;
  --v-radius-xl: 12px;
  --v-radius-xxl: 16px;
  --v-radius-full: 9999px;

  /* Shadows */
  --v-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --v-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --v-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

/* Base App Body Style */
body {
  background-color: var(--v-surface);
  color: var(--v-on-surface);
  font-family: var(--v-font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--v-font-heading);
  color: var(--v-on-surface);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

h1 { font-size: clamp(2.4rem, 4.5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }

.serif-quote {
  font-family: var(--v-font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: #171717;
  line-height: 1.5;
  font-weight: 400;
}

.edition-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--v-radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--v-surface-container-highest);
  color: var(--v-on-surface);
  border: 1px solid var(--v-outline-light);
}

.edition-badge-dark {
  background: #171717;
  color: #FFFFFF;
  border-color: #262626;
}

/* Emergency Helpline Top Banner */
.helpline-top-bar {
  background: #171717;
  color: #F5F5F5;
  font-size: 0.85rem;
  padding: 0.6rem 1rem;
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.helpline-top-bar a {
  color: #FDE047;
  text-decoration: underline;
  font-weight: 600;
  margin-left: 0.4rem;
}

/* Header & Navbar */
.velanov-navbar {
  background: rgba(249, 249, 249, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--v-outline-light);
  padding: 0.85rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar-brand-custom {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--v-font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  color: #171717 !important;
  text-decoration: none;
  letter-spacing: -0.03em;
}

.brand-icon-box {
  width: 36px;
  height: 36px;
  border-radius: var(--v-radius-lg);
  background: #171717;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.nav-link-custom {
  font-family: var(--v-font-sans);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--v-on-surface-variant) !important;
  padding: 0.45rem 0.85rem !important;
  border-radius: var(--v-radius-lg);
  transition: all 0.15s ease;
}

.nav-link-custom:hover,
.nav-link-custom.active {
  color: #171717 !important;
  background-color: var(--v-surface-container-high);
}

/* Custom Buttons */
.btn-velanov-dark {
  background-color: var(--v-primary);
  color: var(--v-on-primary);
  border: 1px solid var(--v-primary);
  border-radius: var(--v-radius-full);
  padding: 0.65rem 1.45rem;
  font-family: var(--v-font-sans);
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-velanov-dark:hover {
  background-color: var(--v-primary-hover);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: var(--v-shadow-md);
}

.btn-velanov-outline {
  background-color: transparent;
  color: var(--v-primary);
  border: 1px solid var(--v-outline-variant);
  border-radius: var(--v-radius-full);
  padding: 0.65rem 1.45rem;
  font-family: var(--v-font-sans);
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-velanov-outline:hover {
  background-color: var(--v-surface-container);
  border-color: #737373;
  color: #000000;
}

.btn-velanov-sm {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
}

.btn-velanov-lg {
  padding: 0.85rem 2rem;
  font-size: 1.05rem;
}

/* Cards & Museum Editorial Aesthetics */
.card-velanov {
  background: var(--v-surface-container-lowest);
  border: 1px solid var(--v-outline-light);
  border-radius: var(--v-radius-xxl);
  padding: 1.85rem;
  transition: all 0.25s ease;
  box-shadow: var(--v-shadow-sm);
  height: 100%;
}

.card-velanov:hover {
  border-color: #A3A3A3;
  box-shadow: var(--v-shadow-md);
  transform: translateY(-2px);
}

.card-velanov-dark {
  background: #171717;
  color: #F5F5F5;
  border: 1px solid #262626;
  border-radius: var(--v-radius-xxl);
  padding: 2.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-velanov-dark h3, 
.card-velanov-dark h4, 
.card-velanov-dark h2 {
  color: #FFFFFF;
}

.card-velanov-dark p {
  color: #A3A3A3;
}

/* Dashed Sanctuary Frame (from app's dashed-frame) */
.dashed-sanctuary-frame {
  border: 1.5px dashed #404040;
  border-radius: var(--v-radius-xxl);
  padding: 1.5rem;
  background: rgba(23, 23, 23, 0.4);
}

/* Avatar Subtle Breathing Animation */
.avatar-breathe {
  animation: avatar-breathe 5s ease-in-out infinite;
}

@keyframes avatar-breathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* Voice Equalizer */
.eq-bar {
  display: inline-block;
  width: 3px;
  height: 6px;
  border-radius: 2px;
  background: currentColor;
  animation: eq-bar 0.9s ease-in-out infinite;
}
.eq-bar:nth-child(2) { animation-delay: 0.15s; }
.eq-bar:nth-child(3) { animation-delay: 0.3s; }
.eq-bar:nth-child(4) { animation-delay: 0.45s; }

@keyframes eq-bar {
  0%, 100% { height: 4px; }
  50% { height: 16px; }
}

/* Chat Simulator Bubbles (App-style) */
.chat-container-app {
  background: #171717;
  border-radius: var(--v-radius-xxl);
  padding: 1.75rem;
  color: #F5F5F5;
  border: 1px solid #262626;
}

.bubble-user {
  background: #262626;
  color: #FFFFFF;
  padding: 0.9rem 1.25rem;
  border-radius: 18px 18px 4px 18px;
  max-width: 85%;
  margin-left: auto;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  border: 1px solid #333333;
}

.bubble-companion {
  background: #1F1F1F;
  color: #ECEFF4;
  padding: 1rem 1.35rem;
  border-radius: 18px 18px 18px 4px;
  max-width: 90%;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Box Breathing Simulator */
.breath-box-app {
  background: var(--v-surface-container-lowest);
  border: 1px solid var(--v-outline-light);
  border-radius: var(--v-radius-xxl);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--v-shadow-sm);
}

.breath-orb-app {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: #171717;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 2rem auto;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.15);
  transition: transform 4s ease-in-out, opacity 4s ease-in-out;
}

/* Soundscape Waveform */
.waveform-bars {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 44px;
  margin: 1.25rem 0;
}

.waveform-bar {
  flex: 1;
  background: #D4D4D4;
  border-radius: 3px;
  height: 20%;
  transition: height 0.2s ease, background-color 0.2s ease;
}

.waveform-bar.playing {
  background: #171717;
  animation: pulseApp 1.2s ease-in-out infinite alternate;
}

@keyframes pulseApp {
  from { height: 15%; }
  to { height: 95%; }
}

/* Pricing Table */
.pricing-card-featured {
  border: 2px solid #171717 !important;
  position: relative;
  box-shadow: var(--v-shadow-lg) !important;
}

.pricing-badge-popular {
  position: absolute;
  top: -12px;
  right: 24px;
  background: #171717;
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--v-radius-full);
}

/* FAQ Accordion Styling */
.accordion-velanov .accordion-item {
  background: var(--v-surface-container-lowest);
  border: 1px solid var(--v-outline-light);
  border-radius: var(--v-radius-lg) !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.accordion-velanov .accordion-button {
  background: var(--v-surface-container-lowest);
  color: var(--v-on-surface);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 1.25rem 1.5rem;
  box-shadow: none !important;
}

.accordion-velanov .accordion-button:not(.collapsed) {
  background: var(--v-surface-container-low);
  color: var(--v-primary);
}

.accordion-velanov .accordion-body {
  padding: 1.25rem 1.5rem;
  color: var(--v-on-surface-variant);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* Footer */
.velanov-footer {
  background: #171717;
  color: #D4D4D4;
  padding: 4.5rem 0 2rem 0;
  border-top: 1px solid #262626;
  margin-top: auto;
}

.velanov-footer h5 {
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 1.2rem;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-nav-list a {
  color: #A3A3A3;
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.15s ease;
}

.footer-nav-list a:hover {
  color: #FFFFFF;
}

.footer-divider {
  border-color: #262626;
  margin: 3rem 0 1.5rem 0;
}
