/* games/static/games/css/game_list.css */
/* ===== GAME LIST PAGE STYLES ===== */

/* Контейнер с играми */
.games-container {
    position: relative;
    min-height: 400px;
    width: 100%;
}

/* ===== ИНДИКАТОР ЗАГРУЗКИ ===== */
/* Показывается при классе loading-visible на контейнере */

.games-container.loading-visible {
    position: relative;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    margin: 20px 0;
    padding: 20px 0;
}

/* Скрываем сетку игр при загрузке */
.games-container.loading-visible .row {
    display: none !important;
    margin: 0;
    padding: 0;
}

/* Спиннер */
.games-container.loading-visible::before {
    content: '';
    display: block;
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 107, 53, 0.2);
    border-top-color: var(--secondary-color, #ff6b35);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    position: relative;
    margin: 0;
}

/* Скрываем текст загрузки */
.games-container.loading-visible .loading-text {
    display: none !important;
}

/* Анимация спиннера */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== ЗАГОЛОВОК СТРАНИЦЫ ===== */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-light), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Текст под заголовком */
.text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 1.1rem;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .text-muted {
        font-size: 1rem;
    }

    .games-container.loading-visible::before {
        width: 40px;
        height: 40px;
        border-width: 3px;
    }

    .games-container.loading-visible .loading-text {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }

    .games-container {
        min-height: 300px;
    }

    .games-container.loading-visible::before {
        width: 35px;
        height: 35px;
        border-width: 3px;
    }

    .games-container.loading-visible .loading-text {
        font-size: 0.9rem;
    }
}

/* Быстрая анимация для загрузки из кэша */
.games-container.cache-load .row {
    animation: cacheFadeIn 0.15s ease;
}

@keyframes cacheFadeIn {
    from { opacity: 0.8; }
    to { opacity: 1; }
}