/*
Theme Name: Fantasy Golf Hub
Theme URI: https://fantasygolfhub.com/
Author: Antigravity
Description: Weekly fantasy golf picks, DFS strategy, course fit analysis and AI-powered tools for PGA Tour, DP World Tour and LIV Golf.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fantasy-golf-hub
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #070e09;
  --dark: #0a1410;
  --surface: #0f1e14;
  --panel: #132619;
  --border: #1e3828;
  --green: #c9a84c;
  --green-dim: #a8872e;
  --gold: #c9a84c;
  --augusta: #006747;
  --augusta-bright: #00875f;
  --white: #f5f0e8;
  --grey: #6b7a65;
  --mid: #9aaa8e;
  --font-sans: 'Inter', sans-serif;
  --font-bebas: 'Bebas Neue', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8,12,10,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 2rem; height: 56px;
}

.nav-logo {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none;
}

.logo-mark {
  width: 28px; height: 28px;
  background: var(--augusta);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-bebas);
  font-size: 1rem; color: var(--white);
  letter-spacing: 0;
}

.logo-text {
  font-family: var(--font-bebas);
  font-size: 1.25rem; letter-spacing: 0.06em;
  color: var(--white);
}
.logo-text span { color: var(--green); }

.nav-links {
  display: flex; align-items: center; gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--grey);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-links .hot { color: var(--green); }

.nav-cta {
  background: var(--augusta);
  color: var(--white) !important;
  padding: 0.45rem 1rem;
  border-radius: 3px;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--augusta-bright) !important; color: var(--white) !important; }

/* Mobile Navigation Toggle styling */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  padding: 0.5rem;
  z-index: 110;
}

.nav-toggle .bar {
  width: 22px;
  height: 2px;
  background-color: var(--white);
  transition: transform 0.2s, opacity 0.2s;
}

/* ── LIVE BAR ── */
.live-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 2rem;
  display: flex; align-items: center; gap: 1.5rem;
  overflow: hidden;
}

.live-pill {
  display: flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); flex-shrink: 0;
}

.live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.live-scroll {
  display: flex; gap: 3rem; flex: 1;
  overflow: hidden;
}

.live-item {
  display: flex; align-items: center; gap: 0.75rem;
  white-space: nowrap; flex-shrink: 0;
}

.live-tournament {
  font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 600;
  color: var(--white); letter-spacing: 0.04em;
}

.live-detail {
  font-size: 0.7rem; color: var(--grey);
}

.live-sep { color: var(--border); }

/* ── HERO ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 0;
  min-height: calc(100vh - 90px);
  border-bottom: 1px solid var(--border);
}

.hero-main {
  padding: 4rem 3rem;
  display: flex; flex-direction: column; justify-content: center;
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero-main::before {
  content: 'FGH';
  position: absolute;
  font-family: var(--font-bebas);
  font-size: 22rem;
  color: rgba(61,220,104,0.03);
  bottom: -2rem; right: -2rem;
  line-height: 1; pointer-events: none;
  letter-spacing: -0.02em;
}

.week-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.5rem;
}

.week-label::before {
  content: '';
  display: inline-block; width: 20px; height: 1px;
  background: var(--gold);
}

h1 {
  font-family: var(--font-bebas);
  font-size: clamp(3.5rem, 7vw, 6rem);
  line-height: 0.92; letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 1.5rem;
}

h1 .green { color: var(--augusta-bright); }
h1 .gold { color: var(--gold); }

.hero-desc {
  font-size: 1rem; font-weight: 300;
  color: var(--mid); line-height: 1.7;
  max-width: 500px; margin-bottom: 3rem;
}

.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.btn-green {
  background: var(--augusta); color: var(--white);
  text-decoration: none; font-weight: 700;
  font-size: 0.85rem; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.85rem 1.8rem;
  border-radius: 3px; transition: background 0.2s;
}
.btn-green:hover { background: var(--augusta-bright); }

.btn-ghost {
  background: transparent; color: var(--white);
  text-decoration: none; font-weight: 600;
  font-size: 0.85rem; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.85rem 1.8rem;
  border-radius: 3px; border: 1px solid var(--border);
  transition: all 0.2s;
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

.hero-stats {
  display: flex; gap: 3rem; flex-wrap: wrap;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.hstat-num {
  font-family: var(--font-bebas);
  font-size: 2.5rem; color: var(--white);
  line-height: 1; letter-spacing: 0.04em;
}
.hstat-num span { color: var(--gold); }
.hstat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--grey);
  margin-top: 0.2rem;
}

/* HERO SIDEBAR */
.hero-sidebar {
  display: flex; flex-direction: column;
  background: var(--surface);
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.68rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--grey);
}

