/**
 * Soccer808 Design System — v1.0
 * Nigerian-focused, mobile-first football platform.
 * Prefixed with s8- to avoid conflicts with existing betmines-theme.css
 *
 * Architecture:
 *   1. Design Tokens (CSS Custom Properties)
 *   2. Typography
 *   3. Layout tokens / spacing
 *   4. Base components: buttons, badges, cards
 *   5. Navigation: header, mobile bottom nav
 *   6. Match / Fixture components
 *   7. Prediction components
 *   8. Live score indicators
 *   9. League / standings components
 *  10. Form & Input components
 *  11. Page layouts (hub pages)
 *  12. Dark mode overrides
 *  13. Responsive overrides
 *  14. Utility classes
 */

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
    /* Brand */
    --s8-brand-primary:   #092337;   /* Deep navy — main brand */
    --s8-brand-secondary: #14588B;   /* Medium blue */
    --s8-brand-accent:    #00C853;   /* Nigerian-green accent */
    --s8-brand-gold:      #F5A623;   /* VIP / featured gold */
    --s8-brand-red:       #E53935;   /* Live / loss */

    /* Backgrounds */
    --s8-bg-page:      #0d0f13;   /* Near-black page background */
    --s8-bg-card:      #161b22;   /* Card surface */
    --s8-bg-card-alt:  #1c2230;   /* Slightly lighter card */
    --s8-bg-hover:     #1f2937;   /* Hover state */
    --s8-bg-input:     #0d1117;   /* Input fields */
    --s8-bg-badge:     rgba(255,255,255,0.07);

    /* Borders */
    --s8-border:       rgba(255,255,255,0.08);
    --s8-border-hover: rgba(255,255,255,0.18);

    /* Text */
    --s8-text-primary:   #f0f4f8;
    --s8-text-secondary: #94a3b8;
    --s8-text-muted:     #64748b;
    --s8-text-inverse:   #0d0f13;

    /* Status colours */
    --s8-won:    #22c55e;
    --s8-lost:   #ef4444;
    --s8-pending:#f59e0b;
    --s8-void:   #8b5cf6;
    --s8-live:   #ef4444;

    /* Radius */
    --s8-radius-sm:  6px;
    --s8-radius:    10px;
    --s8-radius-lg: 16px;
    --s8-radius-xl: 24px;

    /* Spacing */
    --s8-space-1:  4px;
    --s8-space-2:  8px;
    --s8-space-3: 12px;
    --s8-space-4: 16px;
    --s8-space-5: 20px;
    --s8-space-6: 24px;
    --s8-space-8: 32px;

    /* Transitions */
    --s8-transition: 0.2s ease;

    /* Shadows */
    --s8-shadow-sm:  0 1px 4px rgba(0,0,0,0.4);
    --s8-shadow:     0 4px 16px rgba(0,0,0,0.5);
    --s8-shadow-lg:  0 12px 40px rgba(0,0,0,0.6);

    /* Bottom nav height — used as page padding-bottom on mobile */
    --s8-bottom-nav-h: 64px;
}

/* ============================================================
   2. TYPOGRAPHY
   ============================================================ */
.s8-h1, h1.s8 { font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 800; color: var(--s8-text-primary); line-height: 1.15; }
.s8-h2, h2.s8 { font-size: clamp(1.2rem, 3vw, 1.75rem); font-weight: 700; color: var(--s8-text-primary); line-height: 1.2; }
.s8-h3        { font-size: 1.1rem; font-weight: 700; color: var(--s8-text-primary); }
.s8-label     { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--s8-text-muted); }

/* ============================================================
   3. BASE COMPONENTS
   ============================================================ */

