:root {
  --primary: #0EA5A8;
  --secondary: #1F6F78;
  --accent: #D88C4A;
  --bg: #08161A;
  --surface: #13272C;
  --text-main: #E9F5F5;
  --text-muted: #A6BDBE;
  
  --font-heading: 'Nunito', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.5), 0 2px 4px -1px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.6), 0 4px 6px -2px rgba(0,0,0,0.4);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; }

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

header {
  background: rgba(19, 39, 44, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span { color: var(--accent); }

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

.nav-links a {
  color: var(--text-main);
  font-weight: 500;
}

.nav-links a:hover { color: var(--accent); }

.burger { display: none; background: none; border: none; color: var(--text-main); font-size: 1.5rem; cursor: pointer; }

footer {
  background: var(--surface);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h3 { font-size: 1.2rem; margin-bottom: 1.5rem; color: var(--text-main); }
.footer-col p { color: var(--text-muted); margin-bottom: 1rem; }
.footer-col ul li { margin-bottom: 0.75rem; }
.footer-col ul a { color: var(--text-muted); }
.footer-col ul a:hover { color: var(--primary); }

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* UI Elements */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover {
  background: #E59F60;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(216, 140, 74, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-secondary:hover {
  background: rgba(14, 165, 168, 0.1);
  transform: translateY(-2px);
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(14, 165, 168, 0.2);
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Sections */
.section { padding: 5rem 0; }
.section-light { background: var(--surface); }
.section-header { text-align: center; max-width: 800px; margin: 0 auto 3rem; }
.section-header h2 { font-size: 2.5rem; color: var(--text-main); }
.section-header p { color: var(--text-muted); font-size: 1.125rem; }

/* Cards Grid */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.05);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(14, 165, 168, 0.3);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.card-meta {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.card-meta div {
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-actions {
  margin-top: auto;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.card-actions .btn { flex: 1; padding: 0.5rem; font-size: 0.875rem; }

/* Hero specific - gradient solid editorial stack */
.hero-gradient {
  background: linear-gradient(135deg, var(--bg) 0%, var(--surface) 100%);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.hero-stack-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

@media(min-width: 992px) {
  .hero-stack-container {
    flex-direction: row;
    align-items: center;
  }
  .hero-content { flex: 1; }
  .hero-media { flex: 1; }
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-main);
  line-height: 1.1;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-controls {
  background: rgba(255,255,255,0.05);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-controls select, .hero-controls input {
  background: var(--bg);
  color: var(--text-main);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.75rem;
  border-radius: var(--radius);
  flex: 1;
  min-width: 150px;
}

.hero-media-panel {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--surface);
}

.hero-media-panel img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.hero-ticker {
  background: var(--primary);
  color: var(--bg);
  padding: 1rem 0;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
}

.ticker-track {
  display: inline-flex;
  gap: 3rem;
  animation: ticker 30s linear infinite;
}

.ticker-item {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease-out;
}
.stagger.active > * {
  opacity: 1;
  transform: translateY(0);
}

/* Generate staggered delays */
.stagger > *:nth-child(1) { transition-delay: 0.1s; }
.stagger > *:nth-child(2) { transition-delay: 0.2s; }
.stagger > *:nth-child(3) { transition-delay: 0.3s; }
.stagger > *:nth-child(4) { transition-delay: 0.4s; }
.stagger > *:nth-child(5) { transition-delay: 0.5s; }
.stagger > *:nth-child(6) { transition-delay: 0.6s; }

/* Filter Bar */
.filter-bar {
  background: var(--surface);
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  position: sticky;
  top: 80px;
  z-index: 90;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.05);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-bar select, .filter-bar input {
  padding: 0.5rem;
  background: var(--bg);
  color: var(--text-main);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
}

/* Compare Tray */
.compare-tray {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--surface);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transform: translateY(150%);
  transition: transform 0.3s ease;
  width: 320px;
}
.compare-tray.visible {
  transform: translateY(0);
}

.compare-tray h4 { margin-bottom: 0.5rem; }
.compare-list { font-size: 0.875rem; margin-bottom: 1rem; color: var(--text-muted); }

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  position: relative;
  transform: scale(0.9);
  transition: var(--transition);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-size: 0.875rem; color: var(--text-muted); }
.form-control {
  width: 100%;
  padding: 0.75rem;
  background: var(--bg);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-main);
  border-radius: var(--radius);
}

/* Accordion */
.accordion-item {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
}
.accordion-header {
  width: 100%;
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.accordion-content {
  padding: 0 1.25rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
  color: var(--text-muted);
}
.accordion-item.active .accordion-content {
  padding: 0 1.25rem 1.25rem;
  max-height: 500px;
}

/* Sport Cards */
.sport-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 300px;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.sport-card:hover {
  transform: translateY(-5px);
}

.sport-card img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.5s ease;
}

.sport-card:hover img {
  transform: scale(1.05);
}

.sport-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 10%, rgba(8,22,26,0.3) 100%);
  z-index: 2;
}

.sport-card-content {
  position: relative;
  z-index: 3;
  padding: 1.5rem;
  width: 100%;
}

.sport-card-title {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

/* Editorial Depth */
.editorial-content {
  max-width: 800px;
  margin: 0 auto;
}
.editorial-content h2 { font-size: 2rem; color: var(--accent); margin-top: 3rem; }
.editorial-content h3 { font-size: 1.5rem; color: var(--primary); margin-top: 2rem; }
.editorial-content p { margin-bottom: 1.5rem; font-size: 1.125rem; color: var(--text-muted); }
.editorial-content ul { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.editorial-content li { margin-bottom: 0.5rem; color: var(--text-muted); position: relative; }
.editorial-content li::before { content: '•'; color: var(--accent); position: absolute; left: -1.2rem; }

/* Responsive */
@media(max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px; left: 0; width: 100%;
    background: var(--surface);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.active { display: flex; }
  .burger { display: block; }
  .hero-content h1 { font-size: 2.5rem; }
  .section { padding: 3rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.review-card {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
}
.review-text { font-style: italic; margin-bottom: 1rem; }
.review-author { font-weight: 700; color: var(--primary); }
.review-school { font-size: 0.875rem; color: var(--text-muted); }

.detail-hero {
  position: relative;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
}
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.detail-overlay {
  position: absolute; inset: 0; background: linear-gradient(to top, var(--bg), transparent);
  display: flex; align-items: flex-end; padding: 3rem;
}
