/**
 * UNITY Foundation - Left-Side Slide Drawer Navigation
 * Olive Green + Gold Theme
 * Version: 1.0 - 2026-02-24
 */

/* ============================================
   HAMBURGER MENU BUTTON
   ============================================ */

.hamburger-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: var(--olive-green);
    border: 2px solid var(--gold);
    width: 50px;
    height: 50px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hamburger-btn:hover {
    background: var(--olive-green-dark);
    border-color: var(--gold-light);
    transform: scale(1.05);
}

.hamburger-btn span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

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

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

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

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

.slide-drawer {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100%;
    background: linear-gradient(180deg, var(--teal) 0%, #163D3D 100%);
    z-index: 1000;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    padding: 80px 0 40px 0;
}

.slide-drawer.active {
    left: 0;
}

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

.drawer-header {
    padding: 0 24px 24px;
    border-bottom: 2px solid var(--gold);
}

.drawer-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--cream-light);
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.drawer-logo span {
    color: var(--gold);
}

.drawer-tagline {
    font-size: 12px;
    color: var(--gold-light);
    margin-top: 4px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

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

.drawer-nav {
    padding: 24px 0;
}

.drawer-section {
    padding: 0 24px 24px;
    border-bottom: 1px solid rgba(197, 165, 90, 0.2);
}

.drawer-section:last-child {
    border-bottom: none;
}

.drawer-section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 12px;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.drawer-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--cream);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 6px;
    margin-bottom: 4px;
}

.drawer-link:hover {
    background: rgba(197, 165, 90, 0.15);
    color: var(--gold-light);
    transform: translateX(4px);
}

.drawer-link i {
    margin-right: 12px;
    font-size: 16px;
    width: 20px;
    text-align: center;
    color: var(--gold);
}

/* ============================================
   DRAWER SOCIAL LINKS
   ============================================ */

.drawer-social {
    padding: 24px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.drawer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 2px solid var(--gold);
    border-radius: 8px;
    background: rgba(197, 165, 90, 0.1);
    color: var(--gold-light);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
}

.drawer-social-link:hover {
    background: var(--gold);
    color: var(--teal);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(197, 165, 90, 0.4);
}

/* ============================================
   DRAWER WEB PORTALS
   ============================================ */

.drawer-portals {
    padding: 16px 24px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.drawer-portal-link {
    display: inline-block;
    padding: 8px 14px;
    background: rgba(197, 165, 90, 0.15);
    color: var(--gold-light);
    text-decoration: none;
    border: 1px solid var(--gold);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.drawer-portal-link:hover {
    background: var(--gold);
    color: var(--teal);
}

.drawer-portal-link i {
    margin-right: 4px;
}

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

.drawer-search {
    padding: 16px 24px;
}

.drawer-search-label {
    display: block;
    color: var(--cream);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.drawer-search-input-group {
    position: relative;
}

.drawer-search-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(197, 165, 90, 0.4);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--cream);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
}

.drawer-search-input::placeholder {
    color: rgba(245, 241, 232, 0.5);
}

.drawer-search-input:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.18);
}

.drawer-search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(245, 241, 232, 0.6);
    pointer-events: none;
    font-size: 16px;
}

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

.drawer-footer {
    padding: 16px 24px;
    text-align: center;
    border-top: 1px solid rgba(197, 165, 90, 0.2);
}

.drawer-footer p {
    color: rgba(245, 241, 232, 0.6);
    font-size: 11px;
    margin-bottom: 8px;
}

.drawer-footer-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.drawer-footer-links a {
    color: var(--gold-light);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.drawer-footer-links a:hover {
    color: var(--gold);
}

/* ============================================
   SCROLLBAR FOR DRAWER
   ============================================ */

.slide-drawer::-webkit-scrollbar {
    width: 6px;
}

.slide-drawer::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.slide-drawer::-webkit-scrollbar-thumb {
    background: rgba(197, 165, 90, 0.5);
    border-radius: 3px;
}

.slide-drawer::-webkit-scrollbar-thumb:hover {
    background: rgba(197, 165, 90, 0.7);
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .hamburger-btn {
        width: 46px;
        height: 46px;
        top: 16px;
        left: 16px;
    }

    .hamburger-btn span {
        width: 24px;
        height: 2px;
    }

    .slide-drawer {
        width: 280px;
        left: -280px;
        padding: 70px 0 30px 0;
    }

    .drawer-logo {
        font-size: 22px;
    }

    .drawer-link {
        padding: 10px 14px;
        font-size: 14px;
    }
}