/* ---- Buttons ---- */
.s8-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--s8-space-2);
    padding: 10px 20px;
    border-radius: var(--s8-radius);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--s8-transition);
    border: none;
    text-decoration: none !important;
    white-space: nowrap;
    line-height: 1;
}
.s8-btn-primary { background: var(--s8-brand-secondary); color: #fff !important; }
.s8-btn-primary:hover { background: #1a6fad; transform: translateY(-1px); }
.s8-btn-accent  { background: var(--s8-brand-accent); color: #000 !important; }
.s8-btn-accent:hover  { background: #00e664; transform: translateY(-1px); }
.s8-btn-gold    { background: var(--s8-brand-gold); color: #000 !important; }
.s8-btn-ghost   { background: transparent; border: 1px solid var(--s8-border); color: var(--s8-text-secondary) !important; }
.s8-btn-ghost:hover { border-color: var(--s8-border-hover); color: var(--s8-text-primary) !important; }
.s8-btn-sm { padding: 7px 14px; font-size: 0.8rem; border-radius: var(--s8-radius-sm); }
.s8-btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: var(--s8-radius-lg); }

/* ---- Badges ---- */
.s8-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.s8-badge-live    { background: var(--s8-live);    color: #fff; }
.s8-badge-won     { background: var(--s8-won);     color: #fff; }
.s8-badge-lost    { background: var(--s8-lost);    color: #fff; }
.s8-badge-pending { background: var(--s8-pending); color: #000; }
.s8-badge-void    { background: var(--s8-void);    color: #fff; }
.s8-badge-free    { background: var(--s8-brand-accent); color: #000; }
.s8-badge-vip     { background: var(--s8-brand-gold);   color: #000; }
.s8-badge-draft   { background: var(--s8-bg-badge); color: var(--s8-text-secondary); border: 1px solid var(--s8-border); }

/* Status indicator dot */
.s8-live-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--s8-live);
    box-shadow: 0 0 0 3px rgba(239,68,68,0.3);
    animation: s8-pulse 1.5s infinite;
    flex-shrink: 0;
}
@keyframes s8-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
    70%  { box-shadow: 0 0 0 6px rgba(239,68,68,0); }
    100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}

/* ---- Cards ---- */
.s8-card {
    background: var(--s8-bg-card);
    border: 1px solid var(--s8-border);
    border-radius: var(--s8-radius-lg);
    padding: var(--s8-space-5);
    margin-bottom: var(--s8-space-5);
}
.s8-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--s8-space-4);
    gap: var(--s8-space-3);
}
.s8-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--s8-text-primary);
    display: flex;
    align-items: center;
    gap: var(--s8-space-2);
    margin: 0;
}
.s8-section-title .s8-section-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--s8-radius-sm);
    background: var(--s8-brand-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #fff;
    flex-shrink: 0;
}
.s8-view-all {
    font-size: 0.78rem;
    color: var(--s8-brand-accent);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}
.s8-view-all:hover { text-decoration: underline; }

/* ============================================================
   4. PAGE HEADER
   ============================================================ */
.s8-page-header {
    text-align: center;
    padding: var(--s8-space-5) var(--s8-space-4);
    margin-bottom: var(--s8-space-5);
}
.s8-page-title {
    font-size: clamp(1.4rem, 4vw, 2rem);
    font-weight: 800;
    color: var(--s8-text-primary);
    margin: 0 0 var(--s8-space-2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--s8-space-3);
    line-height: 1.2;
}
.s8-page-subtitle {
    font-size: 0.9rem;
    color: var(--s8-text-secondary);
    margin: 0;
}
.s8-team-logo-lg {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: var(--s8-radius);
    background: rgba(255,255,255,0.06);
    padding: 6px;
    margin-bottom: var(--s8-space-3);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   5. MOBILE BOTTOM NAVIGATION
   ============================================================ */
.s8-bottom-nav {
    display: none; /* Hidden on desktop */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--s8-bottom-nav-h);
    background: #111827;
    border-top: 1px solid var(--s8-border);
    z-index: 1100;
    padding: 0 8px;
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.s8-bottom-nav-inner {
    display: flex;
    align-items: stretch;
    height: 100%;
}
.s8-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none !important;
    color: var(--s8-text-muted);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: color var(--s8-transition);
    padding: 0 4px;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}
.s8-nav-item i, .s8-nav-item .s8-nav-icon {
    font-size: 1.15rem;
    line-height: 1;
}
.s8-nav-item.active, .s8-nav-item:hover {
    color: var(--s8-brand-accent);
}
.s8-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 2px;
    background: var(--s8-brand-accent);
    border-radius: 0 0 2px 2px;
}
/* Live indicator on bottom nav */
.s8-nav-item.s8-nav-live { color: var(--s8-live); }
.s8-nav-item.s8-nav-live .s8-live-dot {
    position: absolute;
    top: 8px;
    right: calc(50% - 16px);
    width: 7px;
    height: 7px;
}

/* VIP golden on bottom nav */
.s8-nav-vip-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-decoration: none !important;
    background: linear-gradient(135deg, #F5A623 0%, #f0860a 100%);
    color: #000 !important;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin: 8px 4px;
    border-radius: var(--s8-radius);
    -webkit-tap-highlight-color: transparent;
}
.s8-nav-vip-btn i { font-size: 1rem; }

/* ============================================================
   6. TOP NAVIGATION ADDITIONS
   ============================================================ */
/* Desktop nav enhancements — add links alongside existing navbar */
.s8-desktop-nav {
    display: none;
    gap: var(--s8-space-2);
    align-items: center;
}
.s8-desktop-nav a {
    color: var(--s8-text-secondary);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: var(--s8-radius-sm);
    transition: var(--s8-transition);
    white-space: nowrap;
}
.s8-desktop-nav a:hover, .s8-desktop-nav a.active {
    color: var(--s8-text-primary);
    background: var(--s8-bg-hover);
}
.s8-desktop-nav a.s8-nav-live-link {
    color: var(--s8-live);
}
.s8-desktop-nav a.s8-nav-live-link::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    background: var(--s8-live);
    border-radius: 50%;
    margin-right: 5px;
    animation: s8-pulse 1.5s infinite;
}

/* ============================================================
   7. DATE STRIP (used by fixtures, results, live pages)
   ============================================================ */
.s8-date-strip {
    display: flex;
    gap: var(--s8-space-2);
    overflow-x: auto;
    padding: 0 0 var(--s8-space-3);
    margin-bottom: var(--s8-space-4);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.s8-date-strip::-webkit-scrollbar { display: none; }
.s8-date-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: var(--s8-radius);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--s8-text-secondary);
    background: var(--s8-bg-card);
    border: 1px solid var(--s8-border);
    text-decoration: none !important;
    transition: var(--s8-transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}
.s8-date-btn:hover { color: var(--s8-text-primary); border-color: var(--s8-border-hover); }
.s8-date-btn.active { background: var(--s8-brand-secondary); color: #fff !important; border-color: var(--s8-brand-secondary); }
.s8-date-label { font-size: 0.7rem; }

/* ============================================================
   8. MATCH / FIXTURE COMPONENTS
   ============================================================ */

/* Match group wrapper */
.s8-match-group {
    background: var(--s8-bg-card);
    border: 1px solid var(--s8-border);
    border-radius: var(--s8-radius-lg);
    overflow: hidden;
    margin-bottom: var(--s8-space-3);
}

/* League header within group */
.s8-league-header {
    display: flex;
    align-items: center;
    gap: var(--s8-space-2);
    padding: 9px var(--s8-space-4);
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--s8-border);
}
.s8-league-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 4px;
    background: rgba(255,255,255,0.06);
    padding: 2px;
    flex-shrink: 0;
}
.s8-league-country {
    font-size: 0.75rem;
    color: var(--s8-text-muted);
    font-weight: 600;
}
.s8-league-name {
    font-size: 0.8rem;
    color: var(--s8-text-secondary);
    font-weight: 700;
}

