/* TrendViziaX — Enchanted Forest Theme — Written from scratch */
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700&family=Nunito:wght@300;400;600;700&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --accent:      #ff3d6f;
  --gold:        #ffd166;
  --bg:          #100509;
  --surface:     #1a0a13;
  --card:        #25101e;
  --border:      #3d1a2a;
  --text:        #d8c0c8;
  --text-dim:    #8a5a6a;
  --radius:      12px;
  --radius-sm:   6px;
  --font-head:   'Cinzel Decorative', serif;
  --font-body:   'Nunito', sans-serif;
  --transition:  0.25s ease;
  --container:   1200px;
  --header-h:    72px;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  line-height: 1.2;
  color: #f5e8ee;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.accent { color: var(--accent); }
.gold   { color: var(--gold); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #100509;
}
.btn-primary:hover {
  background: #00ff88;
  box-shadow: 0 0 24px rgba(0,232,122,0.5);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold);
  color: #100509;
}
.btn-gold:hover {
  background: #ffe08a;
  box-shadow: 0 0 24px rgba(255,209,102,0.4);
  transform: translateY(-2px);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(5,15,10,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 24px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-icon {
  width: 36px;
  height: 36px;
}
.logo-text {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: #f5e8ee;
}
.logo-accent { color: var(--accent); }
.badge-18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #100509;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
  flex: 1;
}
.site-nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  transition: var(--transition);
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--accent);
  background: rgba(0,232,122,0.08);
}

/* Header right */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

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

/* Mobile nav */
.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: rgba(5,15,10,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  padding: 20px 24px;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav a {
  display: block;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--text);
  transition: var(--transition);
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover {
  color: var(--accent);
  background: rgba(0,232,122,0.08);
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner p {
  flex: 1;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 0;
}
.cookie-banner a { color: var(--accent); }
.cookie-banner a:hover { text-decoration: underline; }

/* ============================================================
   HERO — SPLIT LAYOUT
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  background:
    radial-gradient(ellipse at 20% 60%, rgba(0,100,40,0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(0,232,122,0.08) 0%, transparent 50%),
    var(--bg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 90%, rgba(0,232,122,0.04) 0%, transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(0,232,122,0.04) 0%, transparent 30%);
  pointer-events: none;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 80px 0;
}

.hero-left {
  flex: 0 0 55%;
  max-width: 55%;
}
.hero-right {
  flex: 0 0 45%;
  max-width: 45%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,232,122,0.1);
  border: 1px solid rgba(0,232,122,0.3);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}
.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.hero-title {
  margin-bottom: 20px;
}
.hero-title .line-gold { color: var(--gold); }

.hero-tagline {
  font-size: 1.1rem;
  color: var(--text-dim);
  margin-bottom: 36px;
  max-width: 480px;
}

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

.hero-game-circle {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(0,232,122,0.5);
  box-shadow:
    0 0 60px rgba(0,232,122,0.4),
    0 0 120px rgba(0,232,122,0.15),
    inset 0 0 40px rgba(0,0,0,0.3);
  animation: float-circle 6s ease-in-out infinite;
  position: relative;
}
.hero-game-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@keyframes float-circle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--primary);
  padding: 48px 0;
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px 20px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,232,122,0.15);
}
.stat-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.stat-icon svg { width: 22px; height: 22px; }
.stat-number {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* ============================================================
   SECTION BASE
   ============================================================ */
.section {
  padding: 96px 0;
}
.section-tag {
  display: inline-block;
  background: rgba(0,232,122,0.1);
  border: 1px solid rgba(0,232,122,0.3);
  border-radius: 100px;
  padding: 4px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.section-title {
  margin-bottom: 12px;
}
.section-subtitle {
  color: var(--text-dim);
  font-size: 1rem;
  max-width: 560px;
  margin-bottom: 48px;
}

/* ============================================================
   GAMES — 2-COLUMN GRID
   ============================================================ */
.games-section {
  background: var(--bg);
}
.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.game-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}
.game-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,232,122,0.15);
}

