/* ==========================================================================
   StarSportNews - Phase 1 Hybrid Stylesheet (style.css)
   ========================================================================== */

/* --- 1. Global Resets & Variables --- */
:root {
  --color-primary: #0A192F;      /* Deep Navy */
  --color-primary-light: #172A45;
  --color-accent: #E63946;       /* Sports Red */
  --color-accent-hover: #C52A36;
  --color-bg: #F8F9FA;           /* Light Theme Background */
  --color-surface: #FFFFFF;      /* Surface Card Background */
  --color-border: #E2E8F0;
  --color-text-main: #1D2D35;
  --color-text-muted: #5C6B73;
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.page-content {
  padding-top: 32px;
  padding-bottom: 40px;
}

/* Visually Hidden SEO Heading */
.seo-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- 2. Header Section --- */
.site-header {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: var(--color-primary);
}

.logo span {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-main);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-accent);
}

/* --- 3. Running Banner / Ticker --- */
.ticker-wrapper {
  background-color: var(--color-primary);
  color: #FFFFFF;
  padding: 10px 0;
  border-bottom: 2px solid var(--color-accent);
}

.flex-ticker marquee {
  display: flex;
  align-items: center;
}

.ticker-wrapper a {
  color: #E2E8F0;
  margin-right: 40px;
  font-size: 14px;
}

.ticker-wrapper a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

/* --- 4. Sports 8-Card Grid --- */
.sports-grid-section {
  margin-bottom: 32px;
}

.sports-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
}

@media (min-width: 600px) {
  .sports-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .sports-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.sport-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.sport-card:hover:not(.coming-soon) {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
}

.sport-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 6px;
}

.sport-card h2 {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--color-primary);
  font-weight: 700;
}

.sport-card.coming-soon {
  opacity: 0.6;
  background-color: #FAFAFA;
  cursor: not-allowed;
}

.sport-card .tag {
  font-size: 11px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-top: 4px;
  display: block;
  letter-spacing: 0.5px;
}

/* --- 5. AdSense Placeholder Box --- */
.adsense-slot {
  background-color: #EAEFF5;
  border: 1px dashed #CBD5E1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 28px 0;
  position: relative;
  min-height: 90px;
}

.ad-label {
  font-size: 11px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ads-mid-banner {
  width: 100%;
  height: 90px;
}

/* --- 6. Latest Headlines Feed Section --- */
.latest-feed-section {
  background-color: var(--color-surface);
  border-radius: 8px;
  border: 1px solid var(--color-border);
  padding: 24px;
}

.feed-header {
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 12px;
  margin-bottom: 20px;
  position: relative;
}

.feed-header h2 {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--color-primary);
}

.feed-header h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background-color: var(--color-accent);
}

.feed-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feed-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.feed-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

@media (min-width: 600px) {
  .feed-item {
    flex-direction: row;
    align-items: baseline;
    gap: 16px;
  }
}

.badge {
  display: inline-block;
  background-color: var(--color-primary);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.badge.accent-badge {
  background-color: var(--color-accent);
}

.feed-details h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--color-primary);
}

.feed-details h3 a:hover {
  color: var(--color-accent);
}

.feed-details p {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.feed-details time {
  font-size: 12px;
  color: #94A3B8;
}

/* --- 7. Footer --- */
.site-footer {
  background-color: var(--color-primary);
  color: #FFFFFF;
  padding: 24px 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

@media (min-width: 600px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: #E2E8F0;
}

.footer-links a:hover {
  color: #FFFFFF;
}

/* --- Static Pages Layout (About, Privacy, Terms, Disclaimer) --- */
.static-page-card {
  background-color: var(--color-surface);
  border-radius: 8px;
  border: 1px solid var(--color-border);
  padding: 32px 24px;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .static-page-card {
    padding: 40px;
  }
}

.page-header {
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.lead-text {
  font-size: 16px;
  color: var(--color-text-muted);
  font-weight: 500;
}

.content-block {
  margin-bottom: 24px;
}

.content-block h2 {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.content-block p {
  color: var(--color-text-main);
  font-size: 15px;
  margin-bottom: 12px;
  line-height: 1.6;
}

.content-block ul {
  list-style-type: disc;
  padding-left: 20px;
  margin-bottom: 12px;
}

.content-block ul li {
  margin-bottom: 8px;
  font-size: 15px;
}

.Highlight-box {
  background-color: var(--color-bg);
  border-left: 4px solid var(--color-accent);
  padding: 16px 20px;
  border-radius: 0 6px 6px 0;
}

.Highlight-box a {
  color: var(--color-accent);
}

.Highlight-box a:hover {
  text-decoration: underline;
}

/* --- Contact Page Grid & Form Styling --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 14px;
  background-color: var(--color-bg);
  transition: border-color 0.2s ease, outline 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background-color: #FFFFFF;
}

.submit-btn {
  background-color: var(--color-accent);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.submit-btn:hover {
  background-color: var(--color-accent-hover);
}

.submit-btn:active {
  transform: scale(0.98);
}

.small-text {
  font-size: 13px !important;
  color: var(--color-text-muted);
  margin-top: 8px;
}
/* --- Production Promo Banner / Ad Replacement --- */
.promo-banner-container {
  width: 100%;
  margin: 24px 0;
}

.promo-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: 8px;
  padding: 16px 24px;
  min-height: 90px; /* Standard AdSense Leaderboard height */
  color: #FFFFFF;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.promo-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(10, 25, 47, 0.15);
}

.promo-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.promo-tag {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 1px;
}

.promo-text {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
}

.promo-btn {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  background-color: var(--color-accent);
  color: #FFFFFF;
  padding: 8px 16px;
  border-radius: 4px;
  margin-top: 10px;
  white-space: nowrap;
}

@media (min-width: 600px) {
  .promo-banner {
    flex-direction: row;
  }
  
  .promo-content {
    align-items: flex-start;
    text-align: left;
  }

  .promo-btn {
    margin-top: 0;
  }
}
.subpage-divider {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #00b4d8 0%, #0a192f 100%);
    margin-bottom: 8px;
}
/* ==========================================
   MOBILE HEADER RESPONSIVE FIX
   ========================================== */

@media screen and (max-width: 768px) {
    /* 1. Stack header elements vertically */
    header, 
    .header, 
    .header-container, 
    nav {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 12px 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 2. Resize and space out the logo */
    header img, 
    .logo img, 
    .logo {
        max-height: 28px !important;
        width: auto !important;
        margin-bottom: 10px !important;
    }

    /* 3. Wrap menu items centered underneath the logo */
    header nav ul, 
    nav ul, 
    .nav-links {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
        width: 100% !important;
    }

    /* 4. Format link sizing and prevent text clipping */
    header nav a, 
    nav ul li a, 
    .nav-links a {
        font-size: 13px !important;
        padding: 4px 6px !important;
        white-space: nowrap !important;
    }
}