/* === Bottom Navigation Bar === */
.client-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 52px;
    background: rgba(10, 10, 15, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: env(safe-area-inset-bottom, 0);
    z-index: 100;
}

.nav-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.1s ease;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.nav-tab-icon {
    font-size: 22px;
}

.nav-tab-label {
    display: none;
}

.nav-tab-badge {
    display: none;
}

.nav-tab.active {
    color: var(--accent);
}

.nav-tab.active .nav-tab-icon {
    text-shadow: 0 0 12px rgba(15, 241, 143, 0.5);
}

.nav-tab:active {
    transform: scale(0.88);
}

/* Hide bottom nav during quiz */
.client-bottom-nav.hidden {
    display: none;
}

/* === Side Drawer === */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.side-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: #0a0a0f;
    z-index: 160;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 60px 0 100px 0;
    overflow-y: auto;
}

.side-drawer.open {
    transform: translateX(0);
}

.drawer-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    transition: background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.drawer-item:active {
    background: rgba(255, 255, 255, 0.05);
}

.drawer-item i {
    font-size: 22px;
    width: 28px;
    text-align: center;
}

.drawer-item.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.drawer-item.danger {
    color: #ff5252;
}

.drawer-notification-badge {
    background: #7c4dff;
    color: #fff;
    border-radius: 999px;
    min-width: 20px;
    padding: 1px 7px;
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    margin-left: auto;
}
.drawer-notification-badge[hidden] { display: none; }

.drawer-separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 8px 20px;
}

/* Drawer open state — push content */
.client-app.drawer-open > .client-content,
.client-app.drawer-open > .client-bottom-nav {
    filter: blur(4px);
    transform: translateX(100px);
    transition: filter 0.3s ease, transform 0.3s ease;
}

/* === Feed mascot hides when drawer is open === */
.feed-mascot {
    transition: opacity 180ms ease, visibility 180ms ease;
}

.client-app.drawer-open ~ .feed-mascot {
    opacity: 0;
    visibility: hidden;
}
