/* ==============================================================================
   APEX ODDS - LANDO NORRIS RACING COMPONENTS & TELEMETRY HUD
   ============================================================================== */

/* Bento Column Spans */
.bento-span-4 { grid-column: span 4; }
.bento-span-6 { grid-column: span 6; }
.bento-span-8 { grid-column: span 8; }
.bento-span-12 { grid-column: span 12; }

@media (max-width: 1080px) {
    .bento-span-4, .bento-span-6, .bento-span-8 { grid-column: span 6; }
}
@media (max-width: 768px) {
    .bento-span-4, .bento-span-6, .bento-span-8, .bento-span-12 { grid-column: span 12; }
}

/* Lando Norris Racing Card with Angled Chamfer Corner */
.apex-card {
    position: relative;
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 32px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.25s ease;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
}

.apex-card:hover {
    border-color: var(--color-lando-lime);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.9), 0 0 30px var(--color-lando-lime-dim);
}

/* Racing Number Watermark in Background */
.racing-num-watermark {
    position: absolute;
    top: -10px;
    right: 15px;
    font-family: var(--font-racing);
    font-size: 6.5rem;
    font-weight: 900;
    font-style: italic;
    color: rgba(255, 255, 255, 0.03);
    pointer-events: none;
    line-height: 1;
    z-index: 1;
}

/* Specular Light Sheen */
.apex-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(210, 255, 0, 0.08), transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.apex-card-content {
    position: relative;
    z-index: 2;
}

/* Badges */
.apex-badge-lime {
    font-family: var(--font-telemetry);
    font-size: 0.75rem;
    font-weight: 800;
    color: #000;
    background: var(--color-lando-lime);
    padding: 4px 10px;
    transform: skewX(-10deg);
    border-radius: 2px;
    display: inline-block;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.apex-badge-lime * { transform: skewX(10deg); }

.apex-badge-cyan {
    font-family: var(--font-telemetry);
    font-size: 0.75rem;
    font-weight: 800;
    color: #000;
    background: var(--color-cyan);
    padding: 4px 10px;
    transform: skewX(-10deg);
    border-radius: 2px;
    display: inline-block;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.apex-badge-cyan * { transform: skewX(10deg); }

.apex-badge-dark {
    font-family: var(--font-telemetry);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-lando-lime);
    background: rgba(210, 255, 0, 0.1);
    border: 1px solid rgba(210, 255, 0, 0.3);
    padding: 4px 10px;
    border-radius: 2px;
    display: inline-block;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ==============================================================================
   FORMULA 1 RACING TELEMETRY HUD (HERO SIMULATOR)
   ============================================================================== */
.simulator-hud {
    background: rgba(10, 13, 20, 0.95);
    border: 1px solid rgba(0, 255, 135, 0.3);
    border-radius: 12px;
    padding: 26px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 255, 135, 0.1);
    position: relative;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* F1 Steering Wheel Rev-Limit LEDs */
.f1-rev-lights {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rev-led {
    flex: 1;
    height: 8px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.15s ease;
}

.rev-led.green.on { background: #00ff66; box-shadow: 0 0 12px #00ff66; }
.rev-led.yellow.on { background: #D2FF00; box-shadow: 0 0 12px #D2FF00; }
.rev-led.red.on { background: #ff0044; box-shadow: 0 0 15px #ff0044; }

.simulator-match-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.sim-league {
    font-family: var(--font-telemetry);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-lando-lime);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sim-teams {
    font-family: var(--font-racing);
    font-size: 1.8rem;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    margin: 4px 0;
}

.sim-venue {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: #8e95a5;
}

/* Win Probability Dual Bar */
.sim-gauge-container {
    margin: 24px 0;
}

.sim-gauge-header {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-telemetry);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.sim-gauge-bar {
    height: 14px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
    display: flex;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.sim-gauge-team-a {
    height: 100%;
    width: 58%;
    background: var(--color-lando-lime);
    box-shadow: 0 0 15px var(--color-lando-lime);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sim-gauge-team-b {
    height: 100%;
    width: 42%;
    background: #FF6600;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Scrubbable Slider */
.sim-controls {
    margin: 24px 0 20px;
    background: rgba(0, 0, 0, 0.5);
    padding: 18px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sim-slider-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-telemetry);
    font-size: 0.82rem;
    color: #a1a9b8;
    margin-bottom: 12px;
}

.sim-slider-label strong {
    color: var(--color-lando-lime);
    font-size: 1.05rem;
}

.sim-range-input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.sim-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 2px;
    background: var(--color-lando-lime);
    box-shadow: 0 0 20px var(--color-lando-lime);
    cursor: pointer;
    transform: rotate(45deg);
    transition: transform 0.15s ease;
}

.sim-range-input::-webkit-slider-thumb:hover {
    transform: rotate(45deg) scale(1.25);
}

/* F1 Telemetry Mini Stats Grid */
.sim-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 18px;
}

.sim-stat-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    padding: 12px;
    text-align: center;
}

.sim-stat-label {
    font-family: var(--font-telemetry);
    font-size: 0.7rem;
    color: #71788a;
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.sim-stat-val {
    font-family: var(--font-telemetry);
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
}

/* Odds Chips */
.odds-chips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.odds-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-telemetry);
    font-size: 0.85rem;
    text-decoration: none;
    color: #fff;
    transform: skewX(-6deg);
    transition: all 0.2s ease;
}

.odds-chip * { transform: skewX(6deg); }

.odds-chip:hover {
    background: var(--color-lando-lime);
    border-color: var(--color-lando-lime);
    color: #000;
    box-shadow: 0 0 20px var(--color-lando-lime-glow);
    transform: skewX(-6deg) translateY(-3px);
}

.odds-chip:hover strong {
    color: #000;
}

.odds-chip strong {
    color: var(--color-lando-lime);
    font-size: 1.1rem;
    font-weight: 800;
}

/* Search Box */
.apex-search-wrapper {
    position: relative;
    max-width: 540px;
    margin: 0 auto 40px;
}

.apex-search-input {
    width: 100%;
    background: rgba(18, 20, 28, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 16px 24px 16px 54px;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    outline: none;
    transform: skewX(-6deg);
    transition: all 0.2s ease;
}

.apex-search-input * { transform: skewX(6deg); }

.apex-search-input:focus {
    border-color: var(--color-lando-lime);
    box-shadow: 0 0 30px var(--color-lando-lime-dim);
}

.apex-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    stroke: var(--color-lando-lime);
    pointer-events: none;
}

/* Mobile Drawer */
.apex-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    z-index: 2000;
    display: none;
}

.apex-drawer-overlay.open {
    display: block;
}

.apex-drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 400px;
    height: 100%;
    background: #0d0e12;
    border-left: 2px solid var(--color-lando-lime);
    padding: 32px;
    display: flex;
    flex-direction: column;
}

.apex-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 36px;
}

.apex-drawer-close-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2.2rem;
    cursor: pointer;
}

