/* ============================================
   IMAGES STYLES - SEO OPTIMIZED
   ============================================ */

img {max-width: 100%;height: auto;}

/* Общие стили для всех изображений */
.article-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
}

.article-image:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Hero image в header */
.hero-image {
    width: 100%;
    max-width: 1200px;
    height: auto;
    margin: 2rem auto 0;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-image:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

/* Контейнер для изображений с подписью */
.image-container {
    position: relative;
    margin: 2.5rem 0;
    text-align: center;
}

.image-wrapper {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

/* Статистики и анализ */
.stats-image {
    max-width: 800px;
    margin: 2rem auto;
    display: block;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.stats-image:hover {
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.2);
    transform: translateY(-6px);
}

/* Критерии изображение */
.criteria-image {
    max-width: 1000px;
    margin: 3rem auto 2rem;
    display: block;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.criteria-image:hover {
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.15);
}

/* Value bet изображение */
.value-bet-image {
    max-width: 800px;
    margin: 2rem auto;
    display: block;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    background: var(--bg-card);
    padding: 1rem;
    transition: all 0.3s ease;
}

.value-bet-image:hover {
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.2);
    transform: scale(1.02);
}

/* Champions League изображение */
.ucl-image {
    max-width: 900px;
    margin: 2rem auto;
    display: block;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(30, 64, 175, 0.3);
    transition: all 0.4s ease;
}

.ucl-image:hover {
    box-shadow: 0 20px 50px rgba(30, 64, 175, 0.4);
    transform: translateY(-8px) scale(1.01);
}

/* Ошибки изображение */
.errors-image {
    max-width: 800px;
    margin: 2rem auto;
    display: block;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.errors-image:hover {
    border-color: #ef4444;
    box-shadow: 0 12px 28px rgba(239, 68, 68, 0.2);
}

/* Эффект загрузки (skeleton) */
.image-loading {
    background: linear-gradient(
        90deg,
        var(--bg-secondary) 25%,
        var(--bg-card) 50%,
        var(--bg-secondary) 75%
    );
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Подпись к изображению */
.image-caption {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero-image {
        margin: 1.5rem auto 0;
        border-radius: var(--radius-md);
    }
    
    .article-image,
    .stats-image,
    .criteria-image,
    .value-bet-image,
    .ucl-image,
    .errors-image {
        margin: 1.5rem 0;
        border-radius: var(--radius-md);
    }
    
    .value-bet-image {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .article-image {
        border-radius: var(--radius-sm);
        margin: 1rem 0;
    }
    
    .hero-image:hover,
    .stats-image:hover,
    .criteria-image:hover,
    .value-bet-image:hover,
    .ucl-image:hover,
    .errors-image:hover {
        transform: none;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .article-image,
    .hero-image,
    .stats-image,
    .criteria-image,
    .value-bet-image,
    .ucl-image,
    .errors-image {
        transition: none;
    }
    
    .article-image:hover,
    .hero-image:hover,
    .stats-image:hover,
    .criteria-image:hover,
    .value-bet-image:hover,
    .ucl-image:hover,
    .errors-image:hover {
        transform: none;
    }
}

/* Dark mode оптимизация */
@media (prefers-color-scheme: dark) {
    .article-image,
    .stats-image,
    .criteria-image,
    .value-bet-image,
    .ucl-image,
    .errors-image {
        opacity: 0.95;
    }
    
    .article-image:hover,
    .stats-image:hover,
    .criteria-image:hover,
    .value-bet-image:hover,
    .ucl-image:hover,
    .errors-image:hover {
        opacity: 1;
    }
}

/* Print стили */
@media print {
    .article-image,
    .hero-image,
    .stats-image,
    .criteria-image,
    .value-bet-image,
    .ucl-image,
    .errors-image {
        box-shadow: none;
        border: 1px solid #000;
        page-break-inside: avoid;
    }
}