/* Файл: dotascore/static/css/home_styles.css */
/* Стили для главной страницы с новостями */

/* ========================================================= */
/* БАЗОВЫЕ СТИЛИ */
/* ========================================================= */

h1 {
    text-align: center;
    color: #f0f8ff;
    margin-bottom: 40px;
    text-transform: none;
    letter-spacing: 1px;
    font-family: 'Roboto', sans-serif;
    font-size: 2.5em;
    font-weight: 300;
    text-shadow: 0 0 4px rgba(0, 255, 255, 0.5);
}

/* ========================================================= */
/* СЕКЦИЯ НОВОСТЕЙ */
/* ========================================================= */

.news-section {
    margin-bottom: 60px;
}

.news-section-title {
    color: #f0f8ff;
    font-size: 1.8em;
    font-weight: 400;
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 1px;
    text-shadow: 0 0 3px rgba(0, 255, 255, 0.4);
}

.guild-section .news-section-title {
    color: #98ff98;
    text-shadow: 0 0 3px rgba(152, 255, 152, 0.4);
}

/* ========================================================= */
/* КОНТЕЙНЕР СЛАЙДЕРА */
/* ========================================================= */

.news-slider-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 60px;
}

.news-slider {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.news-slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================================= */
/* КАРТОЧКИ НОВОСТЕЙ */
/* ========================================================= */

.news-card {
    min-width: 100%;
    background: linear-gradient(135deg, #1a1f2e 0%, #2d3748 100%);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 450px;
}

.news-card-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

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

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

.news-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
}

.news-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-card-title {
    color: #ffffff;
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}

.news-card-description {
    color: #b3b3b3;
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.news-card-date {
    color: #00FFFF;
    font-size: 0.85em;
    font-weight: 500;
}

.news-card-source {
    color: #98ff98;
    font-size: 0.85em;
    font-weight: 500;
}

.news-card-link {
    display: inline-block;
    color: #4299e1;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 6px;
    background: rgba(66, 153, 225, 0.1);
    align-self: flex-start;
}

.news-card-link:hover {
    color: #63b3ed;
    background: rgba(66, 153, 225, 0.2);
    transform: translateX(5px);
}

/* Стили для карточек гильдии */
.guild-card {
    background: linear-gradient(135deg, #1a2e1f 0%, #2d4837 100%);
}

.guild-card .news-card-link {
    color: #98ff98;
    background: rgba(152, 255, 152, 0.1);
}

.guild-card .news-card-link:hover {
    color: #b8ffb8;
    background: rgba(152, 255, 152, 0.2);
}

/* ========================================================= */
/* НАВИГАЦИЯ СЛАЙДЕРА */
/* ========================================================= */

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(66, 153, 225, 0.9);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.slider-nav:hover {
    background: rgba(99, 179, 237, 1);
    transform: translateY(-50%) scale(1.1);
}

.slider-nav:disabled {
    background: rgba(100, 100, 100, 0.5);
    cursor: not-allowed;
    opacity: 0.5;
}

.slider-nav:disabled:hover {
    transform: translateY(-50%) scale(1);
}

.slider-nav-prev {
    left: 0;
}

.slider-nav-next {
    right: 0;
}

/* Кнопки для гильдии */
.guild-section .slider-nav {
    background: rgba(152, 255, 152, 0.9);
}

.guild-section .slider-nav:hover {
    background: rgba(184, 255, 184, 1);
}

/* ========================================================= */
/* ИНДИКАТОРЫ СЛАЙДОВ */
/* ========================================================= */

.slider-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.slider-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-indicator:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.slider-indicator.active {
    background: #4299e1;
    width: 32px;
    border-radius: 6px;
}

.guild-section .slider-indicator.active {
    background: #98ff98;
}

/* ========================================================= */
/* АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ (≤ 600px) */
/* ========================================================= */

@media (max-width: 600px) {
    h1 {
        font-size: 1.8em;
        margin-bottom: 25px;
    }
    
    .leaderboard { 
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .news-section {
        margin-bottom: 40px;
    }
    
    .news-section-title {
        font-size: 1.4em;
        margin-bottom: 20px;
    }
    
    /* Убираем паддинг для кнопок на мобильных */
    .news-slider-container {
        padding: 0 50px;
    }
    
    /* Карточка меньше */
    .news-card {
        height: auto;
        min-height: 400px;
    }
    
    .news-card-image-container {
        height: 180px;
    }
    
    .news-card-content {
        padding: 20px;
    }
    
    .news-card-title {
        font-size: 1.2em;
        margin-bottom: 10px;
    }
    
    .news-card-description {
        font-size: 0.9em;
        margin-bottom: 12px;
    }
    
    .news-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    /* Навигация меньше */
    .slider-nav {
        width: 38px;
        height: 38px;
        font-size: 1.6em;
    }
    
    .slider-nav-prev {
        left: 6px;
    }
    
    .slider-nav-next {
        right: 6px;
    }
    
    /* Индикаторы меньше */
    .slider-indicator {
        width: 10px;
        height: 10px;
    }
    
    .slider-indicator.active {
        width: 24px;
    }
    
    /* Поддержка свайпов на мобильных */
    .news-slider {
        touch-action: pan-y pinch-zoom;
    }
}

/* ========================================================= */
/* АДАПТИВНОСТЬ ДЛЯ ПЛАНШЕТОВ (601px - 1024px) */
/* ========================================================= */

@media (min-width: 601px) and (max-width: 1024px) {
    .news-slider-container {
        max-width: 700px;
    }
    
    .news-card {
        height: 420px;
    }
    
    .news-card-image-container {
        height: 220px;
    }
}