/* ============================= */
/* ===== GLOBAL HEADER ========= */
/* ============================= */

header {
    position: sticky;
    top: 0;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    z-index: 100;
}

header .container {
    padding-left: 0rem;
}

/* NAVIGATION */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
}

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

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
}

/* NAV LINKS */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-actions > a {
    text-decoration: none;
    color: var(--dark);
    margin-left: 1.5rem;
    font-weight: 500;
}

nav a:hover {
    color: var(--primary);
}

/* ============================= */
/* ===== LOGIN / USER ========== */
/* ============================= */

.user-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.login-wrapper {
    position: relative;
}

.login-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    cursor: pointer;
}

.login-btn svg {
    width: 22px;
    height: 22px;
    fill: var(--primary);
}

.login-btn:hover {
    background: var(--primary);
    transform: translateY(-2px) scale(1.05);
}

.login-btn:hover svg {
    fill: white;
}

/* Dropdown */
.login-dropdown {
    position: absolute;
    top: 55px;
    right: 0;
    width: 260px;
    background: white;
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(15,23,42,0.15);
    display: none;
    z-index: 999;
}

.login-dropdown.show {
    display: block;
}

.login-dropdown h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.login-dropdown input {
    width: 100%;
    padding: 0.6rem;
    margin-bottom: 0.7rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    font-family: inherit;
}

.login-submit {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.6rem;
    border-radius: 8px;
    cursor: pointer;
}

.login-submit:hover {
    background: var(--primary-dark);
}

/* Logout Button */
.logout-btn {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.logout-btn:hover {
    background: var(--primary);
    color: white;
}

/* ============================= */
/* ===== MOBILE ================ */
/* ============================= */

@media (max-width: 768px) {

    header .container {
        padding: 0 1rem;
    }

    nav {
        height: 60px;
    }

    .logo img {
        height: 80px;
    }

    .nav-actions {
        gap: 0.75rem;
    }

    .nav-actions > a {
        margin-left: 0.75rem;
        font-size: 0.95rem;
    }

    .login-btn {
        width: 38px;
        height: 38px;
    }

    .login-dropdown {
        right: -40px;
        width: 90vw;
        max-width: 320px;
    }
}
