/* ==========================================================
   hub-sport.css — Complementary styles for Hub & Satellite pages
   Extends main.css — uses same variables, fonts, and design system
   ========================================================== */

/* ---- GLOBAL LINK RESET ---- */
a {
    text-decoration: none;
    color: inherit;
}

/* ---- LOGO FIX ---- */
.logo {
    text-decoration: none;
    text-transform: uppercase;
}

/* ---- BREADCRUMB (first element in <main>, below fixed nav) ---- */
.breadcrumb-bar {
    padding: 0.6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    /* push below fixed nav — adjust if your nav height changes */
    padding-top: calc(1.2rem + 70px);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--neon-blue);
}

.breadcrumb-sep {
    margin: 0 0.5rem;
    color: var(--dark-border);
}

.breadcrumb [aria-current="page"] {
    color: var(--text-primary);
}

/* ---- HERO VARIANTS ---- */
.hero-hub {
    min-height: 60vh;
    padding: 2rem 0 4rem;
}

.hero-satellite {
    min-height: 30vh;
    padding: 2rem 0 3rem;
}

/* Hero 2-column grid: text left, image right */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-content {
    max-width: 100%;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    line-height: 1.7;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    border: 1px solid var(--dark-border);
}

/* ---- STAT BADGE (accuracy in hero) ---- */
.stat-badge {
    display: inline-block;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--neon-blue);
    padding: 0.5rem 1.25rem;
    margin-top: 1.5rem;
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 50px;
    letter-spacing: 0.5px;
}

/* ---- EDITORIAL INTRO (Hub pages — full width content section) ---- */
.editorial-intro {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid var(--dark-border);
}

.editorial-intro-content {
    max-width: 100%;
}

.editorial-intro h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.editorial-intro p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.editorial-intro strong {
    color: var(--neon-blue);
    font-weight: 600;
}

/* ---- SECTIONS LAYOUT ---- */
.bet-types,
.ai-models,
.how-it-works,
.related-pages,
.faq-section,
.cta-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* ---- FEATURE CARD LINK (satellites / related pages) ---- */
.feature-card-link {
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s, transform 0.2s;
    cursor: pointer;
}

.feature-card-link:hover {
    border-color: var(--neon-blue);
    transform: translateY(-4px);
}

.feature-card-link h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.feature-card-link p {
    color: var(--text-secondary);
    flex-grow: 1;
}

.card-arrow {
    font-size: 1.5rem;
    color: var(--neon-blue);
    margin-top: 1rem;
    align-self: flex-end;
}

.feature-card-parent {
    border-color: rgba(177, 74, 237, 0.3);
}

.feature-card-parent:hover {
    border-color: var(--neon-purple);
}

/* ---- LANGUAGE SELECTOR (header) ---- */
.lang-selector {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-option {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.lang-option:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.lang-option.lang-active {
    color: var(--neon-blue);
    background: rgba(0, 240, 255, 0.08);
}

.lang-option img {
    border-radius: 2px;
}

/* ---- EDITORIAL CONTENT (Satellite pages) ---- */
.editorial-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
}

.content-block {
    margin-bottom: 3rem;
}

.content-block h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--dark-border);
}

.content-block h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--neon-blue);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.content-block p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.internal-link-block {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--dark-border);
}

.internal-link {
    color: var(--neon-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: color 0.2s;
}

.internal-link:hover {
    color: var(--neon-purple);
}

/* ---- SOCIAL LINKS (footer) ---- */

/* ---- FOOTER LIST RESET (remove default bullets) ---- */
.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--neon-blue);
}

.footer-links h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.social-link {
    color: var(--text-secondary);
    font-size: 1.25rem;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--dark-border);
}

.social-link:hover {
    color: var(--neon-blue);
    border-color: var(--neon-blue);
}

