/* ============================================
   F1 WETTEN IMAGE STYLES
   Version: 1.0
   Last Updated: 2025
   ============================================ */

/* Logo Styles */
.site-logo {
    display: inline-block;
    width: 200px;
    height: 60px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.site-logo:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Hero Image Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    margin-bottom: 3rem;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.9);
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(225, 6, 0, 0.7) 0%,
        rgba(21, 21, 30, 0.8) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    padding: 2rem;
}

/* Stat Card Icons */
.stat-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: translateY(-5px) rotate(5deg);
    opacity: 1;
}

/* Section Images */
.section-image {
    width: 100%;
    max-width: 1200px;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(225, 6, 0, 0.15);
}

/* Team Images */
.team-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius);
    margin: 1.5rem 0;
    filter: saturate(1.1);
    transition: all 0.4s ease;
}

.team-image:hover {
    filter: saturate(1.3) contrast(1.1);
    transform: scale(1.02);
}

/* Strategy Images */
.strategy-image {
    width: 100%;
    max-width: 1200px;
    height: auto;
    margin: 2rem auto;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.strategy-image:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(225, 6, 0, 0.2);
}

/* Weather Images */
.weather-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 1.5rem auto;
    display: block;
    border-radius: var(--radius);
    opacity: 0.95;
    transition: opacity 0.3s ease;
}

.weather-image:hover {
    opacity: 1;
}

/* Infographic Styles */
.infographic {
    width: 100%;
    max-width: 1400px;
    height: auto;
    margin: 3rem auto;
    display: block;
    background: var(--bg-alt);
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

/* Mobile App Screenshot */
.mobile-screenshot {
    max-width: 400px;
    height: auto;
    margin: 2rem auto;
    display: block;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Background Pattern */
.pattern-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.02;
    pointer-events: none;
    z-index: -1;
    background-image: url('checkered-pattern-bg.png');
    background-repeat: repeat;
    background-size: 400px 400px;
}

/* Responsible Gaming Icon */
.responsible-icon {
    width: 120px;
    height: 120px;
    margin: 1rem auto;
    display: block;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.responsible-icon:hover {
    opacity: 1;
}

/* Image Gallery Grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.grid-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    cursor: pointer;
}

.grid-image:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Lazy Loading Placeholder */
.lazy-image {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive Images */
@media (max-width: 768px) {
    .hero-section {
        height: 400px;
    }
    
    .section-image,
    .team-image,
    .strategy-image {
        margin: 1rem 0;
    }
    
    .stat-icon {
        width: 48px;
        height: 48px;
    }
    
    .site-logo {
        width: 150px;
        height: 45px;
    }
    
    .image-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 300px;
    }
    
    .mobile-screenshot {
        max-width: 90%;
    }
}

/* Dark Mode Adjustments */
@media (prefers-color-scheme: dark) {
    .section-image,
    .team-image,
    .strategy-image {
        filter: brightness(0.9);
    }
    
    .section-image:hover,
    .team-image:hover,
    .strategy-image:hover {
        filter: brightness(1);
    }
}

/* Print Styles */
@media print {
    .hero-section,
    .pattern-bg,
    .mobile-screenshot {
        display: none;
    }
    
    .section-image,
    .team-image {
        max-width: 100%;
        page-break-inside: avoid;
    }
}

/* Accessibility Focus States */
.section-image:focus,
.team-image:focus,
.strategy-image:focus {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

/* Loading Animation for Images */
.image-loading {
    position: relative;
    overflow: hidden;
}

.image-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% { left: 100%; }
}