/**
 * Vivid African-themed Header for Beck's Kitchen
 */

/* Header Container */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 10px 0;
    background-color: #fff;
}

/* African Pattern Background for Header */
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/header-bg-pattern.svg');
    background-size: 200px;
    background-repeat: repeat;
    opacity: 0.15;
    z-index: -1;
}

/* Kente Pattern Top Border */
.kente-pattern {
    height: 10px;
    background-image: url('../images/kente-border.svg');
    background-size: contain;
    background-repeat: repeat-x;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

/* Header Container */
header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    position: relative;
}

/* Logo Area */
header .logo {
    position: relative;
    z-index: 10;
}

header .logo img {
    display: block;
    width: 150px;
    height: auto;
}

/* Cart Icon */
.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 20px;
    background-color: var(--pattern-primary);
    color: white;
    padding: 10px 15px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 10;
    border: 2px solid #F5A623; /* Golden border for cuisine theme */
}

.cart-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/cart-pattern.svg');
    background-size: 50px;
    background-repeat: repeat;
    opacity: 0.2;
    border-radius: 30px;
    z-index: -1;
    background-color: rgba(245, 166, 35, 0.05); /* Subtle golden background */
}

.cart-icon:hover {
    background-color: var(--pattern-secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(245, 166, 35, 0.3); /* Golden glow on hover */
}

.cart-text {
    font-weight: 600;
    font-size: 16px;
    margin-right: 2px;
    font-family: 'Poppins', sans-serif;
}

/* Cuisine Cart Icon */
.cuisine-cart-icon {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.cart-icon:hover .cuisine-cart-icon {
    transform: scale(1.1);
    animation: wiggle 0.5s ease;
}

@keyframes wiggle {
    0% { transform: rotate(0deg) scale(1.1); }
    25% { transform: rotate(5deg) scale(1.1); }
    50% { transform: rotate(0deg) scale(1.1); }
    75% { transform: rotate(-5deg) scale(1.1); }
    100% { transform: rotate(0deg) scale(1.1); }
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #F5A623; /* Golden background for cuisine theme */
    color: var(--dark-color);
    font-size: 12px;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1000;
    position: relative;
    background-color: transparent;
    border: none;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--pattern-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: var(--pattern-accent);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--pattern-accent);
}

/* Scrolled Header */
header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 5px 0;
}

header.scrolled .logo {
    transform: scale(0.9);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    header .logo {
        margin-left: 10px;
    }
    
    .cart-icon {
        margin-right: 50px;
    }
}

@media (max-width: 576px) {
    header .logo img {
        max-height: 40px;
    }
    
    .cart-icon {
        padding: 8px 12px;
        font-size: 16px;
    }
    
    .cart-text {
        font-size: 14px;
    }
}
