/* ==================== MOBILE MENU ==================== */
/* Menu hamburger mobile */

.mobile-menu-btn {
    display: none;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.mobile-menu-content {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 85%;
    height: 100%;
    background: var(--bg-primary, rgba(255, 255, 255, 0.95));
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
    overflow-y: auto;
    animation: slideInRight 0.3s ease;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color, rgba(0,0,0,0.1));
}

.mobile-menu-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    border-radius: 4px;
}

.mobile-menu-close:hover,
.mobile-menu-close:active {
    background: rgba(0, 0, 0, 0.05);
}

.mobile-menu-nav {
    padding: 1rem 0;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.2s;
    min-height: 44px;
    text-decoration: none;
}

.mobile-menu-item:hover,
.mobile-menu-item:active {
    background: rgba(0, 0, 0, 0.05);
}

.mobile-menu-icon {
    font-size: 1.5rem;
    width: 24px;
    text-align: center;
}

/* Dimensione testo nel menu burger (5 livelli) */
.mobile-menu-font-size {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color, rgba(0,0,0,0.08));
}
.mobile-menu-font-size-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}
.mobile-menu-font-size-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.mobile-menu-font-btn {
    min-width: 2.5rem;
    padding: 0.5rem 0.6rem;
    font-size: 0.9rem;
    border: 1px solid var(--border-color, rgba(0,0,0,0.2));
    border-radius: 4px;
    background: var(--bg-secondary, #f5f5f5);
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.mobile-menu-font-btn:hover {
    background: var(--bg-hover, rgba(0,0,0,0.05));
}
.mobile-menu-font-btn.active {
    background: var(--accent-primary, #1a73e8);
    color: var(--text-on-accent, #fff);
    border-color: var(--accent-primary, #1a73e8);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Smart Filter Suggestion */
.smart-filter-suggestion-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin: 0;
    height: 9rem;
    overflow-y: auto;
    overflow-x: hidden;
}

.smart-filter-suggestion-container:has(> .smart-filter-suggestion[style*="display: none"]) {
    height: 9rem;
    margin: 0;
}

.smart-filter-suggestion {
    position: relative;
    width: 95%;
    max-width: 100rem;
    padding: 0.875rem 1.375rem;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: var(--blur-medium);
    -webkit-backdrop-filter: var(--blur-medium);
    border: none;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
    box-shadow: var(--glow-medium);
    animation: slideDown 0.3s ease;
    z-index: 10;
}

@media (min-width: 1920px) {
    .smart-filter-suggestion {
        max-width: 100rem;
    }
}

@media (min-width: 2560px) {
    .smart-filter-suggestion {
        max-width: 100rem;
    }
}

.suggestion-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.suggestion-text {
    flex: 1;
}

.suggestion-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex: 1;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        filter: brightness(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: brightness(1);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}
