/* Image Styles for Bukmacherskie Polska 2025 */

/* Hero Image - Main banner */
.hero-image {
    width: 100%;
    max-width: 1200px;
    height: auto;
    display: block;
    margin: 2rem auto;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    object-fit: cover;
}

.hero-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Section Images - Content illustrations */
.section-image {
    width: 100%;
    max-width: 1000px;
    height: auto;
    display: block;
    margin: 2.5rem auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    object-fit: contain;
}

.section-image:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.3);
}

/* Mobile Responsive Image Adjustments */
@media (max-width: 768px) {
    .hero-image {
        border-radius: 8px;
        margin: 1.5rem auto;
    }
    
    .section-image {
        border-radius: 8px;
        margin: 2rem auto;
    }
    
    .section-image:hover {
        transform: scale(1.01);
    }
}

@media (max-width: 480px) {
    .hero-image,
    .section-image {
        border-radius: 6px;
        margin: 1rem auto;
    }
}

/* Loading Animation for Lazy-loaded Images */
.section-image[loading="lazy"] {
    background: linear-gradient(
        90deg,
        #f0f4f8 0%,
        #e2e8f0 50%,
        #f0f4f8 100%
    );
    background-size: 200% 100%;
    animation: imageLoadingPulse 1.5s ease-in-out infinite;
}

@keyframes imageLoadingPulse {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Image Caption Styles */
.image-caption {
    text-align: center;
    font-size: 0.875rem;
    color: #718096;
    margin-top: 0.75rem;
    font-style: italic;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .hero-image,
    .section-image {
        opacity: 0.9;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
    
    .section-image:hover {
        box-shadow: 0 15px 40px rgba(59, 130, 246, 0.25);
        border-color: rgba(59, 130, 246, 0.4);
    }
    
    .image-caption {
        color: #94a3b8;
    }
    
    .section-image[loading="lazy"] {
        background: linear-gradient(
            90deg,
            #334155 0%,
            #475569 50%,
            #334155 100%
        );
    }
}

/* Print Styles */
@media print {
    .hero-image,
    .section-image {
        max-width: 100%;
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* High DPI Display Support */
@media (-webkit-min-device-pixel-ratio: 2),
       (min-resolution: 192dpi) {
    .hero-image,
    .section-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .hero-image,
    .section-image {
        transition: none;
    }
    
    .section-image[loading="lazy"] {
        animation: none;
        background: #f0f4f8;
    }
}

/* Image Container for Future Additions */
.image-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* Overlay for Future Interactive Elements */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(37, 99, 235, 0);
    transition: background 0.3s ease;
    pointer-events: none;
}

.image-container:hover .image-overlay {
    background: rgba(37, 99, 235, 0.05);
}