/* ============================================
   AI Site Generator - Core Design System
   Dark Luxury Theme with Gold Accents
   Inspired by awwwards-level casino/gaming portals
   ============================================ */

/* --- CSS Variables / Design Tokens --- */
:root {
  /* Primary palette */
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-tertiary: #1a1a1a;
  --bg-card: #141414;
  --bg-card-hover: #1c1c1c;

  /* Gold accents */
  --gold-primary: #c9a96e;
  --gold-light: #d4b87a;
  --gold-dark: #a8894e;
  --gold-gradient: linear-gradient(135deg, #c9a96e 0%, #e2c88a 50%, #a8894e 100%);

  /* Text */
  --text-primary: #f0f0f0;
  --text-secondary: #b0b0b0;
  --text-muted: #707070;

  /* Borders */
  --border-color: #2a2a2a;
  --border-gold: rgba(201, 169, 110, 0.3);

  /* Spacing */
  --section-gap: 80px;
  --content-width: 1200px;

  /* Typography */
  --font-heading: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  --font-body: 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;

  /* Effects */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-gold: 0 0 40px rgba(201, 169, 110, 0.15);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(201, 169, 110, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(201, 169, 110, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 { font-size: 3rem; letter-spacing: 2px; }
h2 { font-size: 2.2rem; letter-spacing: 1px; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

a {
  color: var(--gold-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--gold-light);
}

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

/* --- Container --- */
.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* --- Header / Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background var(--transition-smooth);
}

.site-header.scrolled {
  background: rgba(10, 10, 10, 0.95);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 1px;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gold-gradient);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: #0a0a0a;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.main-nav a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  padding: 8px 0;
  transition: color var(--transition-fast);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold-gradient);
  transition: width var(--transition-smooth);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--gold-primary);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--gold-gradient);
  color: #0a0a0a !important;
  padding: 10px 24px !important;
  border-radius: 6px;
  font-weight: 700 !important;
  letter-spacing: 1px;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}
.nav-cta::after { display: none !important; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-fast);
}

/* --- Hero Section --- */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 30% 50%, rgba(201, 169, 110, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 20%, rgba(201, 169, 110, 0.04) 0%, transparent 40%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 4px;
  color: var(--gold-primary);
  text-transform: uppercase;
  margin-bottom: 20px;
  padding: 6px 16px;
  border: 1px solid var(--border-gold);
  border-radius: 4px;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 24px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all var(--transition-smooth);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold-gradient);
  color: #0a0a0a;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201, 169, 110, 0.3);
  color: #0a0a0a;
}

.btn-outline {
  background: transparent;
  color: var(--gold-primary);
  border: 1px solid var(--border-gold);
}
.btn-outline:hover {
  background: rgba(201, 169, 110, 0.1);
  border-color: var(--gold-primary);
}

/* --- Section Common --- */
.section {
  padding: var(--section-gap) 0;
  position: relative;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 4px;
  color: var(--gold-primary);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  margin-bottom: 16px;
}

.section-desc {
  max-width: 600px;
  margin-bottom: 48px;
  font-size: 1.05rem;
}

/* --- Category Cards Grid --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 32px 28px;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-smooth);
}

.category-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.category-card:hover::before {
  transform: scaleX(1);
}

.category-card .card-number {
  font-size: 3rem;
  font-weight: 800;
  color: rgba(201, 169, 110, 0.15);
  position: absolute;
  top: 16px;
  right: 24px;
  line-height: 1;
}

.category-card .card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(201, 169, 110, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.category-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.category-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.card-link {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* --- Feature / Info Blocks --- */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature-block.reverse {
  direction: rtl;
}
.feature-block.reverse > * {
  direction: ltr;
}

.feature-image {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  position: relative;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201, 169, 110, 0.1), transparent);
  pointer-events: none;
}

.feature-text .section-label { margin-bottom: 12px; }
.feature-text h2 { margin-bottom: 20px; }
.feature-text p { margin-bottom: 12px; }

.feature-list {
  list-style: none;
  margin: 24px 0;
}

.feature-list li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  color: var(--text-secondary);
}

.feature-list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--gold-primary);
  font-size: 0.6rem;
  top: 12px;
}

/* --- Stats Bar --- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 48px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-top: 4px;
}

/* --- Content Wall (Masonry-like grid) --- */
.content-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}

.content-wall-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.content-wall-item:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
}

.content-wall-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.content-wall-body {
  padding: 24px;
}

.content-wall-body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.content-wall-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- Promo / CTA Banner --- */
.cta-banner {
  background: var(--bg-secondary);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(201, 169, 110, 0.06) 0%, transparent 70%);
}

.cta-banner h2 {
  margin-bottom: 16px;
  position: relative;
}

.cta-banner p {
  max-width: 500px;
  margin: 0 auto 32px;
  position: relative;
}

/* --- FAQ / Accordion --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding: 24px 0;
  cursor: pointer;
}

.faq-item h3 {
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item .faq-icon {
  font-size: 1.2rem;
  color: var(--gold-primary);
  transition: transform var(--transition-fast);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-smooth);
}

.faq-item.open .faq-answer {
  max-height: 300px;
  margin-top: 16px;
}

.faq-answer p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- Footer --- */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 64px 0 32px;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 16px;
}

.footer-col h4 {
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-col ul li a:hover {
  color: var(--gold-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Mobile Nav (off-canvas) --- */
@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 80px 32px;
    gap: 24px;
    transition: right var(--transition-smooth);
    z-index: 999;
    border-left: 1px solid var(--border-color);
  }
  .main-nav.open {
    right: 0;
  }
  .menu-toggle {
    display: flex;
    z-index: 1000;
  }

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

  .feature-block {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

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

  .cards-grid,
  .content-wall {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 48px 0;
  }
}

/* --- Utility --- */
.text-gold { color: var(--gold-primary); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.seo-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto 40px;
  text-align: center;
}