/* Individual match row */
.s8-match-row {
    display: flex;
    align-items: center;
    padding: 11px var(--s8-space-4);
    border-bottom: 1px solid var(--s8-border);
    gap: var(--s8-space-3);
    transition: background var(--s8-transition);
    -webkit-tap-highlight-color: transparent;
}
.s8-match-row:last-child { border-bottom: none; }
.s8-match-row:hover { background: var(--s8-bg-hover); cursor: pointer; }
.s8-match-row.s8-match-live { border-left: 3px solid var(--s8-live); }
.s8-match-row.s8-match-result { opacity: 0.9; }

/* Kickoff time / status column */
.s8-match-kickoff {
    width: 44px;
    text-align: center;
    flex-shrink: 0;
}
.s8-match-kickoff,
.s8-match-time-live {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--s8-text-secondary);
    width: 44px;
    text-align: center;
    flex-shrink: 0;
}
.s8-status-ft {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--s8-text-muted);
    text-transform: uppercase;
}
.s8-live-badge {
    display: inline-block;
    background: var(--s8-live);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    animation: s8-pulse 1.5s infinite;
}

/* Teams column */
.s8-match-teams {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--s8-space-2);
    min-width: 0;
}
.s8-team {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--s8-space-2);
    min-width: 0;
}
.s8-team.s8-team-away {
    justify-content: flex-end;
    text-align: right;
}
.s8-team.s8-team-away span { text-align: right; }
.s8-team-winner span { color: var(--s8-text-primary) !important; font-weight: 700; }
.s8-team-logo-sm {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}
.s8-team span {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--s8-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Score / VS */
.s8-match-vs {
    font-size: 0.7rem;
    color: var(--s8-text-muted);
    font-weight: 700;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}
.s8-match-score-live,
.s8-match-score-final {
    font-size: 1rem;
    font-weight: 800;
    color: var(--s8-text-primary);
    flex-shrink: 0;
    width: 48px;
    text-align: center;
    letter-spacing: 1px;
}
.s8-match-score-live { color: var(--s8-live); }

/* ============================================================
   9. PREDICTION CARDS
   ============================================================ */
.s8-prediction-card {
    background: var(--s8-bg-card);
    border: 1px solid var(--s8-border);
    border-radius: var(--s8-radius-lg);
    overflow: hidden;
    transition: border-color var(--s8-transition), transform var(--s8-transition);
    margin-bottom: var(--s8-space-3);
}
.s8-prediction-card:hover {
    border-color: var(--s8-border-hover);
    transform: translateY(-2px);
}
/* Won / Lost indicator stripe on left */
.s8-prediction-card.s8-won  { border-left: 4px solid var(--s8-won); }
.s8-prediction-card.s8-lost { border-left: 4px solid var(--s8-lost); }
.s8-prediction-card.s8-void { border-left: 4px solid var(--s8-void); }

.s8-pred-header {
    display: flex;
    align-items: center;
    padding: 9px var(--s8-space-4);
    gap: var(--s8-space-2);
    background: rgba(255,255,255,0.025);
    border-bottom: 1px solid var(--s8-border);
}
.s8-pred-league-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}
.s8-pred-league-name { font-size: 0.75rem; color: var(--s8-text-muted); font-weight: 600; }
.s8-pred-time        { font-size: 0.75rem; color: var(--s8-text-muted); margin-left: auto; flex-shrink: 0; }

