/* Rajdhani — logo font for the RatzLogo SVG wordmark */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&display=swap');
:root { --font-logo: 'Rajdhani', sans-serif; }

/**
 * Ratz-GG shared branding — lilac / violet glow (use with .brand-ratz-gg)
 * Display text should read "Ratz-GG" (capital GG) in HTML.
 */
.brand-ratz-gg {
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.15;
    color: #ddd6fe;
    background: linear-gradient(135deg, #faf5ff 0%, #e9d5ff 18%, #c4b5fd 45%, #a78bfa 72%, #8b5cf6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.9))
        drop-shadow(0 0 18px rgba(139, 92, 246, 0.55));
    animation: ratz-glow 3s ease-in-out infinite alternate;
}

@keyframes ratz-glow {
    from { filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.6)); transform: scale(1); }
    to { filter: drop-shadow(0 0 15px rgba(167, 139, 250, 0.9)); transform: scale(1.01); }
}

/* Slightly smaller for sidebars / nav */
.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;
}

/* Subtitle next to brand (e.g. NarakaTournaments, WWMTournaments) */
.brand-ratz-sub {
    font-family: 'Inter', system-ui, sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.2;
}

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

/* Stacked logo + subtitle (NarakaTournaments / WWMTournaments) */
.nav-sidebar .sb-logo,
aside.nav-sidebar .sb-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin: 0 auto;
    text-align: center;
}

/* Unified Sidebar Header */
.sidebar-hdr {
    padding: 10px 6px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    box-sizing: border-box;
    flex-shrink: 0;
    overflow: visible;
    background: rgba(10, 10, 10, 0.4);
}

/* Sidebar Toggle (chevron) */
.sb-toggle {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    border-radius: 10px;
    margin: 0 auto;
}
.sb-toggle svg {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.sb-toggle--open svg {
    transform: rotate(180deg);
}

.sb-toggle:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.sb-toggle:active {
    transform: translateY(0);
}

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

/* Collapsed: center toggle, consistent sizing */
.nav-sidebar:not(.expanded) .sidebar-hdr {
    justify-content: center;
    padding: 10px 0;
}

/* Logo Subtitle Specifics */
.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.45);
    line-height: 1.1;
    margin-top: 1px;
}

/* Hide logo when collapsed */
.nav-sidebar:not(.expanded) .sb-logo {
    display: none;
}

/* Premium Button Style — opt-in via .brand-button only.
   .btn-primary / .btn-secondary / .btn-sm defined below as base defaults
   (no !important) so individual pages can override freely. */
.brand-button {
    background: var(--accent);
    color: var(--accent-text, #fff);
    border: none;
    border-radius: 8px;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px var(--accent-glow);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    padding: 10px 22px;
}
.brand-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--accent-glow);
    filter: brightness(1.1);
}
.brand-button:active {
    transform: translateY(0) scale(0.98);
}

/* Base button defaults — no !important, pages can override */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary {
    background: var(--accent);
    color: var(--accent-text, #fff);
    border-color: var(--accent);
    box-shadow: 0 4px 12px var(--accent-glow, rgba(255,59,59,0.3));
}
.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--accent-glow, rgba(255,59,59,0.4));
}
.btn-secondary {
    background: rgba(255,255,255,0.06);
    color: #ccc;
    border: 1px solid var(--border, #333);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: #555;
}
.btn-sm {
    padding: 5px 12px;
    font-size: 11px;
    border-radius: 6px;
}
.btn-success {
    background: var(--green, #00E676);
    color: #000;
    border-color: var(--green, #00E676);
    box-shadow: 0 4px 12px var(--green-glow, rgba(0,230,118,0.2));
}
.btn-success:hover {
    filter: brightness(1.1);
    box-shadow: 0 6px 20px var(--green-glow, rgba(0,230,118,0.3));
}
    gap: 8px;
    position: relative;
    overflow: hidden;
    padding: 10px 22px;
}
.brand-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--accent-glow);
    filter: brightness(1.1);
}
.brand-button:active {
    transform: translateY(0) scale(0.98);
}

/* Streamer Items */
.streamer-item {
    display: flex !important; align-items: center !important; gap: 8px; padding: 4px 6px;
    border-radius: 8px; cursor: pointer; transition: all 0.2s;
    margin-bottom: 2px; justify-content: center; position: relative;
    text-decoration: none !important; color: #fff !important;
}
.streamer-item:link, .streamer-item:visited,
.streamer-item:hover, .streamer-item:active {
    text-decoration: none !important; color: #fff !important;
}
.nav-sidebar.expanded .streamer-item { padding: 6px 12px; justify-content: flex-start; }
.streamer-item:hover { background: rgba(255,255,255,0.06); }
.streamer-item.offline { opacity: 0.5; }
.streamer-item.offline:hover { opacity: 0.8; }

.streamer-section-label {
    font-size: 9px; font-weight: 700; color: #444; text-transform: uppercase;
    letter-spacing: 1px; padding: 12px 0 6px; line-height: 1; text-align: center;
}
.nav-sidebar.expanded .streamer-section-label { padding: 12px 14px 6px; text-align: left; }

img.streamer-avatar,
div.streamer-avatar {
    width: 26px !important; height: 26px !important;
    min-width: 26px !important; min-height: 26px !important;
    max-width: 26px !important; max-height: 26px !important;
    border-radius: 50% !important; background: #1a1a1a;
    border: 1.5px solid #333; flex-shrink: 0; object-fit: cover;
    display: block;
}
.nav-sidebar.expanded img.streamer-avatar,
.nav-sidebar.expanded div.streamer-avatar {
    width: 24px !important; height: 24px !important;
    min-width: 24px !important; min-height: 24px !important;
    max-width: 24px !important; max-height: 24px !important;
}
.streamer-item:not(.offline) img.streamer-avatar,
.streamer-item:not(.offline) div.streamer-avatar {
    border-color: #F44336; box-shadow: 0 0 8px rgba(244,67,54,0.4);
}
.nav-sidebar.expanded .streamer-item:not(.offline) img.streamer-avatar,
.nav-sidebar.expanded .streamer-item:not(.offline) div.streamer-avatar {
    border-color: #333; box-shadow: none;
}

.streamer-info { flex: 1; min-width: 0; display: none; }
.nav-sidebar.expanded .streamer-info { display: block; }
.streamer-name {
    font-size: 11px !important; font-weight: 700; color: #fff !important;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2;
}
.streamer-desc {
    font-size: 9px !important; color: rgba(255,255,255,0.45) !important;
    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: #666; margin-top: 2px; line-height: 1.2;
}
.streamer-meta .game-tag { color: #555; max-width: 80px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.streamer-meta .viewer-count { color: #F44336; font-weight: 700; flex-shrink: 0; }

.streamer-live-dot {
    width: 6px; height: 6px; border-radius: 50%; background: #F44336;
    flex-shrink: 0; box-shadow: 0 0 6px #F44336; animation: streamer-pulse 2s infinite; display: none;
}
.nav-sidebar.expanded .streamer-live-dot { display: block; }

@keyframes streamer-pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 4px rgba(244, 67, 54, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(244, 67, 54, 0); }
}

.twitch-badge {
    flex-shrink: 0; width: 12px; height: 12px; opacity: 0.25;
    transition: opacity 0.2s; display: none;
}
.nav-sidebar.expanded .twitch-badge { display: block; }
.streamer-item:hover .twitch-badge { opacity: 0.8; }
