/* Sistema Suggerimenti - CSS */
.suggerisci-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.suggerisci-modal.active {
    display: flex;
}

.suggerisci-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.suggerisci-container {
    position: relative;
    background: #1a1f2e;
    border-radius: 20px;
    border: 2px solid #00d98e;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 217, 142, 0.3);
    animation: slideUp 0.3s ease;
    z-index: 1;
}

.suggerisci-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.suggerisci-close:hover {
    background: #ff4757;
    transform: rotate(90deg);
}

.suggerisci-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.suggerisci-header i {
    font-size: 2.2rem;
    color: #00d98e;
    margin-bottom: 0.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.suggerisci-header h2 {
    font-size: 1.5rem;
    color: #00ff88;
    margin-bottom: 0.35rem;
}

.suggerisci-header p {
    color: #a0aec0;
    font-size: 0.9rem;
}

.suggerisci-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.suggerisci-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.suggerisci-field label {
    color: #00ff88;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.suggerisci-field label i {
    color: #00d98e;
    font-size: 1rem;
}

.suggerisci-field input[type="text"],
.suggerisci-field textarea {
    background: #0a0e14;
    border: 2px solid #2d3748;
    border-radius: 12px;
    padding: 0.7rem 0.9rem;
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.suggerisci-field input[type="text"]:focus,
.suggerisci-field textarea:focus {
    outline: none;
    border-color: #00d98e;
    box-shadow: 0 0 0 3px rgba(0, 217, 142, 0.1);
}

.suggerisci-field textarea {
    resize: vertical;
    min-height: 65px;
    max-height: 100px;
}

.suggerisci-categories {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
    width: 100% !important;
}

.category-option {
    position: relative;
    cursor: pointer;
    width: 100% !important;
}

.category-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.category-option span {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.35rem !important;
    padding: 0.8rem 0.6rem !important;
    background: #0a0e14 !important;
    border: 2px solid #2d3748 !important;
    border-radius: 12px !important;
    color: #a0aec0 !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
    min-height: 75px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.category-option span i {
    font-size: 1.6rem !important;
    display: block !important;
    margin-bottom: 0 !important;
}

.category-option input[type="radio"]:checked + span {
    background: rgba(0, 217, 142, 0.1) !important;
    border-color: #00d98e !important;
    color: #00ff88 !important;
}

.category-option:hover span,
.category-option:active span {
    border-color: #00d98e !important;
    transform: translateY(-2px) !important;
}

.suggerisci-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.suggerisci-actions button {
    flex: 1;
    padding: 0.8rem 1.25rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: none;
}

.suggerisci-actions .btn-primary {
    background: linear-gradient(135deg, #00d98e, #00ff88);
    color: #0a0e14;
}

.suggerisci-actions .btn-primary:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 217, 142, 0.4);
}

.suggerisci-actions .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.suggerisci-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #a0aec0;
    border: 2px solid #2d3748;
}

.suggerisci-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #00d98e;
    color: #fff;
}

.suggerisci-message {
    display: none;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    margin-top: 1rem;
    animation: fadeIn 0.3s ease;
}

.suggerisci-message.success {
    background: rgba(0, 217, 142, 0.1);
    border: 2px solid #00d98e;
    color: #00ff88;
}

.suggerisci-message.error {
    background: rgba(255, 71, 87, 0.1);
    border: 2px solid #ff4757;
    color: #ff4757;
}

.suggerisci-message.warning {
    background: rgba(255, 217, 61, 0.1);
    border: 2px solid #ffd93d;
    color: #ffd93d;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .suggerisci-container {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .suggerisci-header i {
        font-size: 2.5rem;
    }
    
    .suggerisci-header h2 {
        font-size: 1.5rem;
    }
    
    .suggerisci-categories {
        grid-template-columns: 1fr;
    }
    
    .suggerisci-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .suggerisci-modal {
        padding: 0.5rem;
    }
    
    .suggerisci-container {
        padding: 1rem;
        max-height: 95vh;
    }
    
    .suggerisci-header {
        margin-bottom: 1.5rem;
    }
    
    .suggerisci-form {
        gap: 1rem;
    }
}
