/* Cycling Lookout - Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #1a1a1a;
  color: #e0e0e0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #FFD700;
}

a {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #FFF;
}

/* Header & Navigation */
header {
  background-color: #222;
  border-bottom: 2px solid #FFD700;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav a {
  margin-left: 2rem;
  font-size: 0.95rem;
}

.logo {
  font-size: 1.5rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
}

/* Promo Bar */
.promo-bar {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #000;
  padding: 0.75rem;
  text-align: center;
  font-weight: 600;
  font-family: 'Oswald', sans-serif;
}

/* Main Content */
main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.page-title {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  color: #FFD700;
}

.page-subtitle {
  font-size: 1.2rem;
  color: #999;
  margin-bottom: 2rem;
}

/* Cards */
.card {
  background-color: #222;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: #FFD700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
}

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

.card-subtitle {
  color: #999;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.card-content {
  line-height: 1.8;
  color: #ddd;
}

/* Winner Podium */
.podium {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.podium-position {
  background-color: #222;
  border: 2px solid #333;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.podium-position.first {
  border-color: #FFD700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.podium-position.second {
  border-color: #c0c0c0;
}

.podium-position.third {
  border-color: #CD7F32;
}

.podium-label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  color: #999;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.podium-name {
  font-size: 1.3rem;
  color: #FFD700;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.podium-team {
  font-size: 0.85rem;
  color: #999;
}

/* Year Grid */
.year-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.year-card {
  background-color: #222;
  border: 2px solid #333;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.year-card:hover {
  border-color: #FFD700;
  transform: translateY(-2px);
}

.year-card a {
  display: block;
  color: #FFD700;
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.year-winner {
  font-size: 0.9rem;
  color: #ddd;
}

/* Key Moments */
.moments {
  background-color: #222;
  border-left: 4px solid #FFD700;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 4px;
}

.moments h3 {
  margin-bottom: 1rem;
}

.moment {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #333;
}

.moment:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.moment-label {
  font-family: 'Oswald', sans-serif;
  color: #FFD700;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* Navigation */
.nav-buttons {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}

.nav-button {
  background-color: #222;
  border: 2px solid #333;
  color: #FFD700;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.nav-button:hover {
  border-color: #FFD700;
  background-color: #1a1a1a;
}

.nav-button.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Footer */
footer {
  background-color: #222;
  border-top: 2px solid #FFD700;
  padding: 2rem;
  margin-top: 4rem;
  text-align: center;
  color: #999;
}

footer a {
  color: #FFD700;
}

/* Responsive */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 1rem;
  }

  nav a {
    margin-left: 0;
  }

  .page-title {
    font-size: 2rem;
  }

  .podium {
    grid-template-columns: 1fr;
  }

  .year-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .nav-buttons {
    flex-direction: column;
  }
}

