/* =============================================
   MOBILE HAMBURGER MENU - AGYAPA TILES
   Complete hamburger menu with animations
   ============================================= */

/* Desktop - Hide hamburger */
.hamburger-menu {
    display: none;
}

/* =============================================
   MOBILE - SHOW HAMBURGER (768px and below)
   ============================================= */
@media (max-width: 768px) {
    
    /* Hamburger Button */
    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 22px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
        position: relative;
    }
    
    /* Hamburger Lines */
    .hamburger-menu span {
        display: block;
        width: 100%;
        height: 3px;
        background: #F6AD55;
        border-radius: 3px;
        transition: all 0.3s ease;
        transform-origin: center;
    }
    
    /* When menu is open - transform to X */
    .hamburger-menu.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }
    
    .hamburger-menu.active span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }
    
    /* Navigation Links - Hidden by default */
    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 70px; /* Below header */
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #2D3748 0%, #1A202C 100%);
        padding: 0;
        box-shadow: 0 8px 24px rgba(0,0,0,0.3);
        z-index: 1000;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.4s ease;
    }
    
    /* When menu is active - slide down */
    .nav-links.active {
        display: flex;
        max-height: 500px;
        padding: 1.5rem 0;
        animation: slideDown 0.4s ease forwards;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Individual Menu Items */
    .nav-links li {
        margin: 0;
        opacity: 0;
        transform: translateX(-20px);
        animation: slideInLinks 0.3s ease forwards;
    }
    
    /* Stagger animation for each link */
    .nav-links.active li:nth-child(1) { animation-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { animation-delay: 0.15s; }
    .nav-links.active li:nth-child(3) { animation-delay: 0.2s; }
    .nav-links.active li:nth-child(4) { animation-delay: 0.25s; }
    .nav-links.active li:nth-child(5) { animation-delay: 0.3s; }
    
    @keyframes slideInLinks {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    /* Link Styling */
    .nav-links a {
        display: block;
        padding: 1rem 2rem;
        color: white;
        text-decoration: none;
        font-size: 1.1rem;
        font-weight: 500;
        border-left: 3px solid transparent;
        transition: all 0.3s ease;
    }
    
    .nav-links a:hover,
    .nav-links a.active {
        background: rgba(246,173,85,0.1);
        border-left-color: #F6AD55;
        padding-left: 2.5rem;
        color: #F6AD55;
    }
    
    /* Header adjustments for hamburger */
    .header-container,
    nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .header-left {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    
    /* Optional: Overlay when menu is open */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .menu-overlay.active {
        display: block;
        opacity: 1;
    }
    
    /* Logo and Cart spacing */
    .logo {
        flex-shrink: 0;
    }
    
    .header-actions {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
    
    /* Cart icon styling */
    .cart-icon {
        font-size: 1.5rem;
        color: #F6AD55;
        cursor: pointer;
        transition: transform 0.3s ease;
    }
    
    .cart-icon:hover {
        transform: scale(1.1);
    }
}

/* =============================================
   EXTRA SMALL MOBILE (480px and below)
   ============================================= */
@media (max-width: 480px) {
    .hamburger-menu {
        width: 26px;
        height: 20px;
    }
    
    .hamburger-menu span {
        height: 2.5px;
    }
    
    .nav-links {
        top: 60px; /* Smaller header */
    }
    
    .nav-links a {
        font-size: 1rem;
        padding: 0.9rem 1.5rem;
    }
    
    .menu-overlay {
        top: 60px;
    }
}