/*
Theme Name: LoveRadar Theme
Theme URI: https://loveradar.app
Author: LoveRadar
Description: Premium dark theme for LoveRadar — matches the mobile app design system.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: loveradar-theme
*/

/* ═══════════════════════════════════════════════════════════════════
   DESIGN TOKENS  (from src/lib/theme.ts)
   ═══════════════════════════════════════════════════════════════════ */
:root {
  --bg:           #110e20;
  --bg-elevated:  #1a1528;
  --plum:         #1d1735;
  --cream:        #f1e8da;
  --lavender:     #a89cc2;
  --gold:         #dfae68;
  --rose:         #e8697e;
  --heart:        #c9789c;
  --link:         #e8697e;

  /* Derived */
  --card-plum-top:    #1d1735;
  --card-plum-bottom: #110e20;
  --border-glow:  rgba(232, 105, 126, 0.18);
  --glass:        rgba(17, 14, 32, 0.65);
  --glass-border: rgba(168, 156, 194, 0.08);
}

/* ═══════════════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}


/* ═══════════════════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--cream);
  font-weight: 700;
  line-height: 1.15;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: rgba(232, 105, 126, 0.4);
  text-underline-offset: 3px;
  transition: color 0.25s, text-decoration-color 0.25s;
}
a:hover {
  color: var(--cream);
  text-decoration-color: var(--cream);
}

p { color: var(--lavender); }

/* ═══════════════════════════════════════════════════════════════════
   HEADER — frosted glass bar (like BottomTabBar)
   ═══════════════════════════════════════════════════════════════════ */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  background: transparent;
  border-bottom: none;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.site-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin: 0;
}
.site-title a { color: var(--cream); text-decoration: none; }
.site-title span { color: var(--rose); }

/* Navigation + language selector */
.main-navigation { display: flex; align-items: center; gap: 1.5rem; }
.main-navigation ul { list-style: none; display: flex; gap: 1.8rem; margin: 0; padding: 0; }
.main-navigation a {
  color: var(--lavender);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.25s;
}
.main-navigation a:hover { color: var(--cream); }

/* ── Language selector — gold letters like app gold captions ── */
.lang-selector {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 50px;
  background: rgba(223, 174, 104, 0.06);
  border: 1px solid rgba(223, 174, 104, 0.15);
}
.lang-selector a {
  color: rgba(223, 174, 104, 0.5);
  font-weight: 600;
  font-size: 0.8rem;
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color 0.3s;
}
.lang-selector a:hover { color: var(--gold); }
.lang-selector a.active { color: var(--gold); }
.lang-selector .separator { color: rgba(255,255,255,0.1); font-size: 0.8rem; }

/* ═══════════════════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════════════════ */
.site-main {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ═══════════════════════════════════════════════════════════════════
   HERO — full viewport, dramatic, text over the city bg
   ═══════════════════════════════════════════════════════════════════ */
.hero-section {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 2rem;
  position: relative;
  /* Break out of .site-main max-width */
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  /* Upscaled background image — hero only with dark overlay gradients for supreme contrast */
  background: 
    linear-gradient(180deg, rgba(17, 14, 32, 0.75) 0%, rgba(17, 14, 32, 0.35) 50%, rgba(17, 14, 32, 0.95) 100%),
    url('assets/website-bg-starry-city.png') center bottom / cover no-repeat;
}
/* Soft gradient fade at bottom so hero blends into dark sections below */
.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

/* Pulsing logo icon animation */
@keyframes logo-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.hero-section h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  margin-bottom: 1.5rem;
  color: var(--cream);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7), 0 2px 4px rgba(0, 0, 0, 0.9);
}
.hero-section h1 em {
  font-style: italic;
  color: var(--rose);
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--cream);
  max-width: 550px;
  margin: 0 auto 3rem;
  line-height: 1.7;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}
/* ── Hero layers text (rotating slogans from app) ── */
.hero-layers {
  margin: 2rem auto 3rem;
  max-width: 400px;
}
.hero-layer-text {
  font-size: 1rem;
  color: var(--lavender);
  text-align: center;
  line-height: 1.8;
  margin: 0;
}

/* ── Official Google Play Badge CTA (Clean, No Extra Outlines or Muddy Shadows) ── */
.google-play-cta {
  display: inline-block;
  text-decoration: none !important;
  line-height: 0;
  border-radius: 9px;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}
.google-play-cta:hover {
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
}
.play-badge-img {
  display: block;
  height: 70px;
  width: auto;
  pointer-events: none;
}
@media (max-width: 768px) {
  .play-badge-img {
    height: 56px;
  }
}

.hero-scroll-hint {
  margin-top: 3rem;
  color: var(--lavender);
  font-size: 1.2rem;
  opacity: 0.4;
  animation: pulse-hint 2s ease-in-out infinite;
  position: relative;
  z-index: 2;
}
@keyframes pulse-hint {
  0%, 100% { opacity: 0.25; transform: translateY(0); }
  50% { opacity: 0.5; transform: translateY(5px); }
}

/* ═══════════════════════════════════════════════════════════════════
   CARD SYSTEM — plum gradient bg + accent glow + living border
   (CSS recreation of GradientBorderCard with bgAccent)
   ═══════════════════════════════════════════════════════════════════ */

