/* ==========================================================================
   FOOTBALL.GRIMALDI.TV - Premium Football Design System & Stylesheet
   Dark Glassmorphism, Yardline Accents, Dynamic Gradients, Sports Aesthetics
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Oswald:wght@500;600;700;800;900&display=swap');

:root {
  --bg-main: #06080d;
  --bg-card: rgba(15, 22, 36, 0.8);
  --bg-card-hover: rgba(23, 33, 54, 0.92);
  --border-card: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(59, 130, 246, 0.35);
  
  --electric-blue: #3b82f6;
  --electric-blue-hover: #2563eb;
  --gold-accent: #f59e0b;
  --red-accent: #dc2626;
  --green-win: #10b981;
  --yardline-green: #15803d;
  --pigskin-brown: #d97706;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --nav-height: 64px;
  --banner-height: 38px;
  
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Oswald', 'Impact', sans-serif;
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-main);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(59, 130, 246, 0.09) 0%, transparent 50%),
    radial-gradient(circle at 85% 85%, rgba(220, 38, 38, 0.07) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.04) 0%, transparent 60%);
  background-attachment: fixed;
}

/* Header & Slide-out Navigation Drawer */
#grimaldi-unified-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background-color: #000000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hamburger-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.2s;
}

.hamburger-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

#grimaldi-nav-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

#grimaldi-nav-logo img {
  height: 44px;
  width: auto;
  max-width: min(280px, 58vw);
  object-fit: contain;
  display: block;
}

.nav-right-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vip-badge-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-weight: 900;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 20px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.vip-badge-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.6);
}

/* Static Promo Banner */
#static-promo-banner {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  z-index: 99999;
  background: linear-gradient(90deg, #dc2626, #b91c1c);
  color: white;
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  display: block;
  box-shadow: 0 2px 10px rgba(220, 38, 38, 0.5);
}

#static-promo-banner:hover {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

/* Slide-out Menu Drawer */
#grimaldiMenuDrawer {
  position: fixed;
  top: 0;
  left: -300px;
  width: 280px;
  height: 100%;
  background-color: #05070a;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 1000011;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
}

#grimaldiMenuBackdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 1000010;
  display: none;
}

.drawer-header {
  height: 64px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer-title {
  font-family: var(--font-heading);
  font-weight: 800;
  color: white;
  font-size: 17px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.drawer-close-btn {
  background: none;
  border: none;
  color: #a1a1aa;
  font-size: 24px;
  cursor: pointer;
}

.grit-nav-link {
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  font-size: 16px !important;
  color: #3b82f6 !important;
  text-decoration: none !important;
  padding: 14px 20px !important;
  display: block !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s, color 0.2s;
}

.grit-nav-link:hover {
  color: #60a5fa !important;
  background: rgba(59, 130, 246, 0.12);
}

/* Main Content Area */
main.main-content {
  margin-top: calc(var(--nav-height) + var(--banner-height) + 16px);
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px 60px 16px;
}

/* Hero Card */
.hero-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.85)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><line x1="0" y1="50" x2="100" y2="50" stroke="rgba(255,255,255,0.03)" stroke-width="2"/></svg>');
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
  margin-bottom: 24px;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 12px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: clamp(14px, 2vw, 16px);
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Ticker Bar */
.ticker-container {
  background: rgba(10, 15, 26, 0.85);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.ticker-label {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: white;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.ticker-content {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  white-space: nowrap;
  font-size: 13px;
  color: var(--text-muted);
  scrollbar-width: none;
}

.ticker-content::-webkit-scrollbar {
  display: none;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ticker-tag {
  color: #60a5fa;
  font-weight: 700;
}

/* Nav Tabs Bar */
.nav-tabs-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  scrollbar-width: none;
}

.nav-tabs-bar::-webkit-scrollbar {
  display: none;
}

.nav-tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-tab-btn:hover {
  background: rgba(59, 130, 246, 0.12);
  color: #ffffff;
  border-color: rgba(59, 130, 246, 0.3);
}

.nav-tab-btn.active {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #ffffff;
  border-color: #60a5fa;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.4);
}

/* Tab Panes */
.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Filter Bar & Controls */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.filter-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-chip:hover {
  background: rgba(59, 130, 246, 0.15);
  color: white;
}

.filter-chip.active {
  background: #3b82f6;
  color: white;
  border-color: #60a5fa;
  font-weight: 700;
}

.sim-dropdown {
  background: #0f172a;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 14px;
  font-family: var(--font-main);
  outline: none;
  cursor: pointer;
}

.search-box {
  display: flex;
  align-items: center;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 0 12px;
  min-width: 240px;
}

.search-box input {
  background: transparent;
  border: none;
  color: white;
  padding: 8px 10px;
  font-size: 14px;
  width: 100%;
  outline: none;
}

/* Grid Layouts */
.stories-grid, .picks-grid, .scoreboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

/* Card General Styling */
.story-card, .pick-card, .game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.story-card:hover, .pick-card:hover, .game-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-glow);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
  background: var(--bg-card-hover);
}

.card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
  width: fit-content;
}

.tag-nfl {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.tag-ncaaf {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.tag-live {
  background: rgba(220, 38, 38, 0.15);
  color: #f87171;
  border: 1px solid rgba(220, 38, 38, 0.3);
}

.story-title {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.4;
}

.story-desc {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.story-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 12px;
}

.read-btn {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s;
}

.read-btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
}

/* AI Grimaldi Bets (Football Pick Card) */
.pick-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.pick-matchup {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.pick-winner-box {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  padding: 14px;
  margin: 12px 0;
}

.pick-winner-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pick-winner-name {
  font-size: 18px;
  font-weight: 900;
  color: #10b981;
  margin-top: 2px;
}

.confidence-bar-container {
  margin-top: 10px;
}

.confidence-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.confidence-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.confidence-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #10b981);
  border-radius: 4px;
}

.status-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
}

.status-win {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.status-pending {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.status-loss {
  background: rgba(220, 38, 38, 0.2);
  color: #f87171;
  border: 1px solid rgba(220, 38, 38, 0.4);
}

/* Live Scoreboard Card */
.score-teams {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}

.score-team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 14px;
  border-radius: 10px;
}

.score-team-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.score-team-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.score-team-name {
  font-weight: 700;
  font-size: 15px;
}

.score-team-pts {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
}

.score-detail {
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  margin-top: 8px;
}

/* Matchup Simulator Card */
.sim-container {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.sim-selectors {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}

.sim-vs-badge {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 900;
  color: #3b82f6;
  text-align: center;
}

.sim-team-select {
  width: 100%;
}

.run-sim-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.run-sim-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.6);
}

.sim-results-box {
  margin-top: 24px;
  background: rgba(5, 10, 20, 0.9);
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  padding: 24px;
  display: none;
}

.sim-proj-score {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 16px 0;
  text-align: center;
}

.sim-proj-team {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
}

.sim-proj-pts {
  font-size: 36px;
  font-weight: 900;
  color: #3b82f6;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  max-width: 600px;
  width: 100%;
  background: #0b1120;
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 24px;
  padding: 28px;
  color: white;
  position: relative;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.9);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: #a1a1aa;
  font-size: 24px;
  cursor: pointer;
}

/* Paywall Locked Prediction Card */
.pick-card-locked {
  position: relative;
  border: 1px solid rgba(220, 38, 38, 0.4) !important;
  background: linear-gradient(135deg, rgba(15, 20, 32, 0.95), rgba(26, 15, 22, 0.95)) !important;
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.2) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-card {
    padding: 24px 16px;
  }
  .sim-selectors {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .search-box {
    width: 100%;
  }
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
}
