/* Объединенные стили для главной страницы */

/* Объединенная секция контента */
.unified-content-section {
    padding: 80px 20px;
    background: transparent;
    min-height: 100vh;
    position: relative;
}

.unified-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

/* Секция чемпионов */
.champions-section {
    background: transparent;
    padding: 40px;
}

/* Секция новостей */
.news-section {
    background: transparent;
    padding: 40px;
}

/* Заголовки секций - стили определены в homestyles.css, чтобы избежать конфликтов */

/* Сетка чемпионов */
.champions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    justify-items: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Карточки чемпионов */
.champion-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

.champion-card-link:hover {
    transform: scale(1.05);
}

.champion-card {
    background: transparent !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    border: none !important;
    position: relative !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-shadow: none !important;
    width: 200px !important;
    height: 200px !important;
    min-width: 200px !important;
    max-width: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
    aspect-ratio: 1 / 1 !important; /* Гарантируем квадрат */
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Убираем градиентный ободок */
.champion-card::before {
    display: none !important;
    content: none !important;
}

.champion-card:hover::before {
    display: none !important;
}

.champion-image {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
    aspect-ratio: 1 / 1 !important; /* Гарантируем квадрат */
    border-radius: 50% !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
}

.champion-image img {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
    aspect-ratio: 1 / 1 !important; /* Гарантируем квадрат */
    object-fit: cover !important;
    object-position: center !important;
    transition: transform 0.3s ease !important;
    border-radius: 50% !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
}

.champion-card:hover .champion-image img {
    transform: scale(1.1);
}

.champion-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.champion-card:hover .champion-overlay {
    opacity: 1;
}

.champion-badge {
    font-size: 2rem;
    margin-bottom: 10px;
    animation: pulse 2s infinite;
}

.champion-rank {
    color: #ffffff;
    font-weight: bold;
    font-size: 1.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.champion-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 20px 15px 15px;
    text-align: center;
}

.champion-header h3 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.champion-sport {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 300;
}

/* Сетка новостей */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

/* Карточки новостей */
.news-card {
    background: transparent;
    border-radius: 15px;
    overflow: hidden;
    border: none;
    transition: all 0.3s ease;
    box-shadow: none;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.news-content {
    padding: 25px;
}

.news-content h3 {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.news-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.news-author {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 300;
}

.read-more {
    color: #4ecdc4;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #45b7d1;
    text-decoration: underline;
}

/* Анимации */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Адаптивность */
@media (max-width: 768px) {
    .unified-container {
        gap: 40px;
    }
    
    .champions-section,
    .news-section {
        padding: 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .champions-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .champion-card {
        width: 150px;
        height: 150px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .unified-content-section {
        padding: 40px 10px;
    }
    
    .champions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .champion-card {
        width: 120px;
        height: 120px;
    }
}