/* Custom styles for 123scuola.com */

/* Base styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom gradient backgrounds */
.bg-gradient-hero {
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
}

.bg-gradient-news {
    background: linear-gradient(135deg, #dbeafe 0%, #f1f5f9 100%);
}

.bg-gradient-study {
    background: linear-gradient(135deg, #dcfce7 0%, #f1f5f9 100%);
}

.bg-gradient-quiz {
    background: linear-gradient(135deg, #faf5ff 0%, #f1f5f9 100%);
}

.bg-gradient-benefits {
    background: linear-gradient(135deg, #fefce8 0%, #f1f5f9 100%);
}

.bg-gradient-teachers {
    background: linear-gradient(135deg, #fff7ed 0%, #fef2f2 100%);
}

/* Section dividers */
.section-divider {
    display: flex;
    align-items: center;
    margin: 1rem 0;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #cbd5e1, transparent);
}

.section-divider-dots::before,
.section-divider-dots::after {
    background: linear-gradient(to right, transparent, #cbd5e1, transparent);
}

.section-divider-star::before,
.section-divider-star::after {
    background: linear-gradient(to right, transparent, #f87171, transparent);
    height: 2px;
}

.section-divider-sparkle::before,
.section-divider-sparkle::after {
    background: linear-gradient(to right, transparent, #fbbf24, transparent);
}

.section-divider-teacher::before,
.section-divider-teacher::after {
    background: linear-gradient(to right, transparent, #fb923c, transparent);
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Progress bars */
.progress-bar {
    transition: width 0.5s ease-in-out;
}

/* Quiz widget styles */
.quiz-widget {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.quiz-option {
    transition: all 0.2s ease;
}

.quiz-option:hover {
    background-color: #f8fafc;
    border-color: #3b82f6;
}

/* Mobile responsive improvements */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
}

/* Button styles */
.btn-primary {
    background: linear-gradient(135deg, #0ea5e9, #3b82f6);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0284c7, #2563eb);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}

/* Content cards */
.content-card {
    height: 128px;
    overflow: hidden;
}

.content-card img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Badge styles */
.badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
}

.badge-hot {
    background-color: #fef2f2;
    color: #dc2626;
}

.badge-ai {
    background-color: #eff6ff;
    color: #2563eb;
}

.badge-lab {
    background-color: #f0fdf4;
    color: #16a34a;
}

/* Animation for loading states */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}