/* ===========================================
   IMAGES STYLES - Sistema Scommesse Calcio
   =========================================== */

/* Hero Image - Full width banner */
.hero-image {


    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    aspect-ratio: 21 / 9;
    background: linear-gradient(135deg, #0d2818 0%, #1a472a 50%, #2d6a4f 100%);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: fadeInHero 0.8s ease-out 0.2s forwards;
}

.hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #fdfcfa 0%, transparent 30%);
    pointer-events: none;
}

/* Article Images - Content images */
.article-image {
    margin: 2rem 0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06), 0 5px 10px rgba(0, 0, 0, 0.04);
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-image:hover img {
    transform: scale(1.02);
}

/* Animation for hero image */
@keyframes fadeInHero {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-image {
        aspect-ratio: 16 / 9;
    }
    
    .article-image {
        margin: 1.5rem 0;
        border-radius: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero-image {
        aspect-ratio: 4 / 3;
    }
    
    .article-image {
        margin: 1rem 0;
        border-radius: 0.5rem;
    }
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    .hero-image {
        background: linear-gradient(135deg, #0a1f12 0%, #143d22 50%, #1e5631 100%);
    }
    
    .hero-image::after {
        background: linear-gradient(to top, #0f0f0f 0%, transparent 30%);
    }
    
    .article-image {
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 5px 10px rgba(0, 0, 0, 0.2);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-image img {
        animation: none;
        opacity: 1;
    }
    
    .article-image img {
        transition: none;
    }
    
    .article-image:hover img {
        transform: none;
    }
}

/* Print styles */
@media print {
    .hero-image,
    .article-image {
        break-inside: avoid;
    }
    
    .hero-image {
        width: 100%;
        margin-left: 0;
    }
    
    .hero-image::after {
        display: none;
    }
    
    .article-image {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
