﻿/* ============================================================
   NAVIGATION SIDEBAR
   ============================================================ */
.bla-nav-container {
    width: 230px;
    background: var(--bla-bg);
    color: var(--bla-text);
    height: 100vh;
    padding: 20px 14px;
    box-shadow: 4px 0 12px var(--bla-shadow);
    display: flex;
    flex-direction: column;
}

.bla-nav-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.bla-nav-mascot {
    width: 48px;
}

.bla-nav-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--bla-accent);
    text-shadow: 0 0 8px rgba(255, 204, 0, 0.6);
}

.bla-section-title {
    font-size: 0.9rem;
    color: var(--bla-accent);
    margin: 12px 0 6px 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bla-nav-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bla-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--bla-text);
    text-decoration: none;
    transition: background 0.15s, transform 0.15s;
}

    .bla-nav-link:hover {
        background: var(--bla-link-hover);
        transform: translateX(4px);
    }

    .bla-nav-link.active {
        background: var(--bla-link-active-bg);
        color: var(--bla-link-active-text);
        font-weight: 600;
    }

.nav-icon {
    font-size: 18px;
    color: inherit;
    fill: inherit;
    stroke: inherit;
}

.bla-logout {
    color: var(--bla-accent-dark);
}

    .bla-logout:hover {
        background: rgba(255, 0, 0, 0.12);
        transform: translateX(4px);
    }

button.bla-nav-link {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    padding: 10px 12px;
}

.bla-nav-link span,
.bla-nav-link .bi,
.bla-nav-link svg {
    color: inherit;
    fill: inherit;
    stroke: inherit;
}

/* ============================================================
   TOPBAR
   ============================================================ */



/* Badge neon para o tempo */
.time-badge {
    background: rgba(0, 200, 255, 0.12);
    border: 1px solid rgba(0, 200, 255, 0.35);
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 13px;
    color: #33ddff;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 0 6px rgba(0, 200, 255, 0.35);
    backdrop-filter: blur(2px);
}

/* Tema escuro — versão mais forte */
html[data-theme="dark"] .time-badge {
    background: rgba(0, 200, 255, 0.22);
    border: 1px solid rgba(0, 200, 255, 0.55);
    color: #66eeff;
    box-shadow: 0 0 12px rgba(0, 200, 255, 0.55);
}



.bla-topbar {
    height: 84px;
    background: var(--bla-bg-alt);
    border-bottom: 1px solid var(--bla-text-muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    box-shadow: 0 2px 6px var(--bla-shadow);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bla-topbar-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--bla-accent);
    text-shadow: 0 0 6px rgba(255, 204, 0, 0.45);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 4px 8px;
    border-radius: 8px;
    background: var(--bla-bg);
    box-shadow: 0 0 6px var(--bla-shadow);
}

.topbar-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bla-accent);
}

.topbar-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 180px;
}

/* Nick */
.topbar-nick {
    font-size: 1rem;
    font-weight: 600;
    color: var(--bla-text);
}





/* ============================================================
   TOPBAR GAMIFICATION
   ============================================================ */
.topbar-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.star {
    color: gold;
}

    .star.inactive {
        color: var(--bla-text-muted);
    }

.blazoids {
    color: #b388ff;
    font-weight: 600;
}

.blazing {
    animation: pulse 1.2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.4;
    }
}


/* XP inline */
.xp-inline {
    display: flex;
    align-items: center;
}

    .xp-inline .xp-bar {
        width: 70px;
        height: 6px;
        background: var(--bla-bg-alt);
        border-radius: 4px;
        overflow: hidden;
    }

    .xp-inline .xp-fill {
        height: 100%;
        background: var(--bla-accent);
        transition: width 0.3s ease;
    }

/* ============================================================
   BADGE DE PONTOS (NEON)
   ============================================================ */
.user-points-badge {
    background: rgba(0, 255, 120, 0.12);
    border: 1px solid rgba(0, 255, 120, 0.35);
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 13px;
    color: #00cc66;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 0 6px rgba(0, 255, 120, 0.35);
    backdrop-filter: blur(2px);
}

html[data-theme="dark"] .user-points-badge {
    background: rgba(0, 255, 120, 0.25);
    border: 1px solid rgba(0, 255, 120, 0.55);
    color: #00ff99;
    box-shadow: 0 0 12px rgba(0, 255, 120, 0.55);
}

.pts-sup {
    font-size: 0.55em;
    vertical-align: super;
    opacity: 0.85;
}

/* ============================================================
   THEME TOGGLE (MYSTIC)
   ============================================================ */
.bla-theme-mystic {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 26px;
    user-select: none;
    backdrop-filter: blur(6px);
    margin: 12px auto;
}

html[data-theme="light"] .bla-theme-mystic {
    background: radial-gradient(circle, #fff7d1, #ffe08a);
    box-shadow: 0 0 12px rgba(255, 200, 80, 0.6);
}

html[data-theme="dark"] .bla-theme-mystic {
    background: radial-gradient(circle, #2a2a40, #1a1a28);
    box-shadow: 0 0 12px rgba(120, 120, 255, 0.4);
}

.bla-theme-mystic:hover {
    transform: scale(1.08);
}

.sun, .moon {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.sun {
    color: #ffcc33;
    text-shadow: 0 0 8px rgba(255, 200, 80, 0.8);
}

.moon {
    color: #cdd6ff;
    text-shadow: 0 0 8px rgba(150, 150, 255, 0.8);
}



/* Linha única para toda a info */
.topbar-info-row {
    display: flex;
    align-items: center;
    gap: 14px;
    white-space: nowrap;
}