/* Rajdhani - logo font */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&display=swap');

/* ── Ratz-GG Brand - Lilac Purple Identity ──────────────── */

.brand-ratz-gg {
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.15;
    background: linear-gradient(135deg, #D8D0EE 0%, #B8AEDD 20%, #988CC4 50%, #7E6EAA 75%, #654F92 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 6px rgba(130, 110, 180, 0.35))
        drop-shadow(0 0 14px rgba(100, 80, 148, 0.18));
    animation: ratz-glow 4s ease-in-out infinite alternate;
}

@keyframes ratz-glow {
    from { filter: drop-shadow(0 0 5px rgba(120, 100, 165, 0.25)); }
    to   { filter: drop-shadow(0 0 12px rgba(120, 100, 165, 0.45)); }
}

.brand-ratz-gg--sm { font-size: 15px; letter-spacing: 0.03em; }
.brand-ratz-gg--hub {
    font-size: clamp(32px, 5vw, 46px);
    letter-spacing: 0.08em;
    display: inline-block;
    margin-bottom: 6px;
}

.brand-ratz-sub {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 700; font-size: 10px;
    text-transform: uppercase; letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.40); line-height: 1.2;
}

.hub-brand-tagline {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.50);
    margin-top: 4px; letter-spacing: 0.04em;
}

/* ── Sidebar Header ─────────────────────────────────────── */
.sidebar-hdr {
    padding: 10px 6px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex; align-items: center; justify-content: center;
    min-height: 52px; flex-shrink: 0;
    background: #050507;
    position: relative; z-index: 1;
}

.nav-sidebar.expanded .sidebar-hdr {
    padding: 12px 14px; justify-content: flex-start; gap: 10px;
}
.nav-sidebar:not(.expanded) .sidebar-hdr { justify-content: center; padding: 10px 0; }

.sb-toggle {
    background: rgba(176,124,255,0.08);
    border: 1px solid rgba(176,124,255,0.15);
    color: rgba(176,124,255,0.65); width: 34px; height: 34px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.2s; flex-shrink: 0;
    border-radius: 8px; margin: 0 auto;
}
.sb-toggle:hover {
    color: #C090FF; background: rgba(176, 124, 255, 0.16);
    border-color: rgba(176, 124, 255, 0.30);
    box-shadow: 0 0 10px rgba(176,124,255,0.2);
}
.nav-sidebar.expanded .sb-toggle { margin: 0; }

.sb-logo-sub {
    font-family: 'Inter', sans-serif;
    font-size: 10px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.40); line-height: 1.1; margin-top: 1px;
}

.nav-sidebar:not(.expanded) .sb-logo { display: none; }
.nav-sidebar .sb-logo {
    display: flex; flex-direction: column; align-items: center;
    gap: 2px; margin: 0 auto; text-align: center;
}

/* ── Streamer Items ─────────────────────────────────────── */
.streamer-item {
    display: flex; align-items: center; gap: 8px; padding: 6px 12px;
    border-radius: 8px; cursor: pointer; transition: all 0.15s;
    margin-bottom: 2px; position: relative;
    text-decoration: none; color: #fff;
}
.streamer-item:link, .streamer-item:visited,
.streamer-item:hover, .streamer-item:active {
    text-decoration: none; color: #fff;
}
.streamer-item:hover { background: rgba(176, 124, 255, 0.06); }
.streamer-item.offline { opacity: 0.45; }
.streamer-item.offline:hover { opacity: 0.75; }

.streamer-section-label {
    font-size: 9px; font-weight: 700; color: var(--text-muted); text-transform: uppercase;
    letter-spacing: 1px; padding: 12px 14px 6px; line-height: 1; text-align: left;
}

img.streamer-avatar, div.streamer-avatar {
    width: 24px; height: 24px; min-width: 24px; min-height: 24px;
    border-radius: 50%; background: var(--bg-card);
    border: 1.5px solid var(--border); flex-shrink: 0; object-fit: cover; display: block;
}
.streamer-item:not(.offline) img.streamer-avatar,
.streamer-item:not(.offline) div.streamer-avatar {
    border-color: var(--red); box-shadow: 0 0 8px rgba(248, 113, 113, 0.35);
}

.streamer-info { flex: 1; min-width: 0; }
.streamer-name {
    font-size: 11px; font-weight: 700; color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2;
}
.streamer-desc {
    font-size: 9px; color: rgba(255,255,255,0.40);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    line-height: 1.2; margin-top: 1px;
}
.streamer-game {
    font-size: 9px; color: var(--accent); font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    line-height: 1.2; margin-top: 1px;
}
.streamer-meta {
    display: flex; align-items: center; gap: 6px;
    font-size: 9px; color: var(--text-muted); margin-top: 2px; line-height: 1.2;
}
.streamer-meta .viewer-count { color: var(--red); font-weight: 700; flex-shrink: 0; }

.streamer-live-dot {
    width: 6px; height: 6px; border-radius: 50%; background: var(--red);
    flex-shrink: 0; box-shadow: 0 0 6px var(--red); animation: streamer-pulse 2s infinite;
}

@keyframes streamer-pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.6); }
    70% { transform: scale(1); box-shadow: 0 0 0 4px rgba(248, 113, 113, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(248, 113, 113, 0); }
}

.twitch-badge {
    flex-shrink: 0; width: 12px; height: 12px; opacity: 0.2;
    transition: opacity 0.2s;
}
.streamer-item:hover .twitch-badge { opacity: 0.7; }
