/* ═══════════════════════════════════════════════════════════════
   PREMIUM FIXES — April 2026
   
   1. Kill ugly Syne display font — replace with Plus Jakarta Sans
      heavy weight everywhere (cleaner, tighter, professional)
   2. Reading progress bar
   3. Back-to-top button
   4. Improved article typography
   5. Better breadcrumb styling
   6. Smooth scroll anchor offset fixes
   7. Enhanced interlinking hover states
   ═══════════════════════════════════════════════════════════════ */


/* ─── 1. FONT OVERRIDE — Kill Syne everywhere ────────────────── */
:root {
    --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Nuclear override: catch every place Syne was hardcoded */
.hero h1,
.page-header h1,
.hp-editorial-content h1,
.hp-author-name,
.hp-section-heading h2,
.hp-hiw-header h2,
.hp-hiw-card h3,
.hp-articles-heading h2,
.av-title,
.lp-title,
.lp-faq-title,
.av-faq-title,
h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-style: normal !important;
}

/* Homepage h1 — was way too wide/italic with Syne */
.hp-editorial-content h1 {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: clamp(1.6rem, 3.2vw, 2.2rem) !important;
    font-weight: 900 !important;
    font-style: normal !important;
    letter-spacing: -0.03em !important;
    line-height: 1.15 !important;
    color: #0f172a !important;
}

/* Page header h1 (hub pages, interior pages) */
.page-header h1 {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 900 !important;
    font-style: normal !important;
    letter-spacing: -0.025em !important;
}

/* Article view title */
.av-title {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: clamp(1.75rem, 4vw, 2.4rem) !important;
    font-weight: 900 !important;
    font-style: normal !important;
    letter-spacing: -0.025em !important;
    line-height: 1.18 !important;
}

/* Landing page title (white on dark hero) */
.lp-title {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 900 !important;
    font-style: normal !important;
    letter-spacing: -0.03em !important;
}

/* Section headings on homepage */
.hp-section-heading h2,
.hp-hiw-header h2,
.hp-articles-heading h2 {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 900 !important;
    font-style: normal !important;
    letter-spacing: -0.02em !important;
}

/* Hero h1 on homepage */
.hero h1 {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 900 !important;
    font-style: normal !important;
}

/* Author name on editorial card */
.hp-author-name {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 800 !important;
    font-style: normal !important;
    font-size: 1.1rem !important;
    letter-spacing: -0.01em !important;
}

/* Author title styling */
.hp-author-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
}


/* ─── 2. READING PROGRESS BAR ────────────────────────────────── */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #1d4ed8, #3b82f6, #fbbf24);
    z-index: 9999;
    transition: width 0.1s linear;
    pointer-events: none;
}


/* ─── 3. BACK TO TOP BUTTON ──────────────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    background: #0f172a;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
    z-index: 500;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: #1d4ed8;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(29,78,216,0.35);
}
@media (max-width: 768px) {
    .back-to-top { bottom: 20px; right: 16px; width: 40px; height: 40px; }
}


/* ─── 4. IMPROVED ARTICLE TYPOGRAPHY ─────────────────────────── */
.av-content {
    font-size: 1.06rem;
    line-height: 1.82;
    color: #334155;
}

.av-content h2 {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 1.55rem !important;
    font-weight: 800 !important;
    color: #0f172a;
    margin: 48px 0 16px;
    padding-top: 12px;
    border-top: 2px solid #f1f5f9;
    letter-spacing: -0.015em;
    line-height: 1.25;
}
.av-content h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }

