/* Estilos do Menu Hamburguer */
.hamburger {
    display: none;
    cursor: pointer;
    border: none;
    background: none;
    padding: 8px;
    position: relative;
    z-index: 1001;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.hamburger:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.dark .hamburger:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2.5px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: #374151;
    border-radius: 2px;
}

.dark .hamburger-line {
    background-color: #fff;
}

/* Animação do hamburguer para X */
.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsividade */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    /* Menu lateral melhorado */
    #navbar-sticky {
        position: fixed;
        right: -100%;
        top: 0;
        flex-direction: column;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        text-align: left;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        background-color: #fff;
        padding: 5rem 0 2rem 0;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        z-index: 1000;
    }

    .dark #navbar-sticky {
        background-color: #1f2937;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.4);
    }

    #navbar-sticky.active {
        right: 0;
    }

    #navbar-sticky ul {
        flex-direction: column;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    #navbar-sticky li {
        margin: 0;
        width: 100%;
    }

    #navbar-sticky a {
        width: 100%;
        display: block;
        padding: 1rem 1.5rem;
        transition: all 0.2s ease;
        border-left: 3px solid transparent;
    }
    
    #navbar-sticky a:hover {
        background-color: rgba(59, 130, 246, 0.1);
        border-left-color: #3b82f6;
        padding-left: 1.75rem;
    }
    
    .dark #navbar-sticky a:hover {
        background-color: rgba(59, 130, 246, 0.2);
    }
}

/* Header melhorado - estilos gerais */
nav.fixed {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Header mobile - ajustes específicos */
@media (max-width: 768px) {
    /* Container do tema mobile */
    #theme-toggle-container-mobile button {
        padding: 0.5rem;
    }
    
    /* Ajustar título no mobile para quebra de linha funcionar */
    nav.fixed .flex.items-center a span {
        line-height: 1.2;
        display: inline-block;
    }
    
    /* Garantir que o título não sobreponha o menu hambúrguer */
    nav.fixed .flex.items-center.space-x-2 {
        min-width: 0;
        flex: 1;
        max-width: calc(100% - 140px);
    }
    
    /* Quebra de linha no título no mobile */
    nav.fixed .flex.items-center a span .sm\\:hidden {
        display: inline-block;
        line-height: 1.3;
    }
}