/* ============================================
   BOTTOM NAVIGATION - CLEAN
   ============================================ */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    display: none;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    z-index: 2000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1;
    height: 100%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.bottom-nav-item i {
    font-size: 21px;
    transition: transform 0.2s;
}

.bottom-nav-item span {
    font-size: 10px;
    font-weight: 600;
}

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

.bottom-nav-item.active i {
    transform: scale(1.1);
}

.bottom-nav-item.create-btn {
    width: 54px;
    height: 54px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    flex: 0 0 54px;
    margin-top: -22px;
    box-shadow: 0 4px 16px rgba(29, 155, 240, 0.45);
}

.bottom-nav-item.create-btn i {
    font-size: 24px;
}

.bottom-nav-item.create-btn span {
    display: none;
}

.notif-badge {
    position: absolute;
    top: 6px;
    right: calc(50% - 22px);
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--bg-secondary);
}

.bnav-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
}

.bottom-nav-item.active .bnav-avatar {
    border-color: var(--accent);
}

/* ============================================
   DRAWER
   ============================================ */

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

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

.drawer {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 82%;
    max-width: 320px;
    background: var(--bg-primary);
    z-index: 1999;
    transform: translateX(-100%);
    transition: transform 0.3s;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

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

.drawer-header {
    padding: 20px 16px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.drawer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 700;
    overflow: hidden;
}

.drawer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.drawer-user-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.drawer-user-handle {
    font-size: 13px;
    color: var(--text-secondary);
}

.drawer-logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--accent);
}

.drawer-close {
    width: 36px;
    height: 36px;
    background: var(--bg-secondary);
    border: none;
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.drawer-body {
    flex: 1;
    padding: 8px 0;
}

.drawer-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.drawer-item:hover {
    background: var(--bg-secondary);
}

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

.drawer-item.danger {
    color: var(--danger);
}

.drawer-item.danger i {
    color: var(--danger);
}

.drawer-divider {
    height: 1px;
    background: var(--border);
    margin: 6px 0;
}

.theme-toggle-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    cursor: pointer;
}

.theme-toggle-row:hover {
    background: var(--bg-secondary);
}

.theme-toggle-row i {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.drawer-label {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
}

.toggle-switch {
    width: 46px;
    height: 26px;
    background: var(--bg-tertiary);
    border-radius: 13px;
    position: relative;
    border: 1px solid var(--border);
}

.toggle-switch.on {
    background: var(--accent);
    border-color: var(--accent);
}

.toggle-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

.toggle-switch.on .toggle-knob {
    transform: translateX(20px);
}

/* ============================================
   SHOW ON MOBILE
   ============================================ */

@media (max-width: 1024px) {
    .bottom-nav {
        display: flex !important;
    }
}

@media (max-width: 480px) {
    .bottom-nav-item i {
        font-size: 19px;
    }

    .bottom-nav-item.create-btn {
        width: 50px;
        height: 50px;
    }

    .bottom-nav-item.create-btn i {
        font-size: 22px;
    }
}
