/* header.css */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    background: #1a1a1a;
    border-bottom: 1px solid #333;
    z-index: 1000;
    position: relative;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #e67e22;
    transition: 0.3s;
}

.search-bar {
    flex-grow: 1;
    max-width: 500px;
    margin: 0 20px;
}

.search-form {
    display: flex;
    width: 100%;
}

.search-form input {
    flex-grow: 1;
    padding: 8px 15px;
    background: #121212;
    border: 1px solid #333;
    border-radius: 20px 0 0 20px;
    color: #fff;
    outline: none;
}

.search-form button {
    padding: 8px 15px;
    background: #333;
    border: 1px solid #333;
    border-left: none;
    border-radius: 0 20px 20px 0;
    color: #ccc;
    cursor: pointer;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-link {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-header-orange {
    background: #e67e22;
    color: white !important;
    padding: 6px 12px;
    border-radius: 4px;
}

/* MOBILE RESPONSIVE */
@media (max-width: 850px) {
    .hamburger {
        display: flex;
    }
    .main-header {
        padding: 10px 15px;
        flex-wrap: wrap;
    }
    .search-bar {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin: 10px 0 5px 0;
    }

    .user-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: #1a1a1a;
        padding: 10px 0;
        border-bottom: 2px solid #e67e22;
    }

    .user-menu.active {
        display: flex;
    }
    .nav-link {
        width: 100%;
        padding: 12px 20px;
        border-bottom: 1px solid #222;
        margin: 0;
    }
    .welcome-text {
        display: none;
    }

    .hamburger.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .hamburger.open span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
}