.game-thumb {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.game-body {
  padding: 24px;
}
.game-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: #f5e8ee;
  margin-bottom: 8px;
}
.game-desc {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 16px;
  line-height: 1.6;
}
.game-tag {
  display: inline-block;
  background: rgba(255,209,102,0.1);
  border: 1px solid rgba(255,209,102,0.3);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.game-play-btn {
  width: 100%;
  justify-content: center;
}

/* ============================================================
   BENEFITS — HORIZONTAL FULL-WIDTH CARDS
   ============================================================ */
.benefits-section {
  background: var(--surface);
}
.benefits-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 48px;
}
.benefit-h-card {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 36px;
  transition: var(--transition);
}
.benefit-h-card:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 32px rgba(0,232,122,0.1);
}
.benefit-icon-wrap {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0,232,122,0.1);
  border: 2px solid rgba(0,232,122,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.benefit-icon-wrap svg { width: 28px; height: 28px; }
.benefit-content { flex: 1; }
.benefit-h-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: #f5e8ee;
  margin-bottom: 8px;
}
.benefit-h-desc {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section {
  background: var(--bg);
}
.about-inner {
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
}
.about-quote-block {
  background: rgba(0,232,122,0.05);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 28px 36px;
  margin-bottom: 40px;
  text-align: left;
}
.about-quote-block .quote-icon {
  font-size: 3rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
  font-family: Georgia, serif;
}
.about-quote-block p {
  font-size: 1.05rem;
  color: var(--text);
  font-style: italic;
  line-height: 1.8;
}
.about-body { text-align: left; }
.about-body p {
  color: var(--text-dim);
  font-size: 0.97rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

/* ============================================================
   FAQ — NUMBERED VISIBLE LIST
   ============================================================ */
.faq-section {
  background: var(--surface);
}
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.faq-numbered-item {
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.faq-numbered-item:first-child { border-top: 1px solid var(--border); }
.faq-number {
  font-family: var(--font-head);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  display: block;
}
.faq-question {
  font-family: var(--font-head);
  font-size: 1rem;
  color: #f5e8ee;
  margin-bottom: 12px;
}
.faq-answer {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.75;
}

/* Keep chevron rules for subpages */
.faq-chevron {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-section {
  background: var(--bg);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 1;
  transition: var(--transition);
}
.gallery-item:hover {
  border-color: var(--accent);
  transform: scale(1.02);
  box-shadow: 0 8px 32px rgba(0,232,122,0.15);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   FOOTER — TWO COLUMN
   ============================================================ */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-top: 60px;
}
.footer-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.footer-brand .site-logo {
  margin-bottom: 16px;
}
.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-dim);
}
.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links-col a {
  font-size: 0.88rem;
  color: var(--text-dim);
  transition: var(--transition);
  padding: 4px 0;
}
.footer-links-col a:hover { color: var(--accent); }
.footer-rg-logos {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.footer-rg-logos img {
  height: 32px;
  width: auto;
  opacity: 0.65;
  filter: brightness(0.9);
  transition: var(--transition);
}
.footer-rg-logos img:hover { opacity: 1; }

.footer-disclaimer-bar {
  padding: 24px 0;
  text-align: center;
}
.footer-disclaimer-bar p {
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto;
}

/* ============================================================
   PAGE HERO (subpages)
   ============================================================ */
.page-hero {
  padding: 140px 0 60px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0,232,122,0.1) 0%, transparent 60%),
    var(--bg);
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  margin-bottom: 12px;
}
.page-hero p {
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================================
   GAME PAGE — IFRAME
   ============================================================ */
.game-page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px 60px;
}
.game-iframe-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  box-shadow: 0 0 40px rgba(0,232,122,0.1);
  margin-bottom: 40px;
}
.game-iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.game-info {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}
.game-info h2 {
  margin-bottom: 12px;
}
.game-info p {
  color: var(--text-dim);
  line-height: 1.8;
}

/* ============================================================
   CONTENT PAGES (about, legal, help etc.)
   ============================================================ */
.content-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.content-page h2 {
  margin: 40px 0 12px;
  color: var(--accent);
  font-size: 1.3rem;
}
.content-page h3 {
  margin: 28px 0 8px;
  color: #f5e8ee;
  font-size: 1.05rem;
}
.content-page p, .content-page li {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.8;
}
.content-page ul, .content-page ol {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 16px;
}
.content-page ol { list-style: decimal; }

/* Contact form */
.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  margin-top: 32px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,232,122,0.1);
}
.form-group textarea { resize: vertical; min-height: 140px; }

/* ============================================================
   ONLINE GAMES PAGE
   ============================================================ */
.online-games-page {
  padding: 40px 0 80px;
}
.online-intro {
  max-width: 700px;
  margin: 0 auto 48px;
  text-align: center;
  color: var(--text-dim);
  line-height: 1.8;
}

/* ============================================================
   RESPONSIBLE PLAY PAGE
   ============================================================ */
.rp-section-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 36px;
  margin-bottom: 24px;
}
.rp-section-block h3 {
  color: var(--accent);
  margin-bottom: 12px;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fade-up 0.6s ease forwards; }

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0,232,122,0.3); }
  50%       { box-shadow: 0 0 40px rgba(0,232,122,0.6); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-game-circle { width: 300px; height: 300px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .hero-inner { flex-direction: column; gap: 40px; }
  .hero-left, .hero-right { flex: 0 0 100%; max-width: 100%; }
  .hero-right { order: -1; }
  .hero-game-circle { width: 260px; height: 260px; }

  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }

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

  .footer-two-col { grid-template-columns: 1fr; gap: 36px; }

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

@media (max-width: 680px) {
  .site-nav { display: none; }
  .hamburger { display: flex; }

  .hero-ctas { flex-direction: column; align-items: flex-start; }

  .benefit-h-card { flex-direction: column; padding: 24px; }

  .stats-inner { grid-template-columns: 1fr 1fr; }

  .section { padding: 64px 0; }

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

  .game-page-wrap { padding: 60px 16px 40px; }
  .game-info { padding: 24px; }
}

@media (max-width: 400px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}
