/* ============================================================
   MY.GOLF — Main Stylesheet
   Design DNA: same feel as the development plan
   Fonts: Bebas Neue (display) + DM Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ── CSS Variables ── */
:root {
  --green:        #1a6b3c;
  --green-light:  #2d8f52;
  --green-pale:   #e8f5ee;
  --green-glow:   rgba(26,107,60,0.15);
  --gold:         #c9a84c;
  --gold-pale:    #fdf5e0;

  --ink:          #1a1a18;
  --ink-2:        #3d3d3a;
  --ink-3:        #6b6b66;
  --line:         #e2e0d8;
  --bg:           #f8f7f3;
  --bg-2:         #f0efe9;
  --white:        #ffffff;

  --nav-h:        60px;
  --radius:       12px;
  --radius-sm:    8px;
  --shadow:       0 2px 12px rgba(0,0,0,0.07);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.12);

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'DM Sans', sans-serif;
}

/* ── Dark Mode ── */
[data-theme="dark"] {
  --ink:       #f0efe9;
  --ink-2:     #c8c7c0;
  --ink-3:     #8a8a84;
  --line:      #2e2e2a;
  --bg:        #141412;
  --bg-2:      #1e1e1a;
  --white:     #1a1a16;
  --shadow:    0 2px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --green-pale:#0d2b1a;
  --gold-pale: #2a220a;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  transition: background 0.3s, color 0.3s;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(248,247,243,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 8px;
  transition: background 0.3s, border-color 0.3s;
}
[data-theme="dark"] .nav {
  background: rgba(20,20,18,0.92);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo span { color: var(--green); }
.nav-logo .flag { font-size: 20px; }
.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  padding: 6px 14px;
  border-radius: 20px;
  transition: all 0.15s;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  background: var(--green-pale);
  color: var(--green);
  text-decoration: none;
}
.nav-link.admin-link {
  background: var(--green);
  color: #fff;
}
.nav-link.admin-link:hover { background: var(--green-light); }

/* Theme toggle */
.theme-toggle {
  background: none;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 5px 12px;
  cursor: pointer;
  font-size: 16px;
  color: var(--ink-3);
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.theme-toggle:hover { border-color: var(--green); color: var(--green); }

/* Mobile nav */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--ink);
}
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 12px 24px 20px;
  z-index: 199;
  flex-direction: column;
  gap: 4px;
}

.nav-mobile.open { display: flex; }
.nav-mobile .nav-link { border-radius: var(--radius-sm); }

/* ── Page layout ── */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}
.container-wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.page-section {
  padding: 48px 0;
}

/* ── Hero ── */
.hero {
  background: var(--ink);
  color: #f0efe9;
  padding: 64px 24px 56px;
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .hero { background: #0c0c0a; }
.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.12;
  pointer-events: none;
}
.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 12px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 88px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}
.hero h1 em {
  color: var(--green-light);
  font-style: normal;
}
.hero-sub {
  font-size: 16px;
  color: #a09e96;
  max-width: 460px;
  line-height: 1.6;
}
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero-stat-val {
  font-family: var(--font-display);
  font-size: 36px;
  color: #f0efe9;
  line-height: 1;
}
.hero-stat-lbl {
  font-size: 11px;
  color: #6b6b60;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.card-body { padding: 20px 24px; }
.card-meta {
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.card-title {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 10px;
}
.card-excerpt {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.6;
}
.card-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--green);
  color: #fff;
}
.btn-primary:hover { background: var(--green-light); color: #fff; text-decoration: none; }
.btn-outline {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.btn-outline:hover { border-color: var(--green); color: var(--green); text-decoration: none; }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-danger { background: #c0392b; color: #fff; }
.btn-danger:hover { background: #a93226; }

/* ── Section labels ── */
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 8px;
}
.section-sub {
  font-size: 15px;
  color: var(--ink-3);
  max-width: 560px;
}

/* ── Forms ── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--green);
}
.form-textarea { resize: vertical; min-height: 120px; }

/* ── Score chart placeholder ── */
.chart-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  height: 260px;
}

/* ── Status badges ── */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge-published { background: var(--green-pale); color: var(--green); }
.badge-draft     { background: var(--gold-pale); color: #a07830; }
.badge-archived  { background: var(--bg-2); color: var(--ink-3); }

/* ── Divider ── */
.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

/* ── Footer ── */
.footer {
  background: var(--ink);
  color: var(--ink-3);
  padding: 40px 24px;
  text-align: center;
  font-size: 13px;
  margin-top: 80px;
}
[data-theme="dark"] .footer { background: #0c0c0a; }
.footer strong { color: #888; }
.footer-flag { font-size: 28px; margin-bottom: 12px; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .nav > .nav-link:not(.admin-link) { display: none; }
  .nav-hamburger { display: block; }
  .hero { padding: 44px 20px 40px; }
  .page-section { padding: 32px 0; }
  .hero-stats { gap: 20px; }
}
