/* Header Styles */
.header {
    background: #fff;
    padding: 15px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease-in-out;
    will-change: transform;
}

/* Smooth fixed header when scrolling */
.header.menu-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(0);
}

/* Remove the animation class effect and use smooth transition */
.header.animated {
    animation: none !important;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #2563eb;
    text-decoration: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

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

.search-bar {
    flex: 1;
    position: relative;
    min-width: 200px;
}

.search-bar input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
}

.search-bar input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-bar button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #2563eb;
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.search-bar button:hover {
    background: #1d4ed8;
}

.search-bar button i {
    font-size: 14px;
}

.header-icons {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-shrink: 0;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    text-decoration: none;
    color: #1f2937;
    flex-shrink: 0;
}

.icon-btn:hover {
    background: #2563eb;
    color: white;
}

.icon-btn i {
    font-size: 18px;
}

.icon-btn .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    line-height: 1;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .header {
        padding: 12px 15px;
    }

    .header-content {
        gap: 10px;
    }

    .logo {
        font-size: 20px;
    }

    .logo i {
        font-size: 18px;
    }

    .search-bar {
        order: 3;
        width: 100%;
        margin-top: 10px;
        min-width: unset;
    }

    .search-bar input {
        padding: 10px 35px 10px 12px;
        font-size: 13px;
    }

    .search-bar button {
        padding: 6px 12px;
        right: 3px;
    }

    .search-bar button i {
        font-size: 13px;
    }

    .header-icons {
        gap: 10px;
    }

    .icon-btn {
        width: 36px;
        height: 36px;
    }

    .icon-btn i {
        font-size: 16px;
    }

    .icon-btn .badge {
        font-size: 9px;
        padding: 1px 5px;
        min-width: 16px;
        height: 16px;
        top: -3px;
        right: -3px;
    }
}

/* Small Mobile Devices */
@media (max-width: 576px) {
    .header {
        padding: 10px 12px;
    }

    .header-content {
        gap: 8px;
    }

    .logo {
        font-size: 18px;
        gap: 6px;
    }

    .logo i {
        font-size: 16px;
    }

    .search-bar {
        margin-top: 8px;
    }

    .search-bar input {
        padding: 8px 30px 8px 10px;
        font-size: 12px;
    }

    .search-bar button {
        padding: 5px 10px;
        right: 2px;
    }

    .search-bar button i {
        font-size: 12px;
    }

    .header-icons {
        gap: 8px;
    }

    .icon-btn {
        width: 32px;
        height: 32px;
    }

    .icon-btn i {
        font-size: 14px;
    }

    .icon-btn .badge {
        font-size: 8px;
        padding: 1px 4px;
        min-width: 14px;
        height: 14px;
        top: -2px;
        right: -2px;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 400px) {
    .header {
        padding: 8px 10px;
    }

    .logo {
        font-size: 16px;
    }

    .logo i {
        font-size: 14px;
    }

    .search-bar input {
        padding: 7px 28px 7px 8px;
        font-size: 11px;
    }

    .search-bar button {
        padding: 4px 8px;
    }

    .header-icons {
        gap: 6px;
    }

    .icon-btn {
        width: 30px;
        height: 30px;
    }

    .icon-btn i {
        font-size: 13px;
    }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 992px) {
    .header {
        padding: 13px 18px;
    }

    .header-content {
        gap: 12px;
    }

    .search-bar {
        min-width: 250px;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .header-content {
        padding: 0 20px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .icon-btn:hover {
        background: #f3f4f6;
        color: #1f2937;
    }

    .icon-btn:active {
        background: #2563eb;
        color: white;
    }

    .search-bar button:hover {
        background: #2563eb;
    }

    .search-bar button:active {
        background: #1d4ed8;
    }
}

/* Landscape Mobile */
@media (max-width: 896px) and (orientation: landscape) {
    .header {
        padding: 10px 15px;
    }

    .header-content {
        gap: 10px;
    }

    .search-bar {
        margin-top: 8px;
    }
}

/* Accessibility - Focus States */
.icon-btn:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.search-bar input:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.search-bar button:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.logo:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
    border-radius: 4px;
}












