/**
 * Desktop Header Styles
 * Sticky header die meescrolt bij scrollen
 * Professionele styling met AdalyaPoint branding
 */

/* ========== HEADER CONTAINER ========== */
/* Z-index: 1001 - onder announcement bar (1002) maar boven content */
.header-desktop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: #0a0a0a !important;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(218, 165, 32, 0.08) 0%, transparent 50%);
    border-bottom: 1px solid rgba(218, 165, 32, 0.2);
    z-index: 1001 !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(218, 165, 32, 0.1);
    margin: 0;
    padding: 0;
}

/* Compensatie voor announcement bar */
body.has-announcement .header-desktop {
    top: 40px !important;
}

@media (max-width: 968px) {
    body.has-announcement .header-desktop {
        top: 36px !important;
    }
}

@media (max-width: 480px) {
    body.has-announcement .header-desktop {
        top: 32px !important;
    }
}

.header-desktop.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 30px rgba(218, 165, 32, 0.15);
    border-bottom-color: rgba(218, 165, 32, 0.3);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 2rem;
}

/* ========== LOGO ========== */
.header-logo {
    flex-shrink: 0;
}

.header-logo a {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.header-logo a:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* ========== NAVIGATIE MENU ========== */
.header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.nav-item {
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav-link:hover {
    background: linear-gradient(135deg, #DAA520 0%, #FFD700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-color: rgba(218, 165, 32, 0.1);
    transform: translateY(-2px);
}

.nav-link.active {
    color: #FFDD88;
    background: rgba(255, 221, 136, 0.15);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FFDD88, transparent);
    border-radius: 2px;
}

/* ========== ACTIE KNOPPEN ========== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 221, 136, 0.1);
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-size: 1.1rem;
}

.action-btn:hover {
    background: rgba(255, 221, 136, 0.15);
    border-color: rgba(255, 221, 136, 0.3);
    color: #FFDD88;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 221, 136, 0.2);
}

.action-btn i {
    transition: transform 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.1);
}

/* Winkelwagen badge */
.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #DAA520 0%, #FFD700 100%);
    color: #0a0a0a;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 2px 8px rgba(255, 221, 136, 0.4);
}

/* ========== ZOEKBALK ========== */
.search-bar {
    display: none;
    width: 100%;
    background: #1a1c1e;
    border-top: 1px solid rgba(255, 221, 136, 0.1);
    padding: 1rem 0;
}

.search-bar.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.search-input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 221, 136, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 221, 136, 0.4);
    box-shadow: 0 0 0 3px rgba(255, 221, 136, 0.1);
}

.search-submit,
.search-close {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 221, 136, 0.1);
    border: 1px solid rgba(255, 221, 136, 0.2);
    color: #FFDD88;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.search-submit:hover,
.search-close:hover {
    background: rgba(255, 221, 136, 0.2);
    transform: scale(1.05);
}

/* ========== RESPONSIVE ADJUSTMENTS ========== */
@media (max-width: 1200px) {
    .header-container {
        padding: 0 1.5rem;
    }

    .nav-link {
        padding: 0.65rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 968px) {
    .header-desktop {
        display: none !important;
    }
    
    .header-mobile {
        display: block !important;
    }
}

/* ========== SCROLL BEHAVIOR ========== */
.header-desktop {
    will-change: transform;
    backface-visibility: hidden;
    /* Verwijder transform om sticky niet te blokkeren */
}

/* Performance optimalisatie voor smooth scrolling */
@media (prefers-reduced-motion: no-preference) {
    .header-desktop {
        transition: box-shadow 0.3s ease, border-bottom-color 0.3s ease;
    }
}

/* Voor gebruikers die reduced motion prefereren */
@media (prefers-reduced-motion: reduce) {
    .header-desktop,
    .nav-link,
    .action-btn {
        transition: none;
    }
}
