/* ==========================================================================
   MOBILE-DRAWER.CSS - Mobile Navigation Drawer Styles
   ========================================================================== */

/* Mobile Toggle Button */
.mobile-toggle {
    display: none;
}

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

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 350px;
    height: 100%;
    background: var(--bg-off-white);
    z-index: 2002;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 25px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-nav-drawer.active {
    right: 0;
}

/* Drawer Header */
.drawer-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e40af 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.drawer-title {
    font-weight: 800;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.drawer-logo {
    height: 28px;
    width: auto;
}

.mobile-nav-close {
    background: rgba(255,255,255,0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-close:hover {
    background: rgba(255,255,255,0.4);
}

/* Drawer Content */
.drawer-content {
    padding: 1.5rem;
    flex-grow: 1;
}

/* Mobile Search */
.mobile-search-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.mobile-search-input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.8rem;
    border-radius: 12px;
    border: 2px solid var(--border-subtle);
    background: var(--surface-white);
    color: var(--text-main);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.mobile-search-input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.mobile-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-gold);
    font-size: 1rem;
}

/* Quick Actions Grid */
.drawer-quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.quick-action-btn {
    background: var(--surface-white);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.quick-action-btn i {
    font-size: 1.25rem;
    color: var(--accent-gold);
}

.quick-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--accent-gold);
}

/* Accordion Navigation */
.nav-accordion details {
    margin-bottom: 0.75rem;
    background: var(--surface-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
}

.nav-accordion summary {
    padding: 1rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-main);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s;
}

.nav-accordion summary::-webkit-details-marker {
    display: none;
}

.nav-accordion summary:hover {
    background: var(--border-subtle);
}

.nav-accordion summary::after {
    content: '\f078';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.nav-accordion details[open] summary::after {
    transform: rotate(180deg);
}

.nav-accordion summary i.cat-icon {
    width: 24px;
    color: var(--primary-blue);
    margin-right: 0.5rem;
}

.accordion-content {
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-off-white);
    display: flex;
    flex-direction: column;
}

.accordion-content a {
    padding: 0.8rem 1rem 0.8rem 3.5rem;
    font-size: 0.95rem;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
    text-decoration: none;
}

.accordion-content a:last-child {
    border-bottom: none;
}

.accordion-content a:hover {
    background: var(--border-subtle);
    color: var(--primary-blue);
}

.accordion-content a::before {
    content: '';
    position: absolute;
    left: 2rem;
    top: 50%;
    width: 6px;
    height: 6px;
    background: var(--border-subtle);
    border-radius: 50%;
    transform: translateY(-50%);
}

.accordion-content a:hover::before {
    background: var(--accent-gold);
}

.acc-sub-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 1rem 1rem 0.25rem 3.5rem;
    font-weight: 700;
}

/* Drawer Footer */
.drawer-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.drawer-footer a {
    color: var(--text-main);
    text-decoration: underline;
}
