/* Shell CSS: Navigation Groups, Mobile Responsive, Voice Input, Lene FAB */

/* ============================================
   Navigation Groups
   ============================================ */

.nav-group {
    margin-bottom: 0.25rem;
}

.nav-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.625rem 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}

.nav-group-header:hover {
    color: var(--text);
}

.nav-group-header span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-group-header svg {
    width: 14px;
    height: 14px;
}

.nav-chevron {
    width: 14px !important;
    height: 14px !important;
    transition: transform 0.2s ease;
}

.nav-chevron.rotated {
    transform: rotate(180deg);
}

.nav-group-items {
    overflow: hidden;
}

.nav-group-items .nav-item {
    padding-left: 2.5rem;
}

/* ============================================
   Mobile: Hamburger Button
   ============================================ */

.hamburger-btn {
    display: none;
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 200;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: var(--radius);
    background: var(--bg-card);
    color: var(--text);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.hamburger-btn svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   Mobile: Sidebar as Drawer Overlay
   ============================================ */

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.sidebar-backdrop.visible {
    opacity: 1;
    pointer-events: auto;
}

/* ============================================
   Mobile: Bottom Navigation
   ============================================ */

.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 0.375rem 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
    padding: 0.375rem 0.5rem;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.625rem;
    background: none;
    border: none;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    transition: color 0.2s;
}

.bottom-nav-item svg {
    width: 20px;
    height: 20px;
}

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

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

/* ============================================
   Lene FAB (Floating Action Button)
   ============================================ */

.lene-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 90;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.lene-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.lene-fab svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   Voice Input Button
   ============================================ */

.voice-input-wrapper {
    position: relative;
}

.voice-btn {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--bg);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background 0.2s;
    padding: 0;
}

.voice-btn:hover {
    color: var(--accent);
    background: var(--bg-card);
}

.voice-btn.recording {
    color: #fff;
    background: var(--danger);
    animation: pulse-recording 1.5s ease-in-out infinite;
}

@keyframes pulse-recording {
    0%, 100% { box-shadow: 0 0 0 0 rgba(225, 112, 85, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(225, 112, 85, 0); }
}

.voice-btn svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   Mobile Responsive (< 768px)
   ============================================ */

@media (max-width: 768px) {
    .hamburger-btn {
        display: flex;
    }

    .sidebar-backdrop {
        display: block;
    }

    .sidebar {
        position: fixed !important;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 101;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

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

    .main-content {
        margin-left: 0 !important;
        padding-top: 3.5rem;
        padding-bottom: 5rem;
    }

    .bottom-nav {
        display: flex;
        justify-content: space-around;
    }

    .lene-fab {
        bottom: 5rem;
        right: 1rem;
        width: 48px;
        height: 48px;
    }

    .lene-fab svg {
        width: 20px;
        height: 20px;
    }
}