.s8-pred-body {
    display: flex;
    align-items: center;
    padding: var(--s8-space-3) var(--s8-space-4);
    gap: var(--s8-space-3);
}
.s8-pred-teams {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}
.s8-pred-team {
    display: flex;
    align-items: center;
    gap: var(--s8-space-2);
}
.s8-pred-team-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}
.s8-pred-team-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--s8-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.s8-pred-score {
    margin-left: auto;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--s8-text-primary);
    padding-left: 8px;
}

.s8-pred-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
    min-width: 80px;
}
.s8-pred-tip {
    background: var(--s8-brand-secondary);
    color: #fff;
    padding: 4px 10px;
    border-radius: var(--s8-radius-sm);
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}
.s8-pred-odds {
    font-size: 1rem;
    font-weight: 800;
    color: var(--s8-brand-gold);
}
.s8-pred-prob {
    font-size: 0.7rem;
    color: var(--s8-text-muted);
}
/* Probability bar */
.s8-prob-bar {
    width: 60px;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}
.s8-prob-bar-fill {
    height: 100%;
    background: var(--s8-brand-accent);
    border-radius: 2px;
    transition: width 0.4s ease;
}

/* Form badges in prediction cards */
.s8-form-badges {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.s8-form-badge {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}
.s8-form-w { background: var(--s8-won);    box-shadow: 0 0 6px rgba(34,197,94,0.4); }
.s8-form-d { background: var(--s8-pending); }
.s8-form-l { background: var(--s8-lost);   box-shadow: 0 0 6px rgba(239,68,68,0.4); }

/* ============================================================
   10. EMPTY STATE
   ============================================================ */
.s8-empty-state {
    text-align: center;
    padding: var(--s8-space-8) var(--s8-space-4);
    color: var(--s8-text-muted);
}
.s8-empty-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: var(--s8-space-4);
    opacity: 0.5;
}
.s8-empty-state h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--s8-text-secondary);
    margin-bottom: var(--s8-space-2);
}
.s8-empty-state p {
    font-size: 0.875rem;
    color: var(--s8-text-muted);
    margin: 0;
}
.s8-empty-state a { color: var(--s8-brand-accent); }