/* ===== HOMEPAGE LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header extended */
.header { background-color: #222; border-bottom: 2px solid #FFD700; position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.logo span { color: #fff; }
.nav { display: flex; gap: 28px; }
.nav-link { color: #ccc !important; font-size: .9rem; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; padding: 6px 0; border-bottom: 2px solid transparent; transition: all .2s; }
.nav-link:hover, .nav-link.active { color: #FFD700 !important; border-bottom-color: #FFD700; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 26px; height: 3px; background: #FFD700; border-radius: 2px; }

/* Ticker */
section.ticker { background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%); overflow: hidden; white-space: nowrap; height: 40px; line-height: 40px; }
section.ticker .container { display: flex; align-items: center; height: 100%; overflow: hidden; padding: 0; }
.ticker-label { background: #111; color: #FFD700; font-family: 'Oswald', sans-serif; font-weight: 700; font-size: .8rem; padding: 0 16px; height: 100%; display: flex; align-items: center; flex-shrink: 0; letter-spacing: 1px; }
.ticker-content { display: flex; animation: ticker-scroll 40s linear infinite; flex-shrink: 0; }
.ticker-item { flex-shrink: 0; padding: 0 32px; }
.ticker-item p { font-size: .85rem; font-weight: 700; color: #000; text-transform: uppercase; white-space: nowrap; }
.ticker-item p::before { content: '\25CF'; margin-right: 10px; }
@keyframes ticker-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Hero */
.hero-section { padding: 32px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hero-card { border-radius: 8px; overflow: hidden; background: #222; }
.hero-card-link { display: block; color: inherit; text-decoration: none; }
.hero-card-main { border-left: 6px solid #FFD700; }
.hero-card-main .hero-img { height: 0; }
.hero-img { display: none; }
.hero-card-body { background: #222; padding: 32px; position: relative; z-index: 2; }
.hero-card-body h2 { font-size: 1.6rem; color: #fff; margin-top: 8px; }
.hero-excerpt { color: #bbb; font-size: .9rem; margin-top: 8px; line-height: 1.5; }
.hero-cards-side { display: flex; flex-direction: column; gap: 20px; }
.hero-card-side { background: #222; border-radius: 8px; overflow: hidden; transition: background .2s; }
.hero-card-side:hover { background: #2a2a2a; }
.hero-card-body-side { padding: 18px 20px; }
.hero-card-body-side h3 { font-size: 1rem; color: #fff; margin-top: 6px; line-height: 1.25; }

/* Category Tags */
.category-tag { display: inline-block; background: #FFD700; color: #000; font-size: .65rem; font-weight: 800; text-transform: uppercase; padding: 3px 10px; border-radius: 3px; letter-spacing: .5px; }

/* Article Meta */
.article-meta { font-size: .7rem; color: #666; text-transform: uppercase; letter-spacing: .5px; margin-top: 10px; }

/* Main Wrapper (content + sidebar) */
.main-wrapper { display: grid; grid-template-columns: 1fr 340px; gap: 36px; max-width: 1200px; margin: 0 auto; padding: 0 20px 40px; }
.main-content { min-width: 0; }

/* Section Headers */
.section-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 3px solid #FFD700; margin-bottom: 24px; margin-top: 40px; }
.section-title { font-size: 1.3rem; color: #FFD700; }
.view-all { font-family: 'Oswald', sans-serif; font-size: .8rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }

/* Article Cards Grid */
.article-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.article-card { background: #222; border-radius: 8px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.article-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.article-card-link { display: block; color: inherit; text-decoration: none; }
.article-card .card-img { display: none; }
.card-body { padding: 16px; }
.card-body h3 { font-size: 1.05rem; color: #fff; margin: 8px 0; }
.card-body .excerpt { font-size: .85rem; color: #aaa; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Trending */
.trending-list { list-style: none; counter-reset: trend; }
.trending-list li { counter-increment: trend; padding: 14px 0; border-bottom: 1px solid #333; display: flex; align-items: flex-start; gap: 14px; }
.trending-list li::before { content: counter(trend); font-family: 'Oswald', sans-serif; font-size: 1.6rem; font-weight: 700; color: #FFD700; min-width: 28px; }
.trending-list a { color: #ddd; font-weight: 600; font-size: .95rem; line-height: 1.3; display: flex; flex-direction: column; gap: 4px; }
.trending-list a:hover { color: #FFD700; }
.trending-category { font-size: .75rem; color: #777; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 28px; padding-top: 40px; }
.sidebar-box { background: #222; border-radius: 8px; padding: 20px; }
.sidebar-title { font-size: 1rem; color: #FFD700; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid #FFD700; }

/* Shop Promo */
.shop-promo { background: linear-gradient(135deg, #FFD700, #FFA500) !important; text-align: center; padding: 30px 20px !important; }
.shop-promo-label { font-family: 'Oswald', sans-serif; font-size: .7rem; font-weight: 500; text-transform: uppercase; letter-spacing: 2px; color: rgba(0,0,0,.45); margin-bottom: 4px; }
.shop-promo-title { font-family: 'Oswald', sans-serif; font-size: 2rem; font-weight: 700; text-transform: uppercase; letter-spacing: 3px; color: #000; line-height: 1.1; margin-bottom: 6px; }
.shop-promo-sub { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(0,0,0,.55); margin-bottom: 16px; }
.shop-promo-btn { display: inline-block; background: #1a1a1a; color: #FFD700 !important; font-family: 'Oswald', sans-serif; font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; padding: 10px 28px; border-radius: 3px; margin-bottom: 8px; }
.shop-promo-url { font-size: .7rem; color: rgba(0,0,0,.35); }

/* Rankings List */
.rankings-list { list-style: none; }
.rankings-list li { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid #333; font-size: .9rem; }
.rankings-list .rank { font-family: 'Oswald', sans-serif; font-weight: 700; color: #FFD700; min-width: 20px; }
.rankings-list .name { color: #ddd; font-weight: 600; flex: 1; }
.rankings-list .discipline { color: #888; font-size: .8rem; }

/* Races List */
.races-list { list-style: none; }
.races-list li { padding: 10px 0; border-bottom: 1px solid #333; }
.races-list .race-name { color: #ddd; font-weight: 600; font-size: .9rem; display: block; }
.races-list .race-date { color: #888; font-size: .8rem; margin-top: 2px; display: block; }

/* Social */
.social-link { display: flex; align-items: center; gap: 10px; color: #ccc !important; font-weight: 500; }
.social-link .followers { color: #888; font-size: .85rem; }
.sidebar-links { list-style: none; }
.sidebar-links li { padding: 6px 0; }
.sidebar-links a { color: #ccc; font-size: .9rem; font-weight: 500; }
.sidebar-links a:hover { color: #FFD700; }

/* Newsletter */
.newsletter { background: linear-gradient(135deg, #111, #1a1a1a); border: 2px solid #FFD700; border-radius: 8px; padding: 40px; text-align: center; margin: 40px auto; max-width: 1200px; }
.newsletter h2 { font-size: 1.6rem; color: #FFD700; margin-bottom: 8px; }
.newsletter p { color: #aaa; margin-bottom: 20px; font-size: .95rem; }
.newsletter-form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; }
.newsletter-form input { flex: 1; padding: 12px 16px; border: 2px solid #444; border-radius: 8px; background: #222; color: #fff; font-size: .95rem; }
.newsletter-form input:focus { outline: none; border-color: #FFD700; }
.newsletter-form button { background: #FFD700; color: #000; border: none; padding: 12px 28px; border-radius: 8px; font-weight: 800; font-size: .9rem; text-transform: uppercase; cursor: pointer; }

/* Footer extended */
.footer { background: #222; border-top: 2px solid #FFD700; padding: 48px 0 24px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 32px; max-width: 1200px; margin-left: auto; margin-right: auto; padding: 0 20px; }
.footer-logo { font-family: 'Oswald', sans-serif; font-size: 1.4rem; font-weight: 900; color: #FFD700; text-transform: uppercase; }
.footer-tagline { color: #888; font-size: .85rem; margin-top: 8px; }
.footer-col-title { font-size: .85rem; color: #FFD700; margin-bottom: 14px; letter-spacing: 1px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #999; font-size: .85rem; }
.footer-links a:hover { color: #FFD700; }
.footer-bottom { border-top: 1px solid #333; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.copyright { color: #666; font-size: .8rem; }
.social-footer { display: flex; gap: 16px; }
.social-footer-link { color: #888 !important; font-size: .85rem; font-weight: 600; }

/* Placeholder images - hidden for text-only layout */
.placeholder-img { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .main-wrapper { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  nav { flex-direction: column; gap: 1rem; }
  nav a { margin-left: 0; }
  .hamburger { display: flex; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #222; padding: 20px; z-index: 999; flex-direction: column; gap: 0; }
  .nav.open { display: flex; }
  .nav-link { display: block; padding: 12px 0; font-size: 1rem; border-bottom: 1px solid #333; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card-main { border-left: 0; border-top: 6px solid #FFD700; }
  .hero-card-main .hero-img { display: none; }
  .article-grid { grid-template-columns: 1fr; }
  .page-title { font-size: 2rem; }
  .podium { grid-template-columns: 1fr; }
  .year-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .nav-buttons { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .newsletter { padding: 24px 16px; margin: 40px 20px; }
  .newsletter-form { flex-direction: column; }
}

/* Print Styles */
@media print {
  header, footer, .nav-buttons, .promo-bar { display: none; }
  body { background-color: white; color: black; }
  .card, .podium-position { background-color: white; border: 1px solid #ccc; color: black; }
  a { color: #0066cc; }
}
