/* SportsNIL.com — Modern NIL platform design */

:root {
  --navy-950: #0c1222;
  --navy-900: #131b2e;
  --navy-800: #1a2540;
  --navy-700: #243052;
  --navy-600: #334155;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --accent: #00d4aa;
  --accent-hover: #00b894;
  --accent-dark: #009e7a;
  --accent-light: rgba(0, 212, 170, 0.12);
  --accent-glow: rgba(0, 212, 170, 0.25);
  --blue: #3b82f6;
  --green: #059669;
  --amber: #d97706;
  --red: #dc2626;
  --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-sm: 0 1px 2px rgba(12, 18, 34, 0.06);
  --shadow-md: 0 4px 16px rgba(12, 18, 34, 0.08);
  --shadow-lg: 0 8px 32px rgba(12, 18, 34, 0.12);
  --container: 1200px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.25; font-weight: 600; }
h1 { font-size: 2.25rem; letter-spacing: -0.02em; }
h2 { font-size: 1.5rem; letter-spacing: -0.01em; }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.page-main { min-height: calc(100vh - var(--header-h) - 320px); }
.muted { color: var(--slate-500); }
.text-sm { font-size: 0.875rem; }
.text-center { text-align: center; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
  height: var(--header-h);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 16px;
}
.brand-logo { height: 28px; width: auto; }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--navy-900);
  margin: 5px 0; transition: 0.2s;
}
.site-nav {
  display: flex; align-items: center; gap: 2px; flex: 1; justify-content: flex-end;
}
.site-nav > a {
  color: var(--navy-700); font-size: 0.8125rem; font-weight: 500;
  padding: 8px 10px; border-radius: var(--radius); white-space: nowrap;
}
.site-nav > a:hover, .site-nav > a.is-active { color: var(--navy-900); background: var(--slate-100); }
.header-search { margin: 0 4px; }
.header-search input {
  width: 140px; padding: 7px 12px; border: 1px solid var(--slate-200);
  border-radius: var(--radius); font-size: 0.8125rem; background: var(--slate-50);
  transition: width 0.2s, border-color 0.2s;
}
.header-search input:focus { outline: 2px solid var(--accent-light); border-color: var(--accent); width: 180px; }
.nav-actions { display: flex; gap: 8px; margin-left: 4px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; font-size: 0.875rem; font-weight: 600;
  border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; transition: 0.15s; text-decoration: none; line-height: 1.2;
  font-family: inherit;
}
.btn-sm { padding: 7px 14px; font-size: 0.8125rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-primary { background: var(--accent); color: var(--navy-950); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--navy-950); }
.btn-secondary { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }
.btn-secondary:hover { background: var(--navy-800); color: var(--white); }
.btn-ghost { background: transparent; color: var(--navy-700); border-color: var(--slate-200); }
.btn-ghost:hover { background: var(--slate-100); color: var(--navy-900); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.3); }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); color: var(--white); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-800) 50%, var(--navy-900) 100%);
  color: var(--white); padding: 80px 0 96px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%; width: 60%; height: 200%;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { max-width: 680px; position: relative; z-index: 1; }
.hero-eyebrow {
  font-size: 0.8125rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--accent); margin-bottom: 16px;
}
.hero h1 {
  font-family: var(--font-serif); font-size: 3.25rem; font-weight: 400;
  letter-spacing: -0.02em; margin-bottom: 20px; color: var(--white); line-height: 1.1;
}
.hero-lead { font-size: 1.125rem; color: var(--slate-300); margin-bottom: 32px; max-width: 540px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-compact { padding: 56px 0 64px; }
.hero-compact h1 { font-size: 2.5rem; }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--slate-50); }
.section-header { margin-bottom: 40px; max-width: 640px; }
.section-header h2 { font-family: var(--font-serif); font-size: 2rem; font-weight: 400; margin-bottom: 12px; }
.section-header p { color: var(--slate-500); font-size: 1.0625rem; margin: 0; }
.section-header-center { text-align: center; margin-left: auto; margin-right: auto; }