/* ============================================================
   11. STANDINGS TABLE
   ============================================================ */
.s8-standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
}
.s8-standings-table thead th {
    padding: 7px var(--s8-space-2);
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 0.5px;
    color: var(--s8-text-muted);
    text-align: center;
    border-bottom: 1px solid var(--s8-border);
}
.s8-standings-table thead th:first-child { text-align: left; padding-left: var(--s8-space-3); }
.s8-standings-table tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: background var(--s8-transition);
}
.s8-standings-table tbody tr:hover { background: var(--s8-bg-hover); }
.s8-standings-table tbody td {
    padding: 8px var(--s8-space-2);
    color: var(--s8-text-secondary);
    text-align: center;
}
.s8-standings-table tbody td:first-child {
    text-align: left;
    padding-left: var(--s8-space-3);
    display: flex;
    align-items: center;
    gap: var(--s8-space-2);
}
.s8-standings-table .s8-pos  { font-size: 0.72rem; color: var(--s8-text-muted); width: 16px; flex-shrink: 0; }
.s8-standings-table .s8-team-logo-xs { width: 16px; height: 16px; object-fit: contain; flex-shrink: 0; }
.s8-standings-table .s8-team-name { font-weight: 600; color: var(--s8-text-primary); }
.s8-standings-table .s8-pts { font-weight: 700; color: var(--s8-text-primary); }
.s8-standings-table tr.s8-highlighted { background: rgba(20,88,139,0.15) !important; }
.s8-standings-table tr.s8-highlighted td { color: var(--s8-text-primary); }

/* Scrollable wrapper for standings on mobile */
.s8-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.s8-table-scroll::-webkit-scrollbar { height: 4px; }
.s8-table-scroll::-webkit-scrollbar-thumb { background: var(--s8-border); border-radius: 2px; }

/* ============================================================
   12. ODDS DISPLAY
   ============================================================ */
.s8-odds-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s8-space-2);
    margin: var(--s8-space-3) 0;
}
.s8-odds-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border-radius: var(--s8-radius);
    background: var(--s8-bg-card-alt);
    border: 1px solid var(--s8-border);
    cursor: pointer;
    transition: var(--s8-transition);
    text-align: center;
}
.s8-odds-btn:hover { border-color: var(--s8-brand-secondary); background: var(--s8-bg-hover); }
.s8-odds-btn.active { border-color: var(--s8-brand-secondary); background: rgba(20,88,139,0.2); }
.s8-odds-label { font-size: 0.7rem; color: var(--s8-text-muted); font-weight: 600; text-transform: uppercase; }
.s8-odds-value { font-size: 1.05rem; font-weight: 800; color: var(--s8-brand-gold); margin-top: 2px; }

/* ============================================================
   13. VIP PROMOTION BANNER
   ============================================================ */
