/* ============================================================
   Belote7 – Shared Stylesheet
   Palette: Deep green felt, gold, cream
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,600&family=Crimson+Pro:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Montserrat:wght@300;400;500;600&display=swap');

/* ── Variables ── */
:root {
  --green-deep:   #082819;
  --green-dark:   #0d3b2e;
  --green-mid:    #1a5c42;
  --green-light:  #2a7d5a;
  --gold:         #c9a227;
  --gold-light:   #f0c84a;
  --gold-pale:    #f7e9b0;
  --cream:        #fdf6e3;
  --cream-dim:    #e8dfc8;
  --white:        #ffffff;
  --red-card:     #c0392b;
  --text-dark:    #1a1008;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Crimson Pro', Georgia, serif;
  --font-ui:      'Montserrat', sans-serif;

  --radius:       12px;
  --radius-lg:    20px;
  --shadow-gold:  0 0 40px rgba(201,162,39,.25);
  --shadow-card:  0 8px 32px rgba(0,0,0,.45);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--green-deep);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Felt texture overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: .55;
}

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
p  { font-size: clamp(1rem, 1.5vw, 1.15rem); }
a  { color: var(--gold-light); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-pale); }

strong { color: var(--gold-light); font-weight: 600; }

/* ── Gold gradient text utility ── */
.gold-text {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Layout ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  position: relative;
  z-index: 1;
}

section { padding: clamp(3rem, 8vw, 6rem) 0; }

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 40, 25, .88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201,162,39,.2);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem clamp(1rem, 4vw, 2.5rem);
  max-width: 1100px;
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--gold-light);
  text-decoration: none;
}
.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-ui);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cream-dim);
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-light); }
.lang-switch {
  font-family: var(--font-ui);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .35rem .8rem;
  border: 1px solid rgba(201,162,39,.5);
  border-radius: 50px;
  color: var(--gold);
  transition: all .2s;
}
.lang-switch:hover {
  background: var(--gold);
  color: var(--green-deep);
  border-color: var(--gold);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .05em;
  padding: .85rem 2rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all .25s;
  text-decoration: none;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--green-deep);
  box-shadow: 0 4px 20px rgba(201,162,39,.4);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,162,39,.55);
  color: var(--green-deep);
}
.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(201,162,39,.6);
  color: var(--gold-light);
}
.btn-outline:hover {
  background: rgba(201,162,39,.1);
  border-color: var(--gold-light);
  color: var(--gold-light);
}

/* ── App Store Badge ── */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(201,162,39,.35);
  border-radius: var(--radius);
  padding: .7rem 1.4rem;
  color: var(--cream);
  font-family: var(--font-ui);
  transition: all .25s;
  text-decoration: none;
}
.store-badge:hover {
  background: rgba(201,162,39,.12);
  border-color: var(--gold);
  color: var(--cream);
  transform: translateY(-2px);
}
.store-badge svg { flex-shrink: 0; }
.store-badge-text { display: flex; flex-direction: column; }
.store-badge-sub { font-size: .65rem; text-transform: uppercase; letter-spacing: .1em; opacity: .7; }
.store-badge-name { font-size: .95rem; font-weight: 600; line-height: 1.1; }

/* ── Glass card ── */
.glass-card {
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(201,162,39,.18);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-card);
}

/* ── Section heading ── */
.section-label {
  font-family: var(--font-ui);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .6rem;
}
.section-heading {
  margin-bottom: 1.5rem;
}
.section-heading p {
  color: var(--cream-dim);
  max-width: 580px;
  margin-top: .5rem;
}

/* ── Divider ── */
.divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 1rem 0 1.5rem;
}

/* ── Card suits decorative ── */
.suit-row {
  display: flex;
  gap: .5rem;
  align-items: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  opacity: .4;
}

/* ── Footer ── */
footer {
  background: rgba(0,0,0,.35);
  border-top: 1px solid rgba(201,162,39,.15);
  padding: 2.5rem 0;
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-links a {
  font-family: var(--font-ui);
  font-size: .75rem;
  color: var(--cream-dim);
  opacity: .7;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.footer-links a:hover { opacity: 1; color: var(--gold-light); }
.footer-copy {
  font-family: var(--font-ui);
  font-size: .75rem;
  color: var(--cream-dim);
  opacity: .5;
}

/* ── Page hero (inner pages) ── */
.page-hero {
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}
.page-hero h1 { margin-bottom: .5rem; }
.page-hero p { color: var(--cream-dim); max-width: 600px; margin: .5rem auto 0; }

/* ── Responsive ── */
@media (max-width: 700px) {
  .nav-links { display: none; }
  .store-badges { justify-content: center; }
}
