/* Reset e stili base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: linear-gradient(135deg, #1a1a1a 0%, #2d1b3d 50%, #1a1a1a 100%); color: #ffffff; min-height: 100vh; overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }

/* Header */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(26, 13, 38, 0.8);
    border: 1px solid #6a0dad;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(106, 13, 173, 0.3);
    backdrop-filter: blur(10px);
}

.page-header h1 {
    color: #d580ff;
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(213, 128, 255, 0.5);
}

.page-header p {
    color: #b8a9c9;
    font-size: 1.1rem;
}

/* Messaggi */
.message {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.message.success {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid #22c55e;
}

.message.error {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
}

/* Form Richiesta */
.request-form {
    background: rgba(26, 13, 38, 0.8);
    border: 1px solid #6a0dad;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 0 30px rgba(106, 13, 173, 0.3);
}

.request-form h2 {
    color: #d580ff;
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #d580ff;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #6a0dad;
    border-radius: 10px;
    background: rgba(26, 13, 38, 0.6);
    color: white;
    font-size: 1rem;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: #d580ff;
    box-shadow: 0 0 15px rgba(213, 128, 255, 0.3);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-note {
    background: rgba(106, 13, 173, 0.1);
    border: 1px solid #6a0dad;
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-note i {
    color: #d580ff;
    font-size: 1.2rem;
    margin-top: 2px;
}

.form-note p {
    color: #b8a9c9;
    line-height: 1.5;
    margin: 0;
}

.btn-submit {
    background: linear-gradient(135deg, #d580ff, #ff66cc);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(213, 128, 255, 0.5);
}

/* Sezione Esempi */
.examples-section {
    background: rgba(26, 13, 38, 0.8);
    border: 1px solid #6a0dad;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 0 30px rgba(106, 13, 173, 0.3);
}

.examples-section h2 {
    color: #d580ff;
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.8rem;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.example-card {
    background: rgba(26, 13, 38, 0.9);
    border: 1px solid #6a0dad;
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
}

.example-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(106, 13, 173, 0.4);
}

.example-card h3 {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.example-card p {
    color: #b8a9c9;
    margin-bottom: 15px;
    line-height: 1.5;
}

.example-card .category {
    background: rgba(106, 13, 173, 0.3);
    color: #d580ff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 10px;
    display: inline-block;
}

.example-card small {
    color: #b8a9c9;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Sezione Filtri */
.filters-section {
    background: rgba(26, 13, 38, 0.8);
    border: 1px solid #6a0dad;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 0 30px rgba(106, 13, 173, 0.3);
}

.filters-section h2 {
    color: #d580ff;
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.8rem;
}

.filters-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filters-row {
    display: flex;
    gap: 20px;
    align-items: end;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    color: #d580ff;
    margin-bottom: 8px;
    font-weight: bold;
}

.filter-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #6a0dad;
    border-radius: 10px;
    background: rgba(26, 13, 38, 0.6);
    color: white;
    font-size: 1rem;
}

.filter-actions {
    display: flex;
    gap: 10px;
}

.btn-filter, .btn-reset {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-filter {
    background: linear-gradient(135deg, #d580ff, #ff66cc);
    color: white;
}

.btn-reset {
    background: rgba(106, 13, 173, 0.3);
    color: #b8a9c9;
    border: 1px solid #6a0dad;
}

.btn-filter:hover, .btn-reset:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(106, 13, 173, 0.4);
}

/* Sezione Statistiche */
.stats-section {
    background: rgba(26, 13, 38, 0.8);
    border: 1px solid #6a0dad;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 0 30px rgba(106, 13, 173, 0.3);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: rgba(26, 13, 38, 0.9);
    border: 1px solid #6a0dad;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(106, 13, 173, 0.4);
}

.stat-card i {
    color: #d580ff;
    font-size: 2rem;
}

.stat-info h3 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 5px;
}

.stat-number {
    color: #d580ff;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Sezione Richieste */
.requests-section {
    background: rgba(26, 13, 38, 0.8);
    border: 1px solid #6a0dad;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 0 30px rgba(106, 13, 173, 0.3);
}

.requests-section h2 {
    color: #d580ff;
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.8rem;
}

.requests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.request-card {
    background: rgba(26, 13, 38, 0.9);
    border: 1px solid #6a0dad;
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
}

.request-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(106, 13, 173, 0.4);
}

.request-card.pubblicata {
    border-left: 4px solid #9333ea;
}

.request-card.pronta {
    border-left: 4px solid #16a34a;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
}

.status-pubblicata {
    background: #9333ea;
}

.status-pronta {
    background: #16a34a;
}

.priority {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
}

.priority-bassa { background: #6b7280; }
.priority-media { background: #3b82f6; }
.priority-alta { background: #f59e0b; }
.priority-urgente { background: #dc2626; }

.request-card h3 {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.request-card .description {
    color: #b8a9c9;
    margin-bottom: 15px;
    line-height: 1.5;
}

.request-card .category {
    background: rgba(106, 13, 173, 0.3);
    color: #d580ff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 10px;
    display: inline-block;
}

.card-footer {
    color: #b8a9c9;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(106, 13, 173, 0.3);
}

/* No Requests */
.no-requests {
    text-align: center;
    padding: 60px;
    color: #b8a9c9;
}

.no-requests i {
    color: #d580ff;
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

.no-requests h3 {
    color: #d580ff;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Link Utili */
.useful-links {
    background: rgba(26, 13, 38, 0.8);
    border: 1px solid #6a0dad;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 0 30px rgba(106, 13, 173, 0.3);
}

.useful-links h2 {
    color: #d580ff;
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.8rem;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.link-card {
    background: rgba(26, 13, 38, 0.9);
    border: 1px solid #6a0dad;
    border-radius: 15px;
    padding: 20px;
    text-decoration: none;
    color: white;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(106, 13, 173, 0.4);
    color: white;
}

.link-card i {
    color: #d580ff;
    font-size: 2rem;
}

.link-card span {
    font-size: 1.1rem;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container { padding: 15px; }
    
    .page-header h1 { font-size: 2rem; }
    
    .form-row { flex-direction: column; }
    
    .filters-row { flex-direction: column; }
    
    .filter-actions { justify-content: center; }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .requests-grid {
        grid-template-columns: 1fr;
    }
    
    .examples-grid {
        grid-template-columns: 1fr;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
}

/* Animazioni */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.example-card, .request-card, .link-card, .stat-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Scrollbar personalizzata */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: rgba(26, 13, 38, 0.3); }
::-webkit-scrollbar-thumb { background: linear-gradient(135deg, #6a0dad, #d580ff); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(135deg, #d580ff, #ff66cc); }

/* Focus states per accessibilità */
.btn-submit:focus, .btn-filter:focus, .btn-reset:focus {
    outline: 2px solid #d580ff;
    outline-offset: 2px;
}
