/* ===========================
   Gold Rush Game - Main Styles
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Open+Sans:wght@300;400;600&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --gold-light:    #FFE066;
  --gold:          #FFD700;
  --gold-dark:     #C8960C;
  --amber:         #FF9A00;
  --brown-dark:    #1A0A00;
  --brown-mid:     #2D1600;
  --brown-light:   #5C3317;
  --cream:         #FFF3DC;
  --text-light:    #FFF8EC;
  --text-muted:    #C9A96E;
  --shadow-gold:   0 0 24px rgba(255, 215, 0, 0.45);
  --transition:    0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: var(--brown-dark);
  color: var(--text-light);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold-light);
}

img {
  max-width: 100%;
  display: block;
}

ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

.section-title {
  text-align: center;
  color: var(--gold);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 18px rgba(255,215,0,0.4);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 3rem;
}

/* --- Gold Divider --- */
.gold-divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0.75rem auto 1.5rem;
  border-radius: 2px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--amber));
  color: var(--brown-dark);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--gold));
  box-shadow: 0 0 36px rgba(255,215,0,0.7);
  color: var(--brown-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--brown-dark);
  transform: translateY(-2px);
}

/* ===========================
   HEADER / NAVIGATION
   =========================== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(26, 10, 0, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  padding: 0 2rem;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--gold);
  text-shadow: var(--shadow-gold);
}

.logo-icon {
  font-size: 1.8rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 60% 40%, rgba(255,154,0,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(200,150,12,0.10) 0%, transparent 50%),
    linear-gradient(160deg, #1A0A00 0%, #2D1600 50%, #1A0A00 100%);
  z-index: 0;
}

/* Image placeholder for hero background */
.hero-bg-img {
  position: absolute;
  inset: 0;
  background-color: #2D1600;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding: 2rem;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,215,0,0.12);
  border: 1px solid rgba(255,215,0,0.35);
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.hero h1 span {
  color: var(--gold);
  text-shadow: var(--shadow-gold);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-image-placeholder {
  margin-top: 3.5rem;
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 48px rgba(0,0,0,0.6), 0 0 0 2px rgba(255,215,0,0.2);
}

/* ===========================
   IMAGE PLACEHOLDER COMPONENT
   =========================== */
.img-placeholder {
  background: linear-gradient(135deg, #2d1a00 0%, #3d2200 50%, #2d1a00 100%);
  border: 1px dashed rgba(255,215,0,0.3);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.05em;
}

.img-placeholder .ph-icon {
  font-size: 2.5rem;
  opacity: 0.5;
}

.img-placeholder.hero-ph {
  height: 340px;
}

.img-placeholder.card-ph {
  height: 200px;
  border-radius: 10px;
}

.img-placeholder.wide-ph {
  height: 280px;
}

.img-placeholder.feature-ph {
  height: 260px;
  width: 100%;
}

.img-placeholder.fullwidth-ph {
  height: 420px;
  border-radius: 16px;
}

/* ===========================
   SECTIONS - General
   =========================== */
section {
  padding: 5rem 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ===========================
   FEATURES STRIP (index)
   =========================== */
.features-strip {
  background: rgba(255,215,0,0.05);
  border-top: 1px solid rgba(255,215,0,0.12);
  border-bottom: 1px solid rgba(255,215,0,0.12);
  padding: 2.5rem 2rem;
}

.features-strip .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.strip-item .strip-icon {
  font-size: 2.2rem;
}

.strip-item strong {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: 0.95rem;
}

.strip-item span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ===========================
   GAME HIGHLIGHTS (index)
   =========================== */
.highlights {
  background: var(--brown-dark);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.highlight-card {
  background: linear-gradient(160deg, #2D1600, #1A0A00);
  border: 1px solid rgba(255,215,0,0.15);
  border-radius: 14px;
  padding: 2rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  text-align: center;
}

.highlight-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,215,0,0.4);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), var(--shadow-gold);
}

.highlight-card .card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.highlight-card h3 {
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.highlight-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ===========================
   SCREENSHOT SHOWCASE
   =========================== */
.screenshots {
  background: linear-gradient(160deg, #2D1600 0%, #1A0A00 100%);
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* ===========================
   CTA SECTION
   =========================== */
.cta-section {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(255,154,0,0.15) 0%, transparent 70%),
    linear-gradient(160deg, #2D1600, #1A0A00);
  text-align: center;
  padding: 6rem 2rem;
  border-top: 1px solid rgba(255,215,0,0.15);
  border-bottom: 1px solid rgba(255,215,0,0.15);
}

.cta-section h2 {
  color: var(--gold);
  margin-bottom: 1rem;
  text-shadow: var(--shadow-gold);
}

.cta-section p {
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

/* ===========================
   PAGE HERO (inner pages)
   =========================== */
.page-hero {
  padding: 5rem 2rem 4rem;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 60%, rgba(255,154,0,0.1) 0%, transparent 65%),
    linear-gradient(160deg, #2D1600, #1A0A00);
  border-bottom: 1px solid rgba(255,215,0,0.15);
}

.page-hero h1 {
  color: var(--gold);
  text-shadow: var(--shadow-gold);
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ===========================
   ABOUT PAGE
   =========================== */
.about-intro {
  background: var(--brown-dark);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.about-text p:last-of-type {
  margin-bottom: 2rem;
}

.team-section {
  background: linear-gradient(160deg, #2D1600, #1A0A00);
  padding: 5rem 2rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.team-card {
  background: rgba(255,215,0,0.04);
  border: 1px solid rgba(255,215,0,0.12);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition);
}

.team-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,215,0,0.35);
}

.team-card .member-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  border: 2px solid rgba(255,215,0,0.3);
  overflow: hidden;
}

.team-card .member-photo .img-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  font-size: 0.65rem;
  border: none;
}

.team-card h3 {
  color: var(--gold);
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.team-card .role {
  color: var(--amber);
  font-size: 0.82rem;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.team-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.mission-section {
  background: var(--brown-dark);
  padding: 5rem 2rem;
}

.mission-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.mission-card {
  background: linear-gradient(135deg, #2D1600, #1A0A00);
  border: 1px solid rgba(255,215,0,0.12);
  border-radius: 14px;
  padding: 2rem;
  text-align: center;
}

.mission-card .m-icon {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.mission-card h3 {
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.mission-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===========================
   FEATURES PAGE
   =========================== */
.features-main {
  background: var(--brown-dark);
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.feature-block.reverse {
  direction: rtl;
}

.feature-block.reverse > * {
  direction: ltr;
}

.feature-text h2 {
  color: var(--gold);
  margin-bottom: 0.5rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.feature-text h2 small {
  display: block;
  font-size: 0.7em;
  color: var(--amber);
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.feature-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.feature-list-items {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.feature-list-items li {
  color: var(--text-muted);
  font-size: 0.92rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.feature-list-items li::before {
  content: '◆';
  color: var(--gold);
  font-size: 0.6rem;
  margin-top: 0.35rem;
  flex-shrink: 0;
}

.how-to-play {
  background: linear-gradient(160deg, #2D1600, #1A0A00);
  padding: 5rem 2rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  counter-reset: step-counter;
}

.step-card {
  background: rgba(255,215,0,0.04);
  border: 1px solid rgba(255,215,0,0.12);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  text-align: center;
  counter-increment: step-counter;
  position: relative;
}

.step-card::before {
  content: counter(step-counter, decimal-leading-zero);
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--brown-dark);
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
}

.step-card .step-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.step-card h3 {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ===========================
   PRIVACY POLICY PAGE
   =========================== */
.privacy-content {
  background: var(--brown-dark);
  padding: 4rem 2rem 5rem;
}

.privacy-content .container {
  max-width: 860px;
}

.privacy-last-updated {
  display: inline-block;
  background: rgba(255,215,0,0.08);
  border: 1px solid rgba(255,215,0,0.2);
  color: var(--gold);
  font-size: 0.82rem;
  font-family: 'Cinzel', serif;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 2.5rem;
}

.privacy-section {
  margin-bottom: 3rem;
}

.privacy-section h2 {
  color: var(--gold);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,215,0,0.15);
}

.privacy-section h3 {
  color: var(--amber);
  font-size: 1rem;
  margin: 1.25rem 0 0.5rem;
}

.privacy-section p,
.privacy-section li {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.privacy-section ul {
  padding-left: 1.5rem;
}

.privacy-section ul li {
  list-style: disc;
  margin-bottom: 0.4rem;
}

.privacy-section a {
  color: var(--amber);
  text-decoration: underline;
}

/* ===========================
   FOOTER
   =========================== */
footer {
  background: #0F0600;
  border-top: 1px solid rgba(255,215,0,0.15);
  padding: 3.5rem 2rem 2rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.88rem;
  max-width: 280px;
  line-height: 1.65;
}

.footer-col h4 {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col ul li a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--gold);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,215,0,0.1);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.footer-bottom .disclaimer {
  color: rgba(200,150,80,0.55);
  font-size: 0.75rem;
  max-width: 500px;
  text-align: right;
}

/* ===========================
   AGE GATE BANNER
   =========================== */
.age-banner {
  background: rgba(255,154,0,0.08);
  border: 1px solid rgba(255,154,0,0.25);
  padding: 0.6rem 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--amber);
  letter-spacing: 0.03em;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-grid,
  .feature-block {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .feature-block.reverse {
    direction: ltr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(26,10,0,0.98);
    flex-direction: column;
    padding: 1.5rem 2rem 2rem;
    gap: 1.25rem;
    border-bottom: 1px solid rgba(255,215,0,0.15);
  }

  .nav-links.open {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom .disclaimer {
    text-align: center;
  }
}

@media (max-width: 480px) {
  section {
    padding: 4rem 1.25rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
}
