/* ========================================
   LANDING PAGES — SHARED STYLESHEET
   Sexy Roulette SEO Landing Pages
   ======================================== */

/* === CSS VARIABLES === */
:root {
  --bg-primary: #0E0B11;
  --bg-secondary: #15121B;
  --bg-card: #2B2535;
  --bg-card-hover: #3A3147;
  --accent: #A056F0;
  --accent-dark: #803DBF;
  --accent-glow: 0 0 20px rgba(160, 86, 240, 0.5);
  --text-primary: #ffffff;
  --text-secondary: #C5C1CC;
  --text-muted: #72767d;
  --cta-gradient: linear-gradient(135deg, #A056F0, #FF69B4);
  --logo-violet: #B471F7;
  --header-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Nunito', Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === RTL (Arabic/Hebrew) === */
html[dir="rtl"] body {
  direction: rtl;
}

html[dir="rtl"] .landing-header {
  flex-direction: row-reverse;
}

html[dir="rtl"] .landing-nav {
  flex-direction: row-reverse;
}

html[dir="rtl"] .logo {
  flex-direction: row-reverse;
}

html[dir="rtl"] .logo-icon {
  margin-left: 0.49em;
  margin-right: 0.55em;
}

html[dir="rtl"] .lang-switcher {
  direction: ltr;
}

html[dir="rtl"] .faq-item summary::after {
  margin-left: 0;
  margin-right: 1rem;
}

html[dir="rtl"] .footer-top {
  direction: rtl;
}

html[dir="rtl"] .footer-columns {
  text-align: right;
}

html[dir="rtl"] .footer-col a::after {
  left: auto;
  right: 0;
}

html[dir="rtl"] .footer-rta a {
  flex-direction: row-reverse;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--logo-violet);
}

img {
  max-width: 100%;
  height: auto;
}

/* === LAYOUT === */
.landing-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* === HEADER === */
.landing-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: var(--header-height);
  background: var(--bg-secondary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* === LOGO === */
/* font-size: 1.875rem = Tailwind text-3xl, same base as SPA header-title */
.logo {
  display: flex;
  align-items: center;
  font-size: 1.875rem;
  font-weight: bold;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.logo:hover {
  opacity: 0.85;
  color: inherit;
}

/* All values below are copy-pasted from SPA Logo.tsx + Header.tsx inline styles */
.logo-sexy {
  font-family: 'Moon Dance', cursive;
  font-size: 135%;
  color: var(--logo-violet);
  text-shadow: 0 0 8px rgba(180, 113, 247, 0.4);
  transform: translateY(-5px);
  display: inline-block;
}

.logo-icon {
  height: 1.39em;
  width: auto;
  margin-left: 0.55em;
  margin-right: 0.49em;
  transform: scaleX(1.25);
}

.logo-roulette {
  font-family: 'Lumanosimo', cursive;
  font-size: 75%;
  color: var(--text-primary);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

/* === NAV — matches SPA btn-connexion + btn-success styles === */
.landing-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* "Explore" link — styled like SPA btn-connexion */
.landing-nav a {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  background: var(--bg-card);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.landing-nav a:hover {
  background: var(--accent);
  box-shadow: 0 0 15px rgba(160, 86, 240, 0.4);
  transform: translateY(-2px);
  color: var(--text-primary);
}

/* "Start Chat" button — styled like SPA btn-success */
.cta-header-btn {
  background: var(--accent) !important;
  color: var(--text-primary) !important;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.95rem;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.cta-header-btn:hover {
  background: var(--accent-dark) !important;
  box-shadow: 0 0 15px rgba(160, 86, 240, 0.4);
  transform: translateY(-2px);
}

/* Language switcher — matches nav button style */
.lang-switcher {
  appearance: none;
  -webkit-appearance: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid rgba(160, 86, 240, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.lang-switcher:hover,
.lang-switcher:focus {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(160, 86, 240, 0.3);
}

.lang-switcher option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* === HERO SECTION === */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: auto;
  padding: calc(var(--header-height) + 2rem) 2rem 2rem;
  background: radial-gradient(ellipse at center top, rgba(160, 86, 240, 0.12) 0%, transparent 60%);
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  max-width: 800px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* === CTA BUTTONS === */
.cta-button {
  display: inline-block;
  background: var(--cta-gradient);
  color: var(--text-primary);
  padding: 1rem 2.5rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--accent-glow);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 30px rgba(160, 86, 240, 0.7);
  color: var(--text-primary);
}

/* === CONTENT SECTIONS === */
.content-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}

.content-section:nth-child(even) {
  background: rgba(21, 18, 27, 0.5);
  border-radius: 16px;
  max-width: 1060px;
}

.content-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.content-section p {
  color: var(--text-secondary);
  font-size: 1.02rem;
  margin-bottom: 1rem;
  line-height: 1.75;
}

.content-section strong {
  color: var(--text-primary);
}

/* === FILTERS GRID === */
.filters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.filter-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 1.25rem;
  transition: background 0.2s ease, transform 0.2s ease;
  border: 1px solid rgba(160, 86, 240, 0.1);
}

.filter-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.filter-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.filter-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.5;
}

/* === FAQ (CSS-only with details/summary) === */
.faq-section {
  max-width: 900px;
}

.faq-item {
  background: var(--bg-card);
  border-radius: 10px;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(160, 86, 240, 0.1);
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 300;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  background: rgba(160, 86, 240, 0.05);
}

.faq-item .faq-answer {
  padding: 0 1.25rem 1rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* === CTA FINAL === */
.cta-final {
  text-align: center;
  padding: 4rem 2rem;
}

.cta-final h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

/* === CROSS-LINKS === */
.related-pages {
  max-width: 1060px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}

.related-pages h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.related-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
  border: 1px solid rgba(160, 86, 240, 0.1);
}

.related-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  color: inherit;
}

.related-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.related-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* === LANDING FOOTER === */
.landing-footer {
  background: var(--bg-secondary);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  padding: 2rem 1.5rem 1.25rem;
  margin-top: 2rem;
}

/* Explore link (inside footer-brand column) */
.footer-explore-row {
  display: none;
}

.footer-explore-link {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
  letter-spacing: 0.02em;
}

.footer-explore-link:hover {
  color: var(--logo-violet);
}

.footer-top {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 2rem;
}

/* Footer RTA + Logo (right side, stacked) */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.footer-brand a {
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.footer-rta a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  padding: 0.5rem 0.25rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.footer-rta a:hover {
  background: rgba(211, 47, 47, 0.1);
  transform: translateY(-2px);
  color: var(--text-primary);
}

.rta-icon {
  width: 50px;
  height: 50px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: transform 0.2s ease;
}

.footer-rta a:hover .rta-icon {
  transform: scale(1.05);
}

.rta-text {
  font-size: 0.9rem;
  font-weight: 600;
}

/* Footer columns */
.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-col-title {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.footer-col a {
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}

.footer-col a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-col a:hover::after {
  width: 100%;
}

/* Footer logo — same as SPA .footer-title (font-size: 2rem base) */
.footer-logo a {
  display: flex;
  align-items: center;
  font-size: 2rem;
  font-weight: bold;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-logo a:hover {
  opacity: 0.85;
}

/* Footer copyright */
.footer-copyright {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(160, 86, 240, 0.1);
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Tablets / Medium */
@media (max-width: 968px) {
  .hero {
    min-height: auto;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .filters-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
  }

  .footer-rta {
    display: flex;
    justify-content: center;
  }

  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
    text-align: left;
  }

  .footer-logo {
    display: flex;
    justify-content: center;
  }
}

/* Mobile / Small */
@media (max-width: 768px) {
  .landing-header {
    padding: 0 1rem;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--header-height) + 2rem) 1.25rem 2rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .cta-button {
    padding: 0.9rem 2rem;
    font-size: 1rem;
  }

  .content-section {
    padding: 2rem 1.25rem;
  }

  .content-section h2 {
    font-size: 1.5rem;
  }

  .filters-grid {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .related-pages {
    padding: 2rem 1.25rem;
  }

  .rta-icon {
    width: 40px;
    height: 40px;
  }

  .rta-text {
    font-size: 0.85rem;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .landing-header {
    padding: 0 0.75rem;
  }

  .logo {
    font-size: 1.25rem;
  }

  .landing-nav {
    gap: 0.75rem;
  }

  .landing-nav a {
    font-size: 0.85rem;
  }

  .cta-header-btn {
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .cta-button {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    width: 100%;
    text-align: center;
  }

  .content-section {
    padding: 1.75rem 1rem;
  }

  .footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .footer-rta a {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .footer-brand {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-explore-link {
    font-size: 0.85rem;
  }
}
