/* =============================================
   SIDEBAR — styles complémentaires & overrides
   Thème : Rouge / Noir — Gaming
   ============================================= */

/* Sidebar categories list */
.sidebar-cats {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-cat-item {
    position: relative;
}

.sidebar-cat-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 22px;
    color: var(--white-dim);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: background 0.18s, color 0.18s, padding-left 0.18s;
    border-left: 3px solid transparent;
}

.sidebar-cat-item a:hover {
    background: rgba(255,255,255,0.05);
    color: var(--white);
    padding-left: 26px;
}

.sidebar-cat-item.active a {
    color: var(--red-light);
    background: rgba(224,25,42,0.12);
    border-left-color: var(--red);
    font-weight: 600;
}

.cat-icon {
    font-size: 14px;
    opacity: 0.7;
    min-width: 18px;
    text-align: center;
    transition: opacity 0.18s;
}

.sidebar-cat-item.active .cat-icon,
.sidebar-cat-item a:hover .cat-icon {
    opacity: 1;
}

.cat-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Live badge in sidebar */
.sidebar-live {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 14px 6px;
    padding: 8px 14px;
    background: rgba(224,25,42,0.15);
    border: 1px solid rgba(224,25,42,0.3);
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.sidebar-live a {
    color: var(--red-light);
    text-decoration: none;
}

.sidebar-live a:hover {
    color: var(--white);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}

/* Topbar */
.topbar {
    position: fixed;
    top: 0;
    left: var(--sidebar-w);
    right: 0;
    height: var(--topbar-h);
    background: rgba(10,10,12,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 24px;
    z-index: 100;
    transition: left 0.3s;
}

.topbar-brand a {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 0.06em;
}

.topbar-live {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-left: auto;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.topbar-live a {
    color: var(--red-light);
    text-decoration: none;
}

/* Live dot pulse */
.live-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--red);
    animation: pulse-dot 1.4s ease-in-out infinite;
    box-shadow: 0 0 0 0 var(--red-glow);
}

@keyframes pulse-dot {
    0%   { box-shadow: 0 0 0 0 rgba(224,25,42,0.7); }
    70%  { box-shadow: 0 0 0 8px rgba(224,25,42,0); }
    100% { box-shadow: 0 0 0 0 rgba(224,25,42,0); }
}

/* Responsive — masquer sidebar sur mobile */
@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
    }

    .topbar {
        left: 0;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
        z-index: 300;
    }

    .sidebar.is-open {
        transform: translateX(0);
    }

    .sidebar-overlay {
        display: block !important;
    }

    .sidebar-overlay.is-visible {
        opacity: 1;
        pointer-events: all;
    }

    .site-wrapper {
        margin-left: 0 !important;
    }

    .main-content {
        padding-top: calc(var(--topbar-h) + 24px);
    }

    .sidebar-close {
        display: flex !important;
    }
}

@media (min-width: 901px) {
    .sidebar-close {
        display: none;
    }

    .sidebar-overlay {
        display: none !important;
    }
}


.sidebar-separator {
    height: 1px;
    margin: 8px 18px 10px;
    background: rgba(255,255,255,0.08);
    list-style: none;
}
