/* 
   Wasanni Live - Core CSS Stylesheet
   Emulates Livescore.com Aesthetics and responsive desktop/mobile formats.
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-app: #000000; /* Pure black background for matches pages */
    --surface: #0e0e10;
    --surface-card: #141416;
    --surface-header: #1c1c1e;
    
    --primary: #00e676; /* Vibrant Lime Green */
    --primary-rgb: 0, 230, 118;
    --text-primary: #ffffff;
    --text-secondary: #969698;
    --text-muted: #626264;
    --border: rgba(255, 255, 255, 0.08);
    --border-active: rgba(0, 230, 118, 0.3);
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.6);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-app);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-app);
}
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

/* Layout Containers */
.app-header {
    display: flex;
    background: var(--surface-header);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 1000;
}

@media (min-width: 1024px) {
    .app-header {
        display: none !important;
    }
}

.desktop-inline-nav-container {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.desktop-inline-nav-item {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 5px 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 10px;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.desktop-inline-nav-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.desktop-inline-nav-item.active {
    color: #000000 !important;
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    text-decoration: none;
}

.badge-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #ff3b30 !important;
    border-radius: 50%;
    margin-left: 4px;
    vertical-align: middle;
    box-shadow: 0 0 4px #ff3b30;
}

.desktop-nav-links {
    display: none;
}

.mobile-nav-links {
    display: flex;
    gap: 6px;
    margin-left: 10px;
    align-items: center;
}

.mobile-nav-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 700;
    font-size: 10px;
    text-transform: uppercase;
    transition: color 0.15s ease;
}

.mobile-nav-item:hover, .mobile-nav-item.active {
    color: var(--primary);
    text-decoration: none;
}

@media (min-width: 1024px) {
    .desktop-nav-links {
        display: flex;
        gap: 16px;
        margin-left: 24px;
        align-items: center;
    }
    
    .mobile-nav-links {
        display: none;
    }
}

.desktop-nav-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.15s ease;
}

.desktop-nav-item:hover, .desktop-nav-item.active {
    color: var(--primary);
    text-decoration: none;
}

.app-title span {
    color: var(--primary);
}

.app-content {
    margin-top: 56px;
}

/* Dynamic Grid Layout (Livescore style Desktop & Mobile responsive) */
.livescore-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0;
    min-height: calc(100vh - 56px);
}

.left-sidebar {
    display: none; /* Hidden on mobile */
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 20px 16px;
    overflow-y: auto;
    height: 100vh;
    position: sticky;
    top: 0;
}

.main-content-pane {
    background: var(--bg-app);
    padding: 16px 12px;
    min-width: 0;
    max-width: 100%;
}

.right-sidebar {
    display: none; /* Hidden on mobile */
    background: var(--surface);
    border-left: 1px solid var(--border);
    padding: 20px 16px;
    overflow-y: auto;
    height: 100vh;
    position: sticky;
    top: 0;
}

/* Left Sidebar Categories Styling */
.sidebar-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    margin-top: 20px;
}

.sidebar-title:first-of-type {
    margin-top: 0;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-menu-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.sidebar-menu-item.active {
    background: rgba(0, 230, 118, 0.08);
    color: var(--primary);
    font-weight: 600;
}

.sidebar-menu-item i {
    width: 20px;
    font-size: 14px;
}

/* Bottom Navigation Bar (Mobile only) */
.bottom-nav {
    background: #0d0f12;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(64px + var(--safe-bottom));
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: var(--safe-bottom);
    z-index: 1000;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.4);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    flex: 1;
    height: 100%;
    transition: all 0.2s ease;
    gap: 4px;
}

.bottom-nav-item .icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 28px;
    border-radius: 16px;
    transition: all 0.2s ease;
}

.bottom-nav-item i {
    font-size: 18px;
    transition: all 0.2s ease;
}

.bottom-nav-item:active .icon-wrapper {
    transform: scale(0.9);
}