.s8-vip-banner {
    background: linear-gradient(135deg, #1a1000 0%, #2d1f00 50%, #1a1000 100%);
    border: 1px solid rgba(245,166,35,0.3);
    border-radius: var(--s8-radius-lg);
    padding: var(--s8-space-5);
    display: flex;
    align-items: center;
    gap: var(--s8-space-4);
    margin-bottom: var(--s8-space-5);
    position: relative;
    overflow: hidden;
}
.s8-vip-banner::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 200px; height: 100%;
    background: radial-gradient(circle at right, rgba(245,166,35,0.15), transparent 70%);
    pointer-events: none;
}
.s8-vip-banner-icon { font-size: 2.5rem; flex-shrink: 0; }
.s8-vip-banner-text { flex: 1; }
.s8-vip-banner-text h3 { color: var(--s8-brand-gold); font-size: 1rem; font-weight: 800; margin: 0 0 4px; }
.s8-vip-banner-text p { color: rgba(255,255,255,0.6); font-size: 0.82rem; margin: 0; }
.s8-vip-banner .s8-btn-gold { flex-shrink: 0; }

/* ============================================================
   14. ARTICLE CARD UPGRADE
   ============================================================ */
.s8-article-card {
    background: var(--s8-bg-card);
    border: 1px solid var(--s8-border);
    border-radius: var(--s8-radius-lg);
    overflow: hidden;
    transition: border-color var(--s8-transition), transform var(--s8-transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none !important;
}
.s8-article-card:hover {
    border-color: var(--s8-brand-accent);
    transform: translateY(-3px);
}
.s8-article-thumb {
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: var(--s8-bg-card-alt);
    position: relative;
}
.s8-article-cat-badge {
    position: absolute;
    bottom: 8px;
    left: 10px;
    background: var(--s8-brand-secondary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}
.s8-article-body {
    padding: var(--s8-space-4);
    flex: 1;
    display: flex;
    flex-direction: column;
}
.s8-article-meta {
    display: flex;
    align-items: center;
    gap: var(--s8-space-2);
    margin-bottom: var(--s8-space-2);
}
.s8-article-date { font-size: 0.72rem; color: var(--s8-text-muted); }
.s8-article-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--s8-text-primary);
    line-height: 1.4;
    margin: 0 0 var(--s8-space-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.s8-article-excerpt {
    font-size: 0.8rem;
    color: var(--s8-text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    flex: 1;
}

/* ============================================================
   15. SEARCH BOX
   ============================================================ */
.s8-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--s8-bg-input);
    border: 1px solid var(--s8-border);
    border-radius: var(--s8-radius-xl);
    padding: 0 var(--s8-space-4);
    transition: border-color var(--s8-transition);
}
.s8-search-box:focus-within {
    border-color: var(--s8-brand-secondary);
    box-shadow: 0 0 0 3px rgba(20,88,139,0.2);
}
.s8-search-box i {
    color: var(--s8-text-muted);
    font-size: 0.85rem;
    flex-shrink: 0;
}
.s8-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--s8-text-primary);
    font-size: 0.875rem;
    padding: 10px 12px;
}
.s8-search-input::placeholder { color: var(--s8-text-muted); }

/* ============================================================
   16. SHARE / SOCIAL BUTTONS
   ============================================================ */