/* ---- FAQ ACTIVE STATE (expand/collapse) ---- */
.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-answer {
    transition: max-height 0.3s ease, padding 0.2s ease;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .breadcrumb-bar {
        padding: 0.4rem 1rem;
        padding-top: calc(1rem + 60px);
    }

    .hero-hub {
        min-height: auto;
        padding: 1.5rem 0 2rem;
    }

    .hero-satellite {
        min-height: auto;
        padding: 1.5rem 0 1.5rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .hero-image {
        order: 2;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .editorial-intro {
        padding: 2.5rem 1rem;
    }

    .editorial-intro h2 {
        font-size: 1.2rem;
    }

    .bet-types,
    .ai-models,
    .how-it-works,
    .related-pages,
    .faq-section,
    .cta-section {
        padding: 2.5rem 1rem;
    }

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

    .editorial-content {
        padding: 1.5rem 1rem 3rem;
    }

    .content-block h2 {
        font-size: 1.25rem;
    }

    .lang-selector {
        gap: 0.25rem;
    }

    .lang-option span {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.4rem;
    }

    .stat-badge {
        font-size: 0.75rem;
    }
}

/* ── Container ── */
#hub-prediction-preview {
  max-width: 480px;
  margin: 0 auto;
}

/* ── Card ── */
.hub-match-card {
  background: #0a0a1a;
  border: 1px solid #1a1a2e;
  border-radius: 12px;
  padding: 20px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 1;
}

.hub-match-card:hover {
  border-color: rgba(255, 45, 146, 0.4);
  box-shadow: 0 0 20px rgba(255, 45, 146, 0.1);
}

.hub-match-card.football:hover {
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

/* ── Header: time + status ── */
.hub-match-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #1a1a2e;
}

.hub-match-time {
  font-family: 'Roboto Mono', 'Orbitron', monospace;
  font-size: 0.85rem;
  color: #8892a4;
}

.hub-status {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
  background-color: rgba(0, 240, 255, 0.15);
  color: #00f0ff;
}

.hub-status-live {
  background-color: rgba(255, 45, 146, 0.2);
  color: #ff2d92;
  animation: hub-pulse 1.5s ease-in-out infinite;
}

@keyframes hub-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ── Teams ── */
.hub-match-teams {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.hub-team {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.hub-team-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.hub-team-name {
  font-weight: 500;
  font-size: 0.95rem;
  color: #ffffff;
}

.hub-team-score {
  font-family: 'Roboto Mono', monospace;
  font-weight: 700;
  font-size: 1.1rem;
  color: #ffffff;
}

/* ── Footer: prediction + meta ── */
.hub-match-footer {
  padding-top: 12px;
  border-top: 1px solid #1a1a2e;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hub-prediction {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hub-prediction-label {
  font-size: 0.75rem;
  color: #8892a4;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hub-prediction-value {
  font-weight: 600;
  font-size: 0.95rem;
}

.hub-prediction-value.nba {
  color: #ff2d92;
  text-shadow: 0 0 10px rgba(255, 45, 146, 0.3);
}

.hub-prediction-value.football {
  color: #00f0ff;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

/* ── Analysis ── */
.hub-analysis {
  font-size: 0.85rem;
  color: #ffffff;
  line-height: 1.5;
}

.hub-analysis-icon {
  font-size: 0.85rem;
}

/* ── Meta row: confidence + odds ── */
.hub-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid rgba(26, 26, 46, 0.6);
}

.hub-confidence,
.hub-odds {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.hub-meta-label {
  font-size: 0.7rem;
  color: #8892a4;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Confidence bars ── */
.hub-bars {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 16px;
}

.hub-bar {
  width: 6px;
  height: 100%;
  background-color: #1a1a2e;
  border-radius: 3px;
  transition: background-color 0.3s ease;
}

.hub-bars.low .hub-bar:nth-child(1) {
  background-color: #00f0ff;
  box-shadow: 0 0 5px #00f0ff;
}

.hub-bars.medium .hub-bar:nth-child(-n+2) {
  background-color: #00f0ff;
  box-shadow: 0 0 5px #00f0ff;
}

.hub-bars.high .hub-bar {
  background-color: #00f0ff;
  box-shadow: 0 0 5px #00f0ff;
}

/* NBA accent override for confidence bars */
.hub-match-card.nba .hub-bars.low .hub-bar:nth-child(1),
.hub-match-card.nba .hub-bars.medium .hub-bar:nth-child(-n+2),
.hub-match-card.nba .hub-bars.high .hub-bar {
  background-color: #ff2d92;
  box-shadow: 0 0 5px #ff2d92;
}

/* ── Odds value ── */
.hub-odds-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
  background-color: #1a1a2e;
}

.hub-odds-value.nba {
  color: #ff2d92;
  border: 1px solid rgba(255, 45, 146, 0.3);
}

.hub-odds-value.football {
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.3);
}

/* ── Fallback state ── */
.hub-fallback {
  text-align: center;
  padding: 30px 20px;
}

.hub-fallback p {
  color: #8892a4;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  #hub-prediction-preview {
    max-width: 100%;
    padding: 0 1rem;
  }
  
  .hub-match-card {
    padding: 16px;
  }
  
  .hub-team-name {
    font-size: 0.85rem;
  }
  
  .hub-prediction-value {
    font-size: 0.9rem;
  }
  
  .hub-analysis {
    font-size: 0.8rem;
  }
}

/* ── Neon pink glow around NBA prediction card ── */
.hub-match-card.nba {
  box-shadow: 0 0 20px rgba(255, 45, 146, 0.08), 0 0 60px rgba(255, 45, 146, 0.04);
}

.hub-match-card.nba:hover {
  box-shadow: 0 0 25px rgba(255, 45, 146, 0.15), 0 0 80px rgba(255, 45, 146, 0.08);
}