.bottom-nav-item.active {
    color: var(--primary);
    font-weight: 700;
}

.bottom-nav-item.active .icon-wrapper {
    background: rgba(25, 135, 84, 0.15); /* Soft primary color background */
}

.bottom-nav-item.active i {
    font-size: 20px;
}

/* Generic Native Icon Wrapper for Android-like UI */
.native-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(25, 135, 84, 0.1); /* Subtle green background */
    color: var(--primary);
    flex-shrink: 0;
}
.native-icon-wrapper.bg-danger-subtle {
    background: rgba(220, 53, 69, 0.1) !important;
    color: #dc3545 !important;
}
.native-icon-wrapper.bg-secondary-subtle {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--text-secondary) !important;
}


/* Livescore layout list grouping by League */
.league-group-card {
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.league-header {
    background: var(--surface-header);
    border-bottom: 1px solid var(--border);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.league-flag {
    font-size: 16px;
}

.league-name {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.league-name span {
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: capitalize;
}

/* Livescore Match Row */
.livescore-match-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 52px 36px;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.15s ease;
}

.livescore-match-row:last-of-type {
    border-bottom: none;
}

.livescore-match-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Column 1: Time / Live Elapsed Minute */
.match-status-col {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-secondary);
    text-align: left;
}

.match-status-col.live {
    color: var(--primary);
    animation: flash-text 1.5s infinite;
}

@keyframes flash-text {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Column 2: Teams Stacked */
.match-teams-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.team-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    min-width: 0;
}

.team-row.winner {
    color: #ffffff;
}

.team-row.loser {
    color: var(--text-secondary);
}

.team-logo-mini {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

/* Column 3: Scores */
.match-scores-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    font-size: 12px;
    font-weight: 800;
    color: var(--text-secondary);
    padding-right: 10px;
}

.score-row {
    height: 18px;
    display: flex;
    align-items: center;
}

.score-row.live {
    color: var(--primary);
}

.score-row.winner {
    color: #ffffff;
}

/* Column 4: Favorite toggle star */
.fav-col {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    transition: color 0.15s ease;
}

.fav-col:hover {
    color: var(--primary);
}

.fav-col.active {
    color: var(--primary);
}

/* Sub-Navigation Tabs under Header (Today, Live, Favourites) */
.sub-nav-tabs {
    display: flex;
    background: var(--surface-header);
    border-bottom: 1px solid var(--border);
    margin-bottom: 14px;
    border-radius: 4px;
    overflow: hidden;
}

.sub-nav-tab-item {
    flex: 1;
    text-align: center;
    padding: 12px 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

.sub-nav-tab-item.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: rgba(0, 230, 118, 0.03);
}

/* Form Styles */
.form-input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 8px;
    width: 100%;
    outline: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-input:focus {
    border-color: var(--primary);
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: 8px;
    width: 100%;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.btn-primary:active {
    opacity: 0.9;
}

/* Glass Cards (Fallback panels) */
.glass-card {
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
}

/* Toast alert messages */
.toast-msg {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--surface-header);
    border: 1px solid var(--border);
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    z-index: 10000;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast-msg.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Match center tabs */
.tab-header {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 14px;
    overflow-x: auto;
    white-space: nowrap;
}

.tab-item {
    padding: 10px 14px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
}

.tab-item.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.match-tab-panel {
    animation: fadeInTab 0.3s ease;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Comments details */
.comment-box {
    display: flex;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-body {
    flex: 1;
}

.comment-author {
    font-size: 12px;
    font-weight: 700;
}

.comment-time {
    font-size: 10px;
    color: var(--text-muted);
    margin-left: 6px;
}

.comment-text {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.4;
}

/* Predictions bar */
.pred-bar-container {
    background: var(--bg-app);
    height: 24px;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    margin: 12px 0;
    font-size: 10px;
    font-weight: 700;
}

.pred-bar {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pred-bar.home { background-color: var(--primary); color: #fff; }
.pred-bar.draw { background-color: var(--text-muted); color: #fff; }
.pred-bar.away { background-color: #3b82f6; color: #fff; }

/* Responsive adjustments for Tablets and Desktops */
@media (min-width: 992px) {
    .livescore-grid {
        grid-template-columns: 240px 1fr;
    }
    
    .left-sidebar {
        display: block;
    }
}

@media (min-width: 1024px) {
    .livescore-grid {
        grid-template-columns: 240px 1fr 380px;
        margin: 0 auto;
        min-height: calc(100vh - 56px);
    }
    
    .left-sidebar, .right-sidebar {
        top: 56px;
        height: calc(100vh - 56px);
        display: block;
    }
    
    .bottom-nav {
        display: none; /* Hide bottom navigation bar on desktop viewports */
    }
    
    body {
        padding-bottom: 0; /* Remove bottom padding on desktop */
    }
    
    .main-content-pane {
        padding: 20px;
    }
}

/* Sliding Navigation Drawer */
.nav-drawer {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: #141416;
    border-right: 1px solid var(--border);
    z-index: 10000;
    transition: left 0.3s cubic-bezier(0.1, 0.9, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.nav-drawer.open {
    left: 0;
}

.drawer-header {
    padding: 16px;
    background: var(--surface-header);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-body {
    padding: 16px 8px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.drawer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 4px;
    transition: all 0.2s ease;
}

.drawer-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.drawer-item.active {
    background: rgba(0, 230, 118, 0.08);
    color: var(--primary);
}

.drawer-item i {
    width: 20px;
    font-size: 16px;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: none;
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}

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

/* WhatsApp Style Club Chat Room */
.chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 60px);
    background: #000000;
}

.chat-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-messages-box {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-msg-bubble {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    position: relative;
    word-wrap: break-word;
    font-size: 13px;
    line-height: 1.4;
}

.chat-msg-bubble.sent {
    align-self: flex-end;
    background: #0b5e3a; /* Dark WhatsApp Green */
    color: #ffffff;
    border-bottom-right-radius: 2px;
}

.chat-msg-bubble.received {
    align-self: flex-start;
    background: #141416;
    color: #ffffff;
    border-bottom-left-radius: 2px;
}

.chat-msg-sender {
    font-size: 10px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
    display: block;
}

.chat-msg-time {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.4);
    text-align: right;
    display: block;
    margin-top: 4px;
}

.chat-msg-reply-indicator {
    background: rgba(0, 0, 0, 0.25);
    border-left: 3px solid var(--primary);
    padding: 6px;
    border-radius: 4px;
    font-size: 11px;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.85);
}

.chat-input-toolbar {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: sticky;
    bottom: 64px; /* Offset bottom nav */
}

.chat-reply-preview-bar {
    background: rgba(255, 255, 255, 0.04);
    border-left: 3px solid var(--primary);
    padding: 8px 12px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.chat-emoji-popover {
    display: none;
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    position: absolute;
    bottom: 80px;
    left: 12px;
    right: 12px;
    z-index: 1000;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
    justify-items: center;
}

.chat-emoji-popover.show {
    display: grid;
}

.chat-emoji-item {
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.chat-emoji-item:active {
    transform: scale(1.2);
}

.chat-mention {
    color: var(--primary);
    font-weight: 700;
}

/* Expandable Search Bar on Mobile */
.search-expand-container {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--surface-header);
    border: 1px solid var(--border);
    border-radius: 8px;
    height: 38px;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-expand-input {
    width: 100%;
    height: 100%;
    border: none !important;
    background: transparent !important;
    color: var(--text-primary);
    padding: 0 40px 0 12px;
    outline: none;
    font-size: 13px;
}

.search-expand-btn {
    position: absolute;
    right: 0;
    top: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 5;
}

.search-expand-btn:focus, .search-expand-btn:active {
    outline: none;
    box-shadow: none;
}

.mobile-nav-item {
    color: var(--text-secondary) !important;
    text-decoration: none;
    font-size: 15px !important;
    padding: 8px !important;
    border-radius: 50%;
    transition: all 0.2s ease !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}
.mobile-nav-item:hover, .mobile-nav-item.active {
    color: var(--primary) !important;
    background: rgba(0, 230, 118, 0.1) !important;
    text-decoration: none;
}

@media (max-width: 1024px) {
    .search-expand-container {
        width: 38px;
        border-radius: 50%;
        overflow: hidden;
    }
    .search-expand-container.expanded {
        position: absolute;
        right: 12px;
        left: 12px;
        width: calc(100% - 24px);
        border-radius: 8px;
        z-index: 10;
        background: var(--surface-header);
    }
    .search-expand-input {
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }
    .search-expand-container.expanded .search-expand-input {
        opacity: 1;
        pointer-events: auto;
    }
}

/* Fan ID Card CSS Graphic */
.fan-id-card {
    border-color: var(--primary) !important;
    background: linear-gradient(135deg, #141416 0%, #000000 100%) !important;
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.25) !important;
}

@media print {
    body * {
        visibility: hidden;
    }
    #idCardModal, #idCardModal * {
        visibility: visible;
    }
    #idCardModal {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
    }
    .modal-header, .btn {
        display: none !important;
    }
}

.news-grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
}

@media (min-width: 576px) {
    .news-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .news-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Compact language selector styling */
.compact-lang-selector {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 2px 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.compact-lang-selector .lang-btn {
    padding: 2px 8px;
    border: none;
    border-radius: 14px;
    font-size: 9px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.compact-lang-selector .lang-btn.active {
    background: rgba(0, 230, 118, 0.2);
    color: #00e676;
}

.compact-lang-selector .lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.compact-lang-selector .lang-divider {
    color: rgba(255, 255, 255, 0.2);
    font-size: 8px;
}

/* Mobile Sidebar Sliding Drawer Panel */
@media (max-width: 991px) {
    .left-sidebar {
        position: fixed !important;
        top: 0;
        left: -280px;
        width: 260px;
        height: 100% !important;
        z-index: 1050;
        background: #0d0f12 !important;
        border-right: 1px solid var(--border);
        padding: 20px 15px;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        overflow-y: auto;
        display: block !important;
    }
    .left-sidebar.active {
        left: 0 !important;
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.65);
        z-index: 1040;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        transition: opacity 0.3s ease;
    }
    .sidebar-overlay.active {
        display: block !important;
    }
}

/* Mobile league scroll pills styles */
.mobile-leagues-scroll-bar::-webkit-scrollbar {
    display: none;
}
.mobile-league-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.2s ease;
    cursor: pointer;
}
.mobile-league-pill.active {
    background: rgba(0, 230, 118, 0.15) !important;
    border: 1px solid rgba(0, 230, 118, 0.25) !important;
    color: #00e676 !important;
}
.mobile-league-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* Mobile Header stacked columns flex override */
@media (max-width: 991px) {
    .app-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        height: auto !important;
        padding: 8px 16px !important;
    }
    .app-content {
        margin-top: 96px !important;
    }
}

/* Premium smooth category swipe with hidden scrollbars */
.news-category-scroll {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE 10+ */
    width: 100% !important;
    max-width: 100% !important;
}
.news-category-scroll::-webkit-scrollbar {
    display: none !important; /* Safari and Chrome */
}
.news-category-scroll > a, 
.news-category-scroll > button {
    flex: 0 0 auto !important;
}

/* Fix select option colors for dark mode */
select, .form-select {
    background-color: var(--surface-header) !important;
    color: #ffffff !important;
    border: 1px solid var(--border) !important;
}
select option {
    background-color: var(--surface-card) !important;
    color: #ffffff !important;
}