.this-week-card {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.tournament-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.25);
  padding: 0.25rem 0.6rem; border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.65rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 0.75rem;
}

.tournament-name {
  font-family: var(--font-bebas);
  font-size: 1.4rem; letter-spacing: 0.04em;
  color: var(--white); line-height: 1.1;
  margin-bottom: 0.4rem;
}

.tournament-meta {
  font-size: 0.78rem; color: var(--grey);
  display: flex; flex-direction: column; gap: 0.25rem;
  margin-bottom: 1.25rem;
}

.picks-list { display: flex; flex-direction: column; gap: 0.5rem; }

.pick-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 0.75rem;
  background: var(--panel); border-radius: 3px;
  border-left: 2px solid transparent;
}

.pick-row.top { border-left-color: var(--gold); }
.pick-row.sleeper { border-left-color: var(--green); }

.pick-name {
  font-size: 0.85rem; font-weight: 600; color: var(--white);
}

.pick-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.2rem 0.45rem;
  border-radius: 2px;
}

.pick-tag.top { background: rgba(201,168,76,0.15); color: var(--gold); }
.pick-tag.sleeper { background: rgba(61,220,104,0.12); color: var(--green); }
.pick-tag.fade { background: rgba(255,80,80,0.1); color: #ff6060; }

.view-all {
  display: block; text-align: center; text-decoration: none;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--gold);
  padding: 1rem; border-top: 1px solid var(--border);
  transition: background 0.2s;
}
.view-all:hover { background: rgba(201,168,76,0.05); }

.subscribe-box {
  padding: 1.5rem; margin-top: auto;
  border-top: 1px solid var(--border);
}

.subscribe-box p {
  font-size: 0.82rem; color: var(--mid);
  line-height: 1.55; margin-bottom: 1rem;
}

.sub-input-row {
  display: flex; gap: 0.5rem;
}

.sub-input {
  flex: 1; background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 3px; padding: 0.65rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.85rem; color: var(--white);
  outline: none; transition: border-color 0.2s;
}
.sub-input:focus { border-color: var(--green); }
.sub-input::placeholder { color: var(--grey); }

.sub-btn {
  background: var(--augusta); color: var(--white);
  border: none; padding: 0 1rem;
  border-radius: 3px; font-weight: 700;
  font-size: 0.82rem; letter-spacing: 0.06em;
  text-transform: uppercase; cursor: pointer;
  white-space: nowrap; transition: background 0.2s;
}
.sub-btn:hover { background: var(--augusta-bright); }

/* ── TOOLS SECTION ── */
.tools-section {
  padding: 5rem 2rem;
  border-bottom: 1px solid var(--border);
}

.container { max-width: 1200px; margin: 0 auto; }

.section-top {
  display: flex; align-items: flex-end;
  justify-content: space-between; flex-wrap: wrap;
  gap: 1rem; margin-bottom: 2.5rem;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.6rem;
}

h2 {
  font-family: var(--font-bebas);
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: 0.04em; line-height: 1;
  color: var(--white);
}

.see-all {
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold); text-decoration: none;
}
.see-all:hover { text-decoration: underline; }

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.tool-card {
  background: var(--surface);
  padding: 2rem;
  text-decoration: none;
  display: block;
  transition: background 0.2s;
  position: relative;
  overflow: hidden;
}

.tool-card:hover { background: var(--panel); }