.av-content h3 {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 1.18rem !important;
    font-weight: 700 !important;
    color: #0f172a;
    margin: 32px 0 12px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.av-content p {
    margin-bottom: 20px;
}

.av-content a {
    color: #1d4ed8;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
    transition: color 0.15s, text-decoration-color 0.15s;
}
.av-content a:hover {
    color: #1e3a8a;
    text-decoration-thickness: 2px;
}

/* Better blockquote styling */
.av-content blockquote {
    border-left: 4px solid #1d4ed8;
    margin: 28px 0;
    padding: 16px 24px;
    background: #eff6ff;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: #475569;
}

/* Better table styling in articles */
.av-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 28px;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-radius: 10px;
    overflow: hidden;
}
.av-content table th {
    background: #1d4ed8;
    color: #fff;
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
}
.av-content table td {
    padding: 11px 16px;
    border-bottom: 1px solid #f1f5f9;
}
.av-content table tr:nth-child(even) td { background: #f8fafc; }
.av-content table tr:last-child td { border-bottom: none; }


/* ─── 5. BETTER BREADCRUMB STYLING ───────────────────────────── */
.breadcrumb-nav {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 11px 0;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
    font-size: 0.8rem;
    margin: 0;
    padding: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #64748b;
}

.breadcrumb-item--current {
    color: #0f172a;
    font-weight: 700;
}

.breadcrumb-link {
    color: #1d4ed8;
    font-weight: 600;
    transition: color 0.15s;
    text-decoration: none;
}
.breadcrumb-link:hover {
    color: #1e3a8a;
    text-decoration: underline;
}

.breadcrumb-sep {
    color: #cbd5e1;
    margin: 0 4px;
    font-size: 0.7rem;
}


/* ─── 6. ENHANCED INTERLINK HOVER STATES ─────────────────────── */

/* Related articles cards */
.av-related-card {
    transition: transform 0.22s cubic-bezier(0.4,0,0.2,1), box-shadow 0.22s;
}
.av-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}
.av-related-card:hover h4 {
    color: #1d4ed8;
}

/* Sidebar TOC active state enhancement */
.av-toc-list a {
    transition: color 0.15s, padding-left 0.2s;
}
.av-toc-list a:hover {
    color: #1d4ed8;
    padding-left: 4px;
}

/* Sidebar sportsbook cards hover */
.av-book-row {
    transition: background 0.15s;
    padding: 8px;
    border-radius: 8px;
    margin: -8px;
}
.av-book-row:hover {
    background: #f8fafc;
}

/* FAQ hover enhancement */
.faq-item {
    transition: box-shadow 0.2s, border-color 0.2s;
}
.faq-item:hover {
    border-color: #bfdbfe;
    box-shadow: 0 2px 12px rgba(29,78,216,0.07);
}

/* Hub pill active state on hub pages */
.hub-pill.hub-active {
    background: rgba(29,78,216,0.2) !important;
    border-color: rgba(59,130,246,0.4) !important;
    color: #fff !important;
}


/* ─── 7. EDITORIAL CARD PHOTO IMPROVEMENTS ───────────────────── */
/* Better fallback initials circle */
.hp-author-initials {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* Editor photo container sizing */
.hp-author-photo-wrap {
    width: 100px;
    height: 100px;
    position: relative;
    flex-shrink: 0;
}

.hp-author-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}


/* ─── 8. ARTICLE CONTENT INTERLINKS — CONTEXTUAL STYLING ────── */
/* Make in-content links to other articles more prominent */
.av-content a[href*="/articles/"],
.av-content a[href*="/sportsbooks/"],
.lp-content a[href*="/articles/"],
.lp-content a[href*="/sportsbooks/"] {
    font-weight: 600;
    text-decoration-color: rgba(29,78,216,0.3);
}
.av-content a[href*="/articles/"]:hover,
.av-content a[href*="/sportsbooks/"]:hover,
.lp-content a[href*="/articles/"]:hover,
.lp-content a[href*="/sportsbooks/"]:hover {
    text-decoration-color: #1d4ed8;
    text-decoration-thickness: 2px;
}


/* ─── 9. FOOTER INTERLINKS HOVER ─────────────────────────────── */
.footer-links a {
    transition: color 0.15s, padding-left 0.2s;
}
.footer-links a:hover {
    color: #3b82f6;
    padding-left: 3px;
}


/* ─── 10. MOBILE BREADCRUMB IMPROVEMENTS ─────────────────────── */
@media (max-width: 768px) {
    .breadcrumb-item--current {
        /* Truncate long titles on mobile */
        max-width: 220px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
