/* includes/navbar.css - Estilos centralizados da navbar */

/* HEADER E NAVBAR */
.main-header {
    background: rgba(15,15,15,.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.nav-logo img {
    height: 45px;
    transition: transform .3s ease;
}

.nav-logo:hover img {
    transform: scale(1.05);
}

/* MENU DESKTOP */
.nav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    list-style: none;
}

.nav-menu a {
    color: var(--secondary-text-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all .3s ease;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width .3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent-color);
    background: rgba(59,130,246,0.1);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* DROPDOWN */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.dropdown-arrow {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    transition: transform .3s ease;
}

.dropdown:hover .dropdown-arrow,
.dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    backdrop-filter: blur(20px);
    min-width: 180px;
    padding: 0.8rem 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.6rem 1.2rem;
    color: var(--secondary-text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: rgba(59,130,246,0.1);
    color: var(--accent-color);
}

/* HAMBURGER MENU */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1002;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-text-color);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* RESPONSIVIDADE MOBILE */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(15,15,15,0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 0;
        padding-top: 2rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu a {
        width: 90%;
        padding: 1rem;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
        font-size: 1rem;
        margin: 0;
        border-radius: 0;
    }

    .dropdown {
        width: 90%;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        background: rgba(59,130,246,0.1);
        box-shadow: none;
        border: none;
        border-radius: 0;
        margin-top: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transition: max-height 0.3s ease;
    }

    .dropdown.active .dropdown-menu {
        max-height: 300px;
    }

    .dropdown-item {
        padding: 0.8rem 1.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .nav-logo img {
        height: 35px;
    }

    .navbar {
        padding: 0.8rem 1rem;
    }
}

@media (max-width: 480px) {
    .nav-logo img {
        height: 30px;
    }

    .navbar {
        padding: 0.6rem 0.8rem;
    }
}