/* ===== MOBILE NAVBAR STYLES ===== */
.mobile-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.12) 100%);
    backdrop-filter: blur(30px) saturate(1.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.mobile-navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    max-width: 100%;
    margin: 0 auto;
    height: 70px;
}

/* ===== MOBILE LOGO ===== */
.mobile-logo {
    flex-shrink: 0;
}

.mobile-logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-image {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

/* ===== MOBILE HEADER ACTIONS ===== */
.mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ===== ASSISTENZA BUTTON ===== */
.mobile-assistance-btn {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border: none;
    border-radius: 10px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.mobile-assistance-btn i {
    color: white;
    font-size: 1.2rem;
}

.mobile-assistance-btn:hover,
.mobile-assistance-btn:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* ===== SOS BUTTON ===== */
.mobile-sos-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
    border-radius: 10px;
    padding: 0.6rem 1rem;
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    min-width: 50px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-sos-btn:hover,
.mobile-sos-btn:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* ===== HAMBURGER MENU ===== */
.mobile-hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    gap: 4px;
    transition: all 0.3s ease;
}

.mobile-hamburger span {
    width: 24px;
    height: 3px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-hamburger:hover span {
    background: rgba(255, 255, 255, 1);
}

/* Hamburger Animation - Open State */
.mobile-hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== MOBILE MENU DROPDOWN ===== */
.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%);
    backdrop-filter: blur(30px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 999;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
}

.mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    padding: 1.5rem 0;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mobile-menu-link:hover,
.mobile-menu-link:active {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-left-color: #3b82f6;
}

.mobile-menu-link i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    opacity: 0.8;
}

.mobile-menu-link:hover i {
    opacity: 1;
}

/* ===== MOBILE MENU OVERLAY ===== */
.mobile-menu-overlay {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: -1;
}

.mobile-menu.open .mobile-menu-overlay {
    opacity: 1;
    visibility: visible;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 320px) {
    .mobile-navbar-container {
        padding: 0.8rem 1rem;
        height: 65px;
    }
    
    .logo-text {
        font-size: 1.6rem;
    }
    
    .mobile-header-actions {
        gap: 0.5rem;
    }
    
    .mobile-assistance-btn,
    .mobile-sos-btn,
    .mobile-hamburger {
        width: 40px;
        height: 40px;
    }
    
    .mobile-sos-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
        min-width: 45px;
    }
    
    .mobile-hamburger span {
        width: 20px;
        height: 2px;
    }
    
    .mobile-menu-link {
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }
}

@media (min-width: 480px) and (max-width: 600px) {
    .mobile-navbar-container {
        padding: 1.2rem 2rem;
        height: 75px;
    }
    
    .logo-text {
        font-size: 2rem;
    }
    
    .mobile-header-actions {
        gap: 1rem;
    }
    
    .mobile-assistance-btn,
    .mobile-hamburger {
        width: 48px;
        height: 48px;
    }
    
    .mobile-sos-btn {
        padding: 0.7rem 1.2rem;
        font-size: 1rem;
        height: 48px;
    }
    
    .mobile-assistance-btn i {
        font-size: 1.3rem;
    }
    
    .mobile-hamburger span {
        width: 26px;
        height: 3px;
    }
    
    .mobile-menu-link {
        padding: 1.2rem 2rem;
        font-size: 1.2rem;
    }
    
    .mobile-menu-link i {
        font-size: 1.3rem;
    }
}
