﻿/* Schedule.css */

.page-content {
    background-color: #333; /* Непрозрачный фон контейнера */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

.standings-title {
    font-size: 2em;
    color: #fff;
    margin-bottom: 20px;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 10px; /* Расстояние между вкладками */
    margin-bottom: 20px;
}

.tab {
    background-color: #555;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.tab.active {
    background-color: #ff6600; /* Активная вкладка */
}

.tab:hover {
    background-color: #e65c00; /* Цвет при наведении */
}

.schedule {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 колонки на ПК */
    gap: 20px; /* Расстояние между карточками игр */
}

@media (max-width: 768px) {
    .schedule {
        grid-template-columns: 1fr; /* 1 колонка на мобильных устройствах */
    }
}

.game-card {
    background-color: #444; /* Фон карточки игры */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block; /* По умолчанию показываем все карточки */
}

.game-card.completed {
    opacity: 0.7; /* Прозрачность для завершённых игр */
}

.game-card:hover {
    transform: translateY(-5px); /* Эффект поднятия при наведении */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.game-card.hidden {
    display: none; /* Скрываем карточки с классом hidden */
}

.game-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.game-date, .game-group {
    font-size: 1.2em;
    color: #fff;
}

.game-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 15px;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-score, .versus {
    text-align: center;
    width: 100px; /* Фиксированная ширина для счета */
    margin: 0 auto;
    font-size: 1.5em;
    padding: 0 10px;
}

.game-score[data-bullits]::after {
    content: "Б";
    font-size: 0.7em;
    vertical-align: super;
    margin-left: 3px;
    color: #ff9900;
}

/* Стиль для технического поражения */
.game-score[data-tech]::after {
    content: "ТП";
    font-size: 0.7em;
    vertical-align: super;
    margin-left: 3px;
    color: #ff4444;
}

.team-logo {
    width: 50px;
    height: 50px;
    margin-bottom: 5px;
}

.team-name {
    font-size: 1.2em;
    color: #fff;
}

.game-score, .versus {
    font-size: 1.5em;
    color: #fff;
    font-weight: bold;
    align-items: center;
}

.score-match.upcoming .score span {
    color: #2ecc71;
    font-weight: bold;
}

.score-match.upcoming {
    border-left: 4px solid #2ecc71;
    background-color: rgba(46, 204, 113, 0.1);
}

/* Разделитель для плей-офф */
.playoff-divider {
	grid-column: 1 / -1;
	width: 100%;
    position: relative;
    margin: 40px 0;
    text-align: center;
    font-size: 24px;
    color: #ffffff;
    font-weight: bold;
    text-transform: uppercase;
}

.playoff-divider::before,
.playoff-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 30%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e74c3c, transparent);
}

.playoff-divider::before {
    left: 0;
}

.playoff-divider::after {
    right: 0;
}

.playoff-divider {
    animation: divider-appear 1s ease-out;
}

@keyframes divider-appear {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.game-card.playoff {
    border: 2px solid #e74c3c;
    border-radius: 8px;
    background: rgba(231, 76, 60, 0.05);
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .game-header {
        flex-direction: row; /* Горизонтальное расположение */
        justify-content: space-between; /* Распределение по краям */
        align-items: center;
        margin-bottom: 8px;
    }

    .game-date {
        text-align: left; /* Выравнивание даты слева */
        font-size: 0.9em;
    }

    .game-group {
        text-align: right; /* Выравнивание группы справа */
        font-size: 0.9em;
    }

    .game-teams {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 5px;
    }

    .team {
        flex-direction: column;
        flex: 1;
        max-width: 40%;
    }

    .game-score, .versus {
        flex: 0 0 auto;
        margin: 0 5px;
        font-size: 1.3em;
        padding: 3px 10px;
    }

    .team-logo {
        width: 55px;
        height: 55px;
    }

    .team-name {
        font-size: 0.8em;
        text-align: center;
        word-break: break-word;
    }
	
    .playoff-divider {
        font-size: 18px;
        margin: 30px 0;
    }
}