/* ============================================
   HEADER STYLES
   ============================================ */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.header__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 24px;
}

/* Logo */
.header__logo img {
    height: 50px;
    width: auto;
}

/* Navigation Menu */
.header__menu {
    display: none;
    list-style: none;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.header__menu li {
    margin: 0;
}

.header__menu a {
    font-family: 'Arnet-Regular', sans-serif;
    font-size: 1rem;
    color: #18232f;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.header__menu a:hover {
    color: #79b51c;
}

.header__menu a.active {
    color: #79b51c;
    font-family: 'Arnet-Bold', sans-serif;
}

.header__menu a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: #79b51c;
}

/* User Actions */
.header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* SSO Profile Icon Button */
.btn--sso-profile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: white;
    border: 2px solid var(--color-secondary);
    border-radius: 50%;
    color: var(--color-secondary);
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}

.btn--sso-profile:hover {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(121, 181, 28, 0.3);
}

.btn--sso-profile svg {
    stroke: var(--color-secondary);
    transition: stroke 0.2s ease;
}

.btn--sso-profile:hover svg {
    stroke: white;
}

/* Mobile Menu Toggle */
.header__mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}

.header__mobile-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #18232f;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.header__mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.header__mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.header__mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (min-width: 768px) {
    .header__menu {
        display: flex;
    }

    .header__mobile-toggle {
        display: none;
    }
}

@media (max-width: 767px) {
    .header__menu {
        position: fixed;
        top: 82px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-120%);
        opacity: 0;
        transition: all 0.3s ease;
    }

    .header__menu.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
    }

    .header__actions {
        gap: 8px;
    }

    /* SSO Profile Button Mobile */
    .btn--sso-profile {
        width: 40px;
        height: 40px;
    }

    .btn--sso-profile svg {
        width: 20px;
        height: 20px;
    }

    /* SSO Button Mobile */
    .btn--sso {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .header__logo img {
        height: 40px;
    }

    .header__actions {
        gap: 6px;
    }

    .btn--sso-profile {
        width: 36px;
        height: 36px;
    }

    .btn--sso-profile svg {
        width: 18px;
        height: 18px;
    }
}

/* Scrolled State */
.header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}