/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 2300;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-header-login {
    display: none !important;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--tenant-accent, #d4af37);
    margin: 3px 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2190;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    header {
        height: 72px !important;
        min-height: 72px !important;
        padding: 6px 12px !important;
        gap: 0 !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        z-index: 2200 !important;
    }

    header h1,
    #animated-heading {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
        position: relative !important;
        z-index: 2300 !important;
        width: 34px;
        height: 34px;
    }

    .mobile-header-login {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        z-index: 2301;
        padding: 7px 12px !important;
        border-radius: 16px !important;
        font-size: 0.9rem;
        gap: 6px;
    }

    .mobile-header-login .login-text {
        display: inline !important;
        font-size: 0.8rem;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(500px, 85vw);
        height: 100vh;
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
        padding: 2rem 1rem;
        transition: right 0.3s ease;
        z-index: 2250;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
        pointer-events: none;
    }

    nav.open {
        right: 0;
        pointer-events: auto;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        margin-top: 3rem;
    }

    nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(var(--tenant-accent-rgb, 212, 175, 55), 0.1);
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav ul li a {
        display: block;
        padding: 1rem 0;
        width: 100%;
        color: #e0e0e0;
        text-decoration: none;
        font-size: 1.1rem;
        transition: all 0.3s ease;
        border-left: 3px solid transparent;
        padding-left: 1rem;
    }

    nav ul li a:hover {
        color: var(--tenant-accent, #d4af37);
        border-left-color: var(--tenant-accent, #d4af37);
        background: rgba(var(--tenant-accent-rgb, 212, 175, 55), 0.05);
    }

    .nav-login-btn {
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
        padding: 1rem;
        background: rgba(var(--tenant-accent-rgb, 212, 175, 55), 0.1);
        border: 1px solid rgba(var(--tenant-accent-rgb, 212, 175, 55), 0.3);
        border-radius: 8px;
    }

    /* Dropdown ativo no mobile */
    .dropdown .dropdown-content {
        display: none;
        position: static !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        padding-left: 1rem;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .dropdown > a .arrow {
        transition: transform 0.3s ease;
        display: inline-block;
    }

    .dropdown.active > a .arrow {
        transform: rotate(180deg);
    }
}

/* Para telas muito pequenas, mantém largura menor */
@media (max-width: 480px) {
    header {
        height: 64px !important;
        min-height: 64px !important;
        padding: 5px 10px !important;
    }

    .mobile-header-login {
        padding: 6px 10px !important;
        border-radius: 14px !important;
        font-size: 0.82rem;
    }

    .mobile-header-login .login-text {
        font-size: 0.74rem;
    }

    nav {
        width: 260px;
        padding: 2rem 1rem;
    }

    nav ul li a {
        padding-left: 1rem;
        font-size: 1rem;
    }

    .nav-login-btn {
        padding: 1rem;
        font-size: 1rem;
    }
}