.tool-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--augusta);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s;
}
.tool-card:hover::after { transform: scaleX(1); }

.tool-icon {
  font-size: 1.8rem; margin-bottom: 1rem; display: block;
}

.tool-label {
  font-family: var(--font-mono);
  font-size: 0.65rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 0.4rem;
}

.tool-name {
  font-family: var(--font-bebas);
  font-size: 1.4rem; letter-spacing: 0.04em;
  color: var(--white); margin-bottom: 0.6rem;
}

.tool-desc {
  font-size: 0.85rem; color: var(--mid);
  line-height: 1.6;
}

.tool-arrow {
  position: absolute; top: 1.5rem; right: 1.5rem;
  color: var(--border); font-size: 1rem;
  transition: color 0.2s;
}
.tool-card:hover .tool-arrow { color: var(--gold); }

/* ── CONTENT GRID ── */
.content-section {
  display: grid;
  grid-template-columns: 1fr 320px;
  border-bottom: 1px solid var(--border);
}

.articles-side {
  padding: 4rem 2rem 4rem 2rem;
  border-right: 1px solid var(--border);
  max-width: 100%;
}

.articles-side .section-top { margin-bottom: 2rem; }

.article-list { display: flex; flex-direction: column; }

.article-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s, transform 0.15s;
}

.article-item:last-child { border-bottom: none; }
.article-item:hover {
  background: rgba(20, 38, 25, 0.2);
  transform: translateX(4px);
}
.article-item:hover .article-title { color: var(--gold); }

.article-num {
  font-family: var(--font-bebas);
  font-size: 2.5rem; color: var(--border);
  letter-spacing: 0.02em; line-height: 1;
  width: 40px;
  text-align: center;
  flex-shrink: 0;
}

.article-thumbnail-wrapper {
  width: 120px;
  height: 68px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--surface);
  position: relative;
}

.article-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.article-item:hover .article-thumbnail {
  transform: scale(1.05);
}

.article-details {
  flex: 1;
}

.article-tags {
  display: flex; gap: 0.4rem; flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.6rem; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.18rem 0.5rem;
  border-radius: 2px;
}