.s8-share-btns {
    display: flex;
    gap: var(--s8-space-2);
    flex-wrap: wrap;
}
.s8-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: var(--s8-radius);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: var(--s8-transition);
    color: #fff !important;
}
.s8-share-wa       { background: #25D366; }
.s8-share-wa:hover { background: #1da851; }
.s8-share-tg       { background: #229ED9; }
.s8-share-tg:hover { background: #1a85bb; }
.s8-share-tw       { background: #1DA1F2; }
.s8-share-tw:hover { background: #1581cc; }
.s8-share-fb       { background: #1877F2; }
.s8-share-fb:hover { background: #1361cc; }

/* ============================================================
   17. BREADCRUMBS
   ============================================================ */
.s8-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: var(--s8-space-4);
}
.s8-breadcrumb a {
    color: var(--s8-text-muted);
    text-decoration: none;
    font-size: 0.78rem;
    transition: color var(--s8-transition);
}
.s8-breadcrumb a:hover { color: var(--s8-text-secondary); }
.s8-breadcrumb-sep { color: var(--s8-text-muted); font-size: 0.7rem; }
.s8-breadcrumb-current { color: var(--s8-text-secondary); font-size: 0.78rem; font-weight: 600; }

/* ============================================================
   18. AD SLOTS
   ============================================================ */
.s8-ad-slot {
    width: 100%;
    background: var(--s8-bg-card);
    border: 1px dashed rgba(255,255,255,0.06);
    border-radius: var(--s8-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.s8-ad-slot::before {
    content: 'Advertisement';
    position: absolute;
    top: 4px;
    right: 8px;
    font-size: 0.6rem;
    color: var(--s8-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    opacity: 0.5;
}
/* Standard ad sizes */
.s8-ad-leaderboard { min-height: 90px; }
.s8-ad-banner      { min-height: 60px; }
.s8-ad-rectangle   { min-height: 250px; }
.s8-ad-mobile      { min-height: 50px; }
/* Mobile sticky ad bar */
.s8-ad-sticky-mobile {
    position: fixed;
    bottom: var(--s8-bottom-nav-h);
    left: 0;
    right: 0;
    z-index: 1090;
    background: #111;
    border-top: 1px solid var(--s8-border);
    display: none; /* JS-controlled */
}

/* ============================================================
   19. COOKIE CONSENT (override existing)
   ============================================================ */
.s8-cookie-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1c2333;
    border-top: 1px solid var(--s8-border);
    padding: 14px var(--s8-space-5);
    z-index: 1200;
    display: flex;
    align-items: center;
    gap: var(--s8-space-4);
    flex-wrap: wrap;
}
.s8-cookie-bar p { flex: 1; font-size: 0.82rem; color: var(--s8-text-secondary); margin: 0; }
.s8-cookie-bar p a { color: var(--s8-brand-accent); }
.s8-cookie-actions { display: flex; gap: var(--s8-space-2); flex-shrink: 0; }

/* ============================================================
   20. RESPONSIBLE GAMBLING DISCLAIMER
   ============================================================ */
.s8-rg-disclaimer {
    background: rgba(245,166,35,0.06);
    border: 1px solid rgba(245,166,35,0.2);
    border-radius: var(--s8-radius);
    padding: var(--s8-space-3) var(--s8-space-4);
    font-size: 0.75rem;
    color: rgba(245,166,35,0.8);
    display: flex;
    align-items: flex-start;
    gap: var(--s8-space-2);
    margin-top: var(--s8-space-4);
}
.s8-rg-disclaimer i { flex-shrink: 0; margin-top: 2px; }

/* ============================================================
   21. FOOTER UPGRADE
   ============================================================ */
.bm-footer {
    padding-bottom: calc(var(--s8-bottom-nav-h) + 16px) !important; /* leave room for bottom nav on mobile */
}

/* ============================================================
   22. RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Large screens — make sidebar visible */
@media (min-width: 992px) {
    .s8-desktop-nav { display: flex; }
    .s8-bottom-nav  { display: none !important; }
    /* Add bottom padding only when no bottom nav */
    .bm-footer { padding-bottom: 30px !important; }
}

/* Tablet */
@media (max-width: 991px) {
    .bm-main-content { margin-left: 0 !important; }
    .bm-content-body { padding: 16px !important; }
}

/* Mobile */
@media (max-width: 767px) {
    .s8-bottom-nav { display: flex; }

    /* Touch-friendly match rows */
    .s8-match-row { padding: 10px 12px; }
    .s8-team span { font-size: 0.8rem; }
    .s8-match-score-live,
    .s8-match-score-final { font-size: 0.95rem; width: 40px; }

    /* Cards full-bleed */
    .s8-card { border-radius: 10px; padding: var(--s8-space-4); }
    .s8-match-group { border-radius: 10px; }

    /* Standings: compress columns */
    .s8-standings-table thead th:nth-child(n+5):not(:last-child) { display: none; }
    .s8-standings-table tbody td:nth-child(n+5):not(:last-child)  { display: none; }

    /* Prediction card on mobile */
    .s8-pred-meta { min-width: 64px; }
    .s8-pred-odds { font-size: 0.9rem; }

    /* VIP banner stack */
    .s8-vip-banner { flex-direction: column; text-align: center; }
    .s8-vip-banner::before { width: 100%; height: 50%; }

    /* Share buttons wrap */
    .s8-share-btns { gap: var(--s8-space-1); }
    .s8-share-btn { padding: 6px 10px; font-size: 0.72rem; }

    /* Odds grid */
    .s8-odds-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .s8-odds-value { font-size: 0.9rem; }
}

/* Very small screens */
@media (max-width: 360px) {
    .s8-team span { font-size: 0.75rem; }
    .bm-content-body { padding: 10px !important; }
    .s8-page-title { font-size: 1.3rem; }
}

/* ============================================================
   23. UTILITIES
   ============================================================ */
.s8-text-won    { color: var(--s8-won)  !important; }
.s8-text-lost   { color: var(--s8-lost) !important; }
.s8-text-live   { color: var(--s8-live) !important; }
.s8-text-gold   { color: var(--s8-brand-gold) !important; }
.s8-text-accent { color: var(--s8-brand-accent) !important; }
.s8-text-muted-soft { color: var(--s8-text-muted) !important; }

.s8-divider {
    border: none;
    border-top: 1px solid var(--s8-border);
    margin: var(--s8-space-4) 0;
}
.s8-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.s8-nowrap { white-space: nowrap; }

/* Skeleton loader */
.s8-skeleton {
    background: linear-gradient(90deg, var(--s8-bg-card) 25%, var(--s8-bg-card-alt) 50%, var(--s8-bg-card) 75%);
    background-size: 200% 100%;
    animation: s8-shimmer 1.5s infinite;
    border-radius: var(--s8-radius-sm);
}
@keyframes s8-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Scroll-to-top button */
.s8-scroll-top {
    position: fixed;
    bottom: calc(var(--s8-bottom-nav-h) + 16px);
    right: 16px;
    width: 40px;
    height: 40px;
    background: var(--s8-brand-secondary);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 1050;
    box-shadow: var(--s8-shadow);
    transition: var(--s8-transition);
}
.s8-scroll-top:hover { background: #1a6fad; }
.s8-scroll-top.visible { display: flex; }

@media (min-width: 992px) {
    .s8-scroll-top { bottom: 24px; }
}

/* ============================================================
   24. SIDEBAR NAV MOBILE FIX
   Ensure the sidebar logo area shows properly on mobile.
   ============================================================ */
@media (max-width: 991px) {
    /* The sidebar-nav logo block should always display on mobile */
    .bm-sidebar-nav .bm-sidebar-logo {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 0 12px !important;
        width: 100% !important;
    }
}

/* ============================================================
   25. ADMIN PANEL ADDITIONS
   ============================================================ */

/* Status badges in admin tables */
.s8-admin-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.s8-admin-badge-won       { background: rgba(34,197,94,0.15);  color: #22c55e; border: 1px solid rgba(34,197,94,0.3); }
.s8-admin-badge-lost      { background: rgba(239,68,68,0.15);  color: #ef4444; border: 1px solid rgba(239,68,68,0.3); }
.s8-admin-badge-pending   { background: rgba(245,158,11,0.15); color: #f59e0b; border: 1px solid rgba(245,158,11,0.3); }
.s8-admin-badge-void      { background: rgba(139,92,246,0.15); color: #8b5cf6; border: 1px solid rgba(139,92,246,0.3); }
.s8-admin-badge-draft     { background: rgba(100,116,139,0.15);color: #94a3b8; border: 1px solid rgba(100,116,139,0.3); }
.s8-admin-badge-scheduled { background: rgba(59,130,246,0.15); color: #3b82f6; border: 1px solid rgba(59,130,246,0.3); }
.s8-admin-badge-cancelled { background: rgba(156,163,175,0.1); color: #6b7280; border: 1px solid rgba(156,163,175,0.2); }

/* ============================================================
   26. PRINT STYLES
   ============================================================ */
@media print {
    .s8-bottom-nav, .bm-sidebar-nav, .bm-sidebar,
    .bm-top-navbar, .s8-scroll-top, .s8-vip-banner { display: none !important; }
    .bm-main-content { margin-left: 0 !important; }
    .bm-content-body { padding: 0 !important; }
    * { background: white !important; color: black !important; }
}