.apex-drawer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.apex-drawer-links a {
    color: #fff;
    text-decoration: none;
    font-family: var(--font-racing);
    font-size: 1.3rem;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
}

.apex-drawer-links a:hover {
    color: var(--color-lando-lime);
}

.apex-drawer-footer {
    margin-top: auto;
}

/* ==============================================================================
   ARTICLE RICH CONTENT STYLING
   ============================================================================== */
.article-rich-content h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    margin: 36px 0 16px;
    letter-spacing: -0.02em;
    border-left: 3px solid var(--color-cyan);
    padding-left: 14px;
}

.article-rich-content h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-lime);
    margin: 24px 0 12px;
}

.article-rich-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.article-rich-content ul, 
.article-rich-content ol {
    margin: 16px 0 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.article-rich-content li {
    line-height: 1.7;
}

.article-rich-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    background: rgba(12, 14, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    overflow: hidden;
}

.article-rich-content th {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    text-align: left;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-lime);
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.article-rich-content td {
    padding: 12px 16px;
    font-size: 0.92rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.article-rich-content tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.article-rich-content blockquote {
    border-left: 4px solid var(--color-lime);
    padding: 16px 20px;
    background: rgba(0, 255, 135, 0.05);
    border-radius: 0 6px 6px 0;
    margin: 24px 0;
    font-style: italic;
    color: #e2e8f0;
}

@media (max-width: 768px) {
    .calc-grid-responsive {
        grid-template-columns: 1fr !important;
    }
}