/* Audience cards */
.audience-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px;
}
.audience-card {
  display: block; padding: 28px 24px; background: var(--white);
  border: 1px solid var(--slate-200); border-radius: var(--radius-lg);
  transition: 0.2s; text-decoration: none; color: inherit;
}
.audience-card:hover {
  border-color: var(--accent); box-shadow: var(--shadow-md);
  transform: translateY(-2px); color: inherit;
}
.audience-card-icon {
  width: 40px; height: 40px; border-radius: var(--radius);
  background: var(--accent-light); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; margin-bottom: 16px; font-weight: 700;
}
.audience-card h3 { font-size: 1.125rem; margin-bottom: 8px; color: var(--navy-900); }
.audience-card p { font-size: 0.875rem; color: var(--slate-500); margin: 0; line-height: 1.5; }
.audience-card-arrow { margin-top: 16px; font-size: 0.8125rem; font-weight: 600; color: var(--accent-dark); }

/* Cards grid */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px;
}
.card {
  background: var(--white); border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg); padding: 24px; transition: 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--slate-300); }
.card-link { display: block; text-decoration: none; color: inherit; }
.card-link:hover { color: inherit; }
.card h3 { font-size: 1.0625rem; margin-bottom: 8px; }
.card p { font-size: 0.875rem; color: var(--slate-500); margin: 0; }
.card-meta { font-size: 0.75rem; color: var(--slate-400); margin-top: 12px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.card-featured { border-color: var(--accent); background: linear-gradient(135deg, var(--white) 0%, rgba(0,212,170,0.04) 100%); }

/* Tool spotlight */
.tool-spotlight {
  background: var(--navy-900); color: var(--white); border-radius: var(--radius-xl);
  padding: 48px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
}
.tool-spotlight h2 { font-family: var(--font-serif); font-size: 2rem; font-weight: 400; color: var(--white); margin-bottom: 12px; }
.tool-spotlight p { color: var(--slate-300); margin-bottom: 24px; max-width: 480px; }
.tool-spotlight-visual {
  width: 120px; height: 120px; border-radius: 50%;
  background: var(--accent-light); border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: var(--accent);
}

/* Hub sections */
.hub-section { padding: 32px 0; border-bottom: 1px solid var(--slate-200); }
.hub-section:last-child { border-bottom: none; }
.hub-section h2 { font-size: 1.25rem; margin-bottom: 16px; }
.hub-links { display: flex; flex-wrap: wrap; gap: 12px; }
.hub-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; background: var(--slate-50); border: 1px solid var(--slate-200);
  border-radius: var(--radius); font-size: 0.875rem; font-weight: 500;
  color: var(--navy-700); text-decoration: none; transition: 0.15s;
}
.hub-link:hover { background: var(--accent-light); border-color: var(--accent); color: var(--navy-900); }

