/* Header Styles */
.main-header {
    background-color: #333;
    color: white;
    padding: 0 20px;
    height: 46px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    max-width: 1240px;
    margin: 0 auto;
    height: 100%;
}

.logo {
    font-weight: bold;
    background: linear-gradient(#ff8800, #ff5500);
    padding: 5px 10px;
    margin-right: 20px;
    cursor: pointer;
    
}
.logo:hover {
    background: linear-gradient(#ff5500, #ff8800);
}

.nav-links a {
    color: #ccc;
    text-decoration: none;
    padding: 0 15px;
    font-size: 14px;
}

.nav-links a.active {
    color: white;
    background-color: #111;
    height: 100%;
    display: inline-flex;
    align-items: center;
}

.search-bar input {
    background: #e5e5e5;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    width: 300px;
    margin-left: 20px;
}

/* adding mobile screen support for nav bar */
/* --- EXISTING HEADER STYLES REMAIN --- */

/* Hide hamburger on desktop */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    width: 22px;
    height: 3px;
    background: white;
    transition: 0.3s;
}

/* Hamburger animation */
.hamburger.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
}
.hamburger.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Mobile menu hidden by default */
.nav-links {
    display: flex;
    align-items: center;
    transition: max-height 0.3s ease;
}

@media (max-width: 768px) {
    .header-container {
        justify-content: space-between;
    }

/*
    .search-bar {
        display: none;
    }
*/
.search-bar input { width: 150px; padding: 5px 8px; }
    /* Show hamburger */
    .hamburger {
        display: flex;
    }

    /* Turn nav into dropdown */
    .nav-links {
        position: absolute;
        top: 46px;
        left: 0;
        width: 100%;
        background: #333;
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 0;
        max-height: 0;
        overflow: hidden;
    }

    .nav-links.open {
        max-height: 300px; /* enough for 4�6 links */
    }

    .nav-links a {
        padding: 12px 20px;
        width: 100%;
        color: #ccc;
    }

    .nav-links a.active {
        background: #111;
        color: white;
    }
}