.tag-pga { background: rgba(61,220,104,0.1); color: var(--green); }
.tag-dpwt { background: rgba(201,168,76,0.1); color: var(--gold); }
.tag-video { background: rgba(100,150,255,0.1); color: #88aaff; }
.tag-strategy { background: rgba(200,200,200,0.08); color: var(--mid); }

.article-title {
  font-family: var(--font-bebas);
  font-size: 1.35rem; letter-spacing: 0.03em;
  color: var(--white); line-height: 1.15;
  margin-bottom: 0.4rem;
  transition: color 0.2s;
}

.article-meta {
  font-size: 0.72rem; color: var(--grey);
  font-family: var(--font-mono);
}

/* SIDEBAR */
.content-sidebar {
  background: var(--surface);
  padding: 0;
}

.sidebar-block {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-title {
  font-family: var(--font-mono);
  font-size: 0.68rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--grey);
  margin-bottom: 1.25rem;
}

/* LEADERBOARD */
.lb-row {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(36,48,32,0.5);
  text-decoration: none;
  color: inherit;
}
.lb-row:last-child { border-bottom: none; }

.lb-pos {
  font-family: var(--font-mono);
  font-size: 0.75rem; color: var(--grey);
  width: 24px; flex-shrink: 0;
}

.lb-name {
  font-size: 0.85rem; font-weight: 500;
  color: var(--white); flex: 1; padding: 0 0.75rem;
}

.lb-score {
  font-family: var(--font-mono);
  font-size: 0.8rem; color: var(--gold);
  font-weight: 600;
}

/* OWGR WIDGET */
.owgr-row {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(36,48,32,0.5);
}
.owgr-row:last-child { border-bottom: none; }

.owgr-rank {
  font-family: var(--font-mono);
  font-size: 0.72rem; color: var(--grey);
  width: 28px;
}

.owgr-name {
  font-size: 0.83rem; font-weight: 500; flex: 1;
  padding: 0 0.5rem;
}

.owgr-pts {
  font-family: var(--font-mono);
  font-size: 0.75rem; color: var(--mid);
}

.owgr-cut { color: var(--gold); font-weight: 600; }

/* ── NEWSLETTER FULL ── */
.newsletter-section {
  padding: 5rem 2rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.newsletter-inner {
  max-width: 560px; margin: 0 auto;
}

.newsletter-section h2 { font-size: 3rem; margin-bottom: 1rem; }

.newsletter-section p {
  color: var(--mid); font-size: 0.95rem;
  line-height: 1.7; margin-bottom: 2rem;
}

.newsletter-form {
  display: flex; gap: 0.75rem; max-width: 420px; margin: 0 auto;
}

.nl-input {
  flex: 1; background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 3px; padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9rem; color: var(--white); outline: none;
}
.nl-input::placeholder { color: var(--grey); }
.nl-input:focus { border-color: var(--green); }

.nl-btn {
  background: var(--augusta); color: var(--white);
  border: none; padding: 0.85rem 1.5rem;
  border-radius: 3px; font-weight: 700;
  font-size: 0.85rem; letter-spacing: 0.06em;
  text-transform: uppercase; cursor: pointer;
  white-space: nowrap; transition: background 0.2s;
}
.nl-btn:hover { background: var(--augusta-bright); }

.nl-note {
  font-size: 0.72rem; color: var(--grey);
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

/* ── FOOTER ── */
footer {
  background: var(--dark);
  padding: 3rem 2rem 2rem;
  border-top: 1px solid var(--border);
}

.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}

.footer-brand .logo-text {
  font-size: 1.1rem; display: block; margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.82rem; color: var(--grey);
  line-height: 1.6; max-width: 240px;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.65rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--grey);
  margin-bottom: 1rem;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a {
  font-size: 0.85rem; color: var(--mid);
  text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  padding-top: 2rem; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 1rem;
}

.footer-bottom p { font-size: 0.75rem; color: var(--grey); }
.footer-bottom a { color: var(--gold); text-decoration: none; }

.social-row { display: flex; gap: 1rem; }
.social-link {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--grey); text-decoration: none;
  transition: color 0.2s;
}
.social-link:hover { color: var(--gold); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  nav {
    padding: 0 1.25rem;
    background: #070e09 !important; /* Solid background on mobile/tablet */
    backdrop-filter: none !important;
  }
  
  .logo-text {
    font-size: 1.15rem;
  }

  /* Mobile Hamburger Nav Toggle Display */
  .nav-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
  }
  
  /* Full-width fixed overlay for mobile links */
  .nav-links {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #070e09 !important; /* Solid background, no transparency */
    backdrop-filter: none !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    padding: 2rem;
    z-index: 105;
    border-top: 1px solid var(--border);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links a {
    font-size: 1.25rem;
  }
  
  /* Hamburger to 'X' animations */
  .nav-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .tools-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  
  /* Stack mini-league columns on tablet as well to give it breathing room */
  .mini-league-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

.mini-league-container {
  padding: 4rem 2rem;
}

@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; }
  .hero-sidebar { display: none; }
  .hero-main { padding: 3rem 1.5rem; min-height: 85vh; }
  
  .tools-grid { grid-template-columns: 1fr; }
  .content-section { grid-template-columns: 1fr; }
  .content-sidebar { display: none; }
  .articles-side { padding: 3rem 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .newsletter-form { flex-direction: column; }
  .live-bar { display: none; }
  
  /* Mini-League Mobile Optimization */
  .mini-league-container {
    padding: 2.5rem 1rem !important;
  }
  .entry-title {
    font-size: 2.8rem !important;
  }
  .page-header {
    margin-bottom: 2rem !important;
  }
  .leaderboard-table th, 
  .leaderboard-table td {
    padding: 0.75rem 0.6rem !important;
    font-size: 0.85rem !important;
  }
  .leaderboard-table th:first-child, 
  .leaderboard-table td:first-child {
    width: 40px !important;
  }
}



