﻿/* Layout */
body {
    scroll-behavior: smooth;
}

header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1000;
}

/* Анимация пульсации */
@keyframes pulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.7));
    }

    50% {
        transform: scale(1.08);
        filter: drop-shadow(0 0 6px rgba(255, 215, 0, 1));
    }

    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.7));
    }
}

/* Логотип */
.logo-img {
    height: 60px;
    filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.7));
    transition: all 0.3s ease;
    animation: pulse 2.5s infinite;
}

    .logo-img:hover {
        transform: scale(1.05) rotate(-2deg);
        filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.9));
    }

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .logo-title {
        font-size: 1.1rem;
    }

    .logo-img {
        height: 50px !important;
    }
}


/* Золотистый градиент для заголовка */
.logo-title {
    font-family: 'Trebuchet MS', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #FFD700, #FFAA00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 2px rgba(255,215,0,0.6);
}

    /* Эффект свечения при наведении */
    .logo-title:hover {
        text-shadow: 0 0 6px rgba(255,215,0,1);
        transition: text-shadow 0.3s ease-in-out;
    }

.language-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

    .language-switcher a {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid transparent;
        box-sizing: border-box;
        transition: transform 0.2s ease;
    }

        .language-switcher a:hover {
            transform: scale(1.05);
        }

        .language-switcher a.active {
            border-color: #fff;
            box-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
        }

    .language-switcher img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
        display: block;
    }


/* Index */
/* Стили для кнопки статистики */
.stats-button-wrapper {
    margin-top: 1.5rem;
    padding-top: 1rem;
    position: relative;
}

    .stats-button-wrapper::before {
        content: "";
        position: absolute;
        top: 0;
        left: 25%;
        right: 25%;
        height: 1px;
        background: rgba(0,0,0,0.1);
    }

.stats-button {
    background: #28a745;
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

    .stats-button:hover {
        background: #218838;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
        color: white;
    }



/* Стили для site/index */
section {
    padding-top: 3rem;
}

/* Добавляем отступы по бокам для контейнера */
.container {
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Фоновый градиент для секции героя */
.hero-section {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    color: white;
    padding: 4rem 0;
}

/* Градиентный текст с улучшенным эффектом */
.gradient-text {
    background: linear-gradient(45deg, #fff, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.countdown-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

/* Блоки обратного отсчёта */
.countdown-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .countdown-item .number {
        font-size: 2.5rem;
        font-weight: 700;
        line-height: 1;
    }

/* Эффект плавного увеличения */
.hover-zoom {
    transition: transform 0.3s ease-in-out;
}

    .hover-zoom:hover {
        transform: scale(1.05);
    }

/* Настройка изображений призов */
.prize-image {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .prize-image img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.prize-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
    animation: pulse 2s infinite;
}

@@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Новые стили для секции новостей */
.news-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

    .news-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    }

        .news-card:hover .card-img-top img {
            transform: scale(1.1);
        }

    .news-card .arrow-icon {
        width: 30px;
        height: 30px;
        background: linear-gradient(135deg, #6366f1, #a855f7);
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .news-card:hover .arrow-icon {
        transform: translateX(5px);
    }

.divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    margin: 1rem auto;
}

/* Анимация появления */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

    [data-aos="fade-up"].aos-animate {
        opacity: 1;
        transform: translateY(0);
    }

/* Градиент для фона */
.bg-gradient-primary {
    background: linear-gradient(135deg, #6366f1, #a855f7);
}


/* Стили для site/statistics */
.accordion-button::after {
    content: '\f078'; /* Font Awesome chevron-down */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: auto;
    transition: transform 0.3s ease;
    color: #fff;
}

.accordion-button:not(.collapsed)::after {
    transform: rotate(180deg);
}

.accordion-button:focus {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.accordion-item {
    border-radius: 0.5rem !important;
    overflow: hidden;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(0,0,0,.015);
}

.table-hover > tbody > tr:hover > * {
    background-color: rgba(0,0,0,.03) !important;
}

.badge {
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Адаптация для мобильных */
@@media (max-width: 767.98px) {
    .accordion-button {
        padding: 0.75rem;
    }

        .accordion-button h5 {
            font-size: 1rem;
        }

        .accordion-button small {
            font-size: 0.75rem;
        }

    .table {
        font-size: 0.85rem;
    }

        .table th, .table td {
            padding: 0.75rem 0.5rem;
        }

    .badge {
        font-size: 0.75rem;
        padding: 0.25em 0.4em;
    }

    .d-none.d-md-block {
        display: none !important;
    }
}