 /* ========================================
    IMAGE STYLES FOR DORTMUND WETTEN
======================================== */

/* Base Image Styles */
img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
}

/* Lazy Loading Placeholder */
img[loading="lazy"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Hero Image */
.hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius);
    /*margin: calc(var(--space-md));*/
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: scale(1.02);
}

/* Logo Styles */
.logo-bvb {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--space-md);
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.logo-bvb:hover {
    transform: rotate(360deg) scale(1.1);
}

/* Player Images */
.player-image {
    width: 100%;
    max-width: 600px;
    margin: var(--space-md) auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.player-image:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Stadium Images */
.stadium-image {
    width: 100%;
    border-radius: var(--radius);
    margin: var(--space-md) 0;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.stadium-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 70%, rgba(0,0,0,0.3));
    pointer-events: none;
}

/* Betting Provider Logos */
.provider-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
    padding: var(--space-md);
    background: var(--bg-secondary);
    border-radius: var(--radius);
}

.provider-logo {
    width: 150px;
    height: 50px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.provider-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Icon Styles */
.icon-small {
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
    margin-right: var(--space-xs);
}

.icon-medium {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-sm);
}

.icon-large {
    width: 96px;
    height: 96px;
    margin: 0 auto var(--space-md);
}

/* Statistical Graphics */
.stats-graphic {
    width: 100%;
    max-width: 800px;
    margin: var(--space-lg) auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    background: var(--bg-card);
    padding: var(--space-sm);
}

/* Mobile App Mockup */
.app-mockup {
    max-width: 300px;
    margin: 0 auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2));
    transition: transform 0.3s ease;
}

.app-mockup:hover {
    transform: rotate(-5deg) scale(1.05);
}

/* Trophy Images */
.trophy-image {
    width: 200px;
    height: auto;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 10px 20px rgba(255,215,0,0.3));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Warning Banner */
.warning-banner-image {
    width: 100%;
    max-width: 500px;
    margin: var(--space-lg) auto;
    border: 3px solid #ff6b6b;
    border-radius: var(--radius);
    padding: var(--space-xs);
}

/* Image Gallery Grid */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
    z-index: 10;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Social Media Icons */
.social-icons {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    margin: var(--space-md) 0;
}

.social-icon {
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
    filter: grayscale(50%);
}

.social-icon:hover {
    transform: translateY(-3px);
    filter: grayscale(0%) drop-shadow(0 4px 8px rgba(255,222,0,0.4));
}

/* Responsive Images */
@media (max-width: 768px) {
    .hero-image {
        height: 250px;
    }
    
    .player-image,
    .stadium-image {
        max-width: 100%;
    }
    
    .provider-logo {
        width: 120px;
        height: 40px;
    }
    
    .trophy-image {
        width: 150px;
    }
}

@media (max-width: 425px) {
    nav ul {
        padding: 0 0;
    }    
}

/* Dark Mode Adjustments */
@media (prefers-color-scheme: dark) {
    img {
        opacity: 0.9;
    }
    
    .provider-logo {
        filter: grayscale(100%) brightness(0.8);
    }
    
    .provider-logo:hover {
        filter: grayscale(0%) brightness(1);
    }
}

/* Print Styles */
@media print {
    .hero-image,
    .app-mockup,
    .social-icons {
        display: none;
    }
    
    .player-image,
    .stadium-image {
        max-width: 50%;
        page-break-inside: avoid;
    }
}

/* Accessibility */
img[alt] {
    border: 2px solid transparent;
}

img[alt]:focus {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* Loading States */
.image-loading {
    position: relative;
    background: var(--bg-secondary);
    min-height: 200px;
}

.image-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid var(--primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}