/* Breadcrumbs */
.breadcrumbs { margin-bottom: 24px; font-size: 0.875rem; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumbs li:not(:last-child)::after { content: '/'; margin-left: 8px; color: var(--slate-400); }
.breadcrumbs a { color: var(--slate-500); }
.breadcrumbs span { color: var(--navy-700); }

/* Content article */
.article-content { max-width: 720px; }
.article-content h2 { margin-top: 2em; }
.article-content ul, .article-content ol { margin-bottom: 1.5em; }
.article-excerpt { font-size: 1.125rem; color: var(--slate-500); margin-bottom: 32px; line-height: 1.7; }
.article-cta {
  margin-top: 48px; padding: 32px; background: var(--slate-50);
  border-radius: var(--radius-lg); border-left: 4px solid var(--accent);
}
.article-cta h3 { margin-bottom: 8px; }
.disclaimer-box {
  padding: 16px 20px; background: var(--slate-50); border: 1px solid var(--slate-200);
  border-radius: var(--radius); font-size: 0.875rem; color: var(--slate-500); margin: 24px 0;
}

/* Tool UI */
.tool-container { max-width: 680px; margin: 0 auto; padding: 48px 0; }
.tool-progress { margin-bottom: 32px; }
.tool-progress-bar {
  height: 4px; background: var(--slate-200); border-radius: 2px; overflow: hidden; margin-bottom: 8px;
}
.tool-progress-fill { height: 100%; background: var(--accent); transition: width 0.3s; border-radius: 2px; }
.tool-progress-text { font-size: 0.8125rem; color: var(--slate-500); }
.tool-question { margin-bottom: 32px; }
.tool-question h2 { font-size: 1.375rem; margin-bottom: 20px; }
.tool-options { display: flex; flex-direction: column; gap: 10px; }
.tool-option {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  border: 1px solid var(--slate-200); border-radius: var(--radius);
  cursor: pointer; transition: 0.15s; background: var(--white);
}
.tool-option:hover { border-color: var(--accent); background: var(--accent-light); }
.tool-option.selected { border-color: var(--accent); background: var(--accent-light); }
.tool-option input { accent-color: var(--accent); }
.tool-input {
  width: 100%; padding: 14px 18px; border: 1px solid var(--slate-200);
  border-radius: var(--radius); font-size: 1rem; font-family: inherit;
}
.tool-input:focus { outline: 2px solid var(--accent-light); border-color: var(--accent); }
.tool-nav { display: flex; justify-content: space-between; margin-top: 32px; gap: 12px; }
.tool-results { padding: 48px 0; }
.result-section { margin-bottom: 40px; }
.result-section h3 {
  font-size: 1.125rem; margin-bottom: 16px; padding-bottom: 8px;
  border-bottom: 2px solid var(--accent-light);
}
.result-list { list-style: none; padding: 0; margin: 0; }
.result-list li {
  padding: 12px 0; border-bottom: 1px solid var(--slate-100);
  padding-left: 24px; position: relative;
}
.result-list li::before {
  content: '→'; position: absolute; left: 0; color: var(--accent); font-weight: 600;
}
.score-display {
  text-align: center; padding: 40px; background: var(--navy-900); color: var(--white);
  border-radius: var(--radius-xl); margin-bottom: 32px;
}
.score-number { font-size: 4rem; font-weight: 700; color: var(--accent); line-height: 1; }
.score-label { font-size: 1rem; color: var(--slate-300); margin-top: 8px; }
.score-breakdown { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-top: 24px; }
.score-item { padding: 16px; background: rgba(255,255,255,0.06); border-radius: var(--radius); }
.score-item-label { font-size: 0.8125rem; color: var(--slate-400); margin-bottom: 4px; }
.score-item-value { font-size: 1.5rem; font-weight: 600; color: var(--accent); }

/* Checklist */
.checklist-section { margin-bottom: 32px; }
.checklist-section h3 { margin-bottom: 16px; }
.checklist-item {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--slate-100); cursor: pointer;
}
.checklist-item input { margin-top: 4px; accent-color: var(--accent); width: 18px; height: 18px; }
.checklist-item.done label { text-decoration: line-through; color: var(--slate-400); }

/* Search results */
.search-form-large { display: flex; gap: 8px; max-width: 560px; margin-bottom: 32px; }
.search-form-large input { flex: 1; padding: 14px 18px; border: 1px solid var(--slate-200); border-radius: var(--radius); font-size: 1rem; }
.search-result { padding: 20px 0; border-bottom: 1px solid var(--slate-200); }
.search-result-type {
  display: inline-block; font-size: 0.6875rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--accent-dark); background: var(--accent-light);
  padding: 2px 8px; border-radius: 4px; margin-bottom: 6px;
}
.search-result h3 { font-size: 1.0625rem; margin-bottom: 4px; }
.search-result p { font-size: 0.875rem; color: var(--slate-500); margin: 0; }