/* Base glass card */
.glass-card {
  background: linear-gradient(180deg, rgba(29, 23, 53, 0.75) 0%, rgba(17, 14, 32, 0.9) 100%);
  border-radius: 24px;
  border: 1px solid rgba(168, 156, 194, 0.12);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 
    0 12px 40px rgba(15, 10, 29, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s;
}
.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 20px 48px rgba(15, 10, 29, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border-color: rgba(168, 156, 194, 0.22);
}
/* Accent glow layer (radial from top) */
.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 70% 50% at 50% -5%, rgba(232, 105, 126, 0.12), transparent),
    radial-gradient(ellipse 55% 40% at 85% 105%, rgba(223, 174, 104, 0.08), transparent);
  pointer-events: none;
}
/* Fine grain texture */
.glass-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  pointer-events: none;
  opacity: 0.4;
}

/* Living border card (used for featured cards) */
.living-border-card {
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  /* Animated gradient border */
  border: none;
  outline: none;
  box-shadow: 0 12px 40px rgba(15, 10, 29, 0.5);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.living-border-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(15, 10, 29, 0.7);
}
.living-border-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 25px;
  background: conic-gradient(
    from 0deg,
    #e8697e 0deg,
    #3a2030 25deg,
    #e8697e 50deg,
    #1a1018 80deg,
    #6b3045 108deg,
    #2a1820 136deg,
    #e8697e 172deg,
    #1a1018 200deg,
    #8b4055 230deg,
    #2a1820 260deg,
    #e8697e 295deg,
    #3a2030 324deg,
    #e8697e 360deg
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1.2px;
  pointer-events: none;
  z-index: 1;
}
/* Inner bg */
.living-border-card > .card-inner {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, rgba(29, 23, 53, 0.8) 0%, rgba(17, 14, 32, 0.95) 100%);
  border-radius: 23px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.living-border-card > .card-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 70% 50% at 50% -5%, rgba(232, 105, 126, 0.12), transparent),
    radial-gradient(ellipse 55% 40% at 85% 105%, rgba(223, 174, 104, 0.08), transparent);
  pointer-events: none;
}
}
.living-border-card > .card-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 70% 50% at 50% -5%, rgba(232, 105, 126, 0.09), transparent),
    radial-gradient(ellipse 55% 40% at 85% 105%, rgba(223, 174, 104, 0.07), transparent);
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════
   FEATURES SECTION — asymmetric, each block is unique
   ═══════════════════════════════════════════════════════════════════ */

.section-label {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.section-label::before { content: '✦ '; }

/* Feature: Split (image + text) */
.feature-split {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin: 6rem 0;
}
.feature-split.reverse { flex-direction: row-reverse; }
.feature-split .feature-text { flex: 1; }
.feature-split .feature-media { flex: 1; }
.feature-split h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.feature-split p { font-size: 1.1rem; line-height: 1.75; max-width: 480px; }

/* Feature: Full-width statement */
.feature-statement {
  text-align: center;
  padding: 6rem 3rem;
  margin: 6rem 0;
  border-radius: 24px;
}
.feature-statement h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}
.feature-statement p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.15rem;
  line-height: 1.8;
}

/* Feature: Stats row */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 3rem;
}
.stat-item { text-align: center; }
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--gold);
  font-weight: 700;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--lavender);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.3rem;
}

/* Feature: Question cards carousel */
.question-cards {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3rem;
}
.question-card {
  padding: 2rem;
  border-radius: 16px;
  width: 260px;
  text-align: center;
}
.question-card .q-emoji {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.question-card .q-text {
  color: var(--cream);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.5;
}
.question-card .q-category {
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 1rem;
}

/* ═══════════════════════════════════════════════════════════════════
   CTA Section
   ═══════════════════════════════════════════════════════════════════ */
.cta-section {
  text-align: center;
  padding: 6rem 2rem 8rem;
  margin-top: 4rem;
}
.cta-section h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.cta-section p {
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto 2.5rem;
}

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--glass-border);
  padding: 2.5rem 2rem;
  text-align: center;
  color: var(--lavender);
  font-size: 0.85rem;
}
.site-footer a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: rgba(232, 105, 126, 0.3);
}
.site-footer a:hover { color: var(--cream); }
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

/* ═══════════════════════════════════════════════════════════════════
   LEGAL PAGES (page.php with privacy/terms)
   ═══════════════════════════════════════════════════════════════════ */
.legal-wrapper {
  max-width: 800px;
  margin: 4rem auto;
  padding: 3rem;
  position: relative;
  z-index: 2;
}
.legal-wrapper h1 {
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 0.5rem;
}
.legal-updated {
  text-align: center;
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.legal-lang-switcher {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}
.legal-lang-switcher a {
  color: var(--lavender);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.5rem;
}
.legal-lang-switcher a.active {
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
}
.legal-content h2 { font-size: 1.4rem; margin: 2.5rem 0 1rem; color: var(--cream); }
.legal-content p  { margin-bottom: 1rem; color: var(--lavender); line-height: 1.8; }
.legal-content ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-content li { margin-bottom: 0.5rem; color: var(--lavender); }

/* ═══════════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.8s ease-out both; }
.fade-in-d1 { animation-delay: 0.1s; }
.fade-in-d2 { animation-delay: 0.25s; }
.fade-in-d3 { animation-delay: 0.4s; }
.fade-in-d4 { animation-delay: 0.55s; }

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .feature-split, .feature-split.reverse {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  .feature-split p { margin: 0 auto; }
  .stats-row { gap: 2rem; flex-wrap: wrap; }
  .question-cards { flex-direction: column; align-items: center; }
}

@media (max-width: 600px) {
  .site-header { padding: 1rem 0; }
  .header-container { padding: 0 1rem; }
  .hero-section h1 { font-size: 2.5rem; }
  .feature-statement { padding: 3rem 1.5rem; }
  .feature-statement h2 { font-size: 2rem; }
  .legal-wrapper { padding: 1.5rem; }
  .main-navigation ul { display: none; }
}
