/* ================= HEADER ================= */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: linear-gradient(90deg,
            var(--background-alt),
            var(--secondary));

    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(6px);
}

/* ================= NAV ================= */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ================= LOGO ================= */
.logo img {
    height: 45px;
    object-fit: contain;
}

/* ================= MENU ================= */
.menu {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

/* remove aquele border bugado no último */
.menu li {
    position: relative;
}

/* separador elegante */
.menu li:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -13px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 14px;
    background: rgba(200, 155, 60, 0.4);
}

/* LINKS */
.menu li a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;

    position: relative;
    padding: 6px 0;

    transition: 0.3s;
}

/* UNDERLINE ANIMADA */
.menu li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;

    width: 100%;
    height: 2px;

    background: linear-gradient(90deg, transparent, var(--primary), transparent);

    transform: scaleX(0);
    transform-origin: center;

    transition: transform 0.3s;
}

/* hover + ativo */
.menu li a:hover::after,
.menu a.active::after {
    transform: scaleX(1);
}

/* glow leve */
.menu li a:hover {
    color: #fff;
    text-shadow: 0 0 6px rgba(200, 155, 60, 0.5);
}

/* ================= ACCOUNT ================= */
.account {
    display: flex;
}

.account a {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 10px 20px;

    background: linear-gradient(90deg, #3f5c2f, #4f6f3c);
    color: #e6d7a3;

    text-decoration: none;
    font-weight: bold;

    border-left: 4px solid rgba(0, 0, 0, 0.4);
    border-radius: 6px;

    transition: 0.3s;
}

/* TEXTO */
.account .label {
    font-family: serif;
    text-transform: uppercase;
    font-size: 13px;
}

/* ÍCONE */
.account .icon {
    width: 36px;
    height: 36px;

    border-radius: 50%;
    background: radial-gradient(circle, #3e5432, #1a2514);

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
}

/* IMAGEM */
.account .icon img {
    width: 50px;
    height: 50px;
}

/* AURA */
.account .icon::after {
    content: "";
    position: absolute;
    inset: -4px;

    border-radius: 50%;
    border: 2px solid rgba(34, 206, 0, 0.2);
}

/* HOVER */
.account a:hover {
    background: linear-gradient(90deg, #5f8c3f, #6fa84c);
    box-shadow: 0 0 12px rgba(34, 206, 0, 0.4);
    transform: translateY(-1px);
}

/* ================= TOGGLE ================= */
.toggle {
    display: none;
    font-size: 22px;
    color: var(--primary);
    background: none;
    border: none;
    cursor: pointer;
}

/* ================= RESPONSIVO ================= */
@media (max-width: 768px) {

    .toggle {
        display: block;
    }

    .menu {
        position: absolute;
        top: 100%;
        left: 0;

        width: 100%;
        flex-direction: column;
        gap: 5px;

        margin: 0;
        background: rgba(0, 0, 0, 0.95);

        max-height: 0;
        overflow: hidden;

        border-bottom: 2px solid var(--primary);

        transition: max-height 0.3s ease;
    }

    .menu.active {
        max-height: 300px;
    }

    .menu li {
        width: 100%;
    }

    .menu li::after {
        display: none;
    }

    .menu li a {
        display: block;
        padding: 12px;
        margin: 5px 10px;
        border-radius: 6px;
        color: white;
    }

    .account {
        display: none;
    }
}