/* Dashboard */
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.dashboard-card {
  padding: 24px; background: var(--white); border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg); text-decoration: none; color: inherit; transition: 0.2s;
}
.dashboard-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); color: inherit; }
.dashboard-card h3 { font-size: 1rem; margin-bottom: 6px; }
.dashboard-card p { font-size: 0.875rem; color: var(--slate-500); margin: 0; }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 6px; color: var(--navy-700); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--slate-200);
  border-radius: var(--radius); font-size: 1rem; font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: 2px solid var(--accent-light); border-color: var(--accent);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-card { max-width: 440px; margin: 48px auto; padding: 32px; border: 1px solid var(--slate-200); border-radius: var(--radius-xl); }
.form-card h1 { font-size: 1.5rem; margin-bottom: 8px; }
.form-card .muted { margin-bottom: 24px; }
.flash { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 20px; font-size: 0.875rem; }
.flash-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.flash-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.flash-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* Empty state */
.empty-state { text-align: center; padding: 64px 24px; }
.empty-state h2 { margin-bottom: 12px; }
.empty-state p { color: var(--slate-500); max-width: 400px; margin: 0 auto 24px; }
.empty-state-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Badges */
.badge {
  display: inline-block; font-size: 0.6875rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; padding: 3px 8px; border-radius: 4px;
}
.badge-accent { background: var(--accent-light); color: var(--accent-dark); }
.badge-muted { background: var(--slate-100); color: var(--slate-500); }
.badge-verified { background: #ecfdf5; color: #065f46; }

/* Footer */
.site-footer { background: var(--navy-950); color: var(--slate-300); padding: 64px 0 32px; margin-top: 64px; }
.site-footer a { color: var(--slate-300); }
.site-footer a:hover { color: var(--accent); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(5, 1fr); gap: 32px; margin-bottom: 48px; }
.footer-brand .footer-logo { margin-bottom: 16px; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-tagline { font-family: var(--font-serif); font-size: 1.125rem; color: var(--white); margin-bottom: 8px; }
.footer-col h4 { color: var(--white); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 0.875rem; }
.footer-newsletter { border-top: 1px solid var(--navy-800); padding-top: 40px; margin-bottom: 40px; }
.newsletter-box h4 { color: var(--white); margin-bottom: 8px; }
.newsletter-form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; max-width: 560px; }
.newsletter-form input, .newsletter-form select {
  padding: 10px 14px; border: 1px solid var(--navy-700); border-radius: var(--radius);
  background: var(--navy-800); color: var(--white); font-size: 0.875rem; font-family: inherit;
}
.newsletter-form input { flex: 1; min-width: 180px; }
.footer-bottom { border-top: 1px solid var(--navy-800); padding-top: 24px; }
.footer-bottom p { font-size: 0.8125rem; margin-bottom: 8px; color: var(--slate-500); }

/* Admin */
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.admin-table th, .admin-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--slate-200); }
.admin-table th { font-weight: 600; background: var(--slate-50); }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; margin-bottom: 32px; }
.admin-stat { padding: 20px; background: var(--slate-50); border-radius: var(--radius-lg); }
.admin-stat-value { font-size: 1.75rem; font-weight: 700; color: var(--navy-900); }
.admin-stat-label { font-size: 0.8125rem; color: var(--slate-500); }

/* 404 */
.page-404 { text-align: center; padding: 80px 24px; }
.page-404 h1 { font-size: 4rem; color: var(--accent); margin-bottom: 16px; }

/* Responsive */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .tool-spotlight { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--slate-200);
    flex-direction: column; align-items: stretch; padding: 16px; gap: 4px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav > a { padding: 12px 16px; }
  .header-search { margin: 8px 0; }
  .header-search input { width: 100%; }
  .nav-actions { flex-direction: column; margin: 8px 0 0; }
  .hero h1 { font-size: 2.25rem; }
  .hero-compact h1 { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: 1fr; }
}
