/* Современный спортивный дизайн для турнирного табло */

/* Стили для body применяются только на странице scoreboard */
.scoreboard-page body,
body.scoreboard-page {
    background: linear-gradient(135deg, #000000, #22009f, #d10000);
    margin: 0;
    padding: 0;
    color: white;
    font-family: 'Open Sans', sans-serif;
    min-height: 100vh;
}

.scoreboard-container {
    max-width: 1400px;
    margin: 100px auto 0;
    padding: 30px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Заголовок страницы */
.scoreboard-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.scoreboard-header h1 {
    font-family: 'Teko', sans-serif;
    font-size: 4rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.scoreboard-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    letter-spacing: 1px;
}

/* Табы навигации */
.tournament-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.tab-btn:focus {
    outline: 3px solid rgba(78, 205, 196, 0.8);
    outline-offset: 3px;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.tab-btn:hover::before {
    left: 100%;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.tab-btn.active {
    background: #007bff;
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.3);
    transform: translateY(-2px);
}

/* Контент табов */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

.tab-content[aria-hidden="true"] {
    display: none;
}

.tab-content[aria-hidden="false"] {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Сетка матчей */
.scoreboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Ссылки на карточки матчей */
.match-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Карточки матчей */
.match-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.match-card-link:hover .match-card,
.match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.match-card-link:focus {
    outline: 3px solid rgba(78, 205, 196, 0.8);
    outline-offset: 3px;
    border-radius: 15px;
}



/* Заголовок матча */
.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.match-status {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.match-status.upcoming,
.match-status.completed {
    text-transform: uppercase;
}

.match-status.live {
    background: #007bff;
    color: white;
}

.match-status.upcoming {
    background: #6c757d;
    color: white;
}

.match-status.completed {
    background: #28a745;
    color: white;
}



.match-time {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

/* Участники матча */
.match-participants {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 20px;
}

.participant {
    flex: 1;
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.participant:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
}

.participant-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: white;
}

.participant-score {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.participant-score.winner {
    color: #ff6b6b;
    text-shadow: 0 0 15px rgba(255, 107, 107, 0.7);
    animation: winnerGlow 2s infinite;
}

@keyframes winnerGlow {
    0%, 100% { text-shadow: 0 0 15px rgba(255, 107, 107, 0.7); }
    50% { text-shadow: 0 0 25px rgba(255, 107, 107, 1); }
}

.vs {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Информация о матче */
.match-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    row-gap: 6px;
    column-gap: 10px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.match-stage {
    flex: 0 0 100%;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 214, 140, 0.95);
    text-shadow: 0 0 8px rgba(255, 200, 100, 0.25);
}

.tournament-name {
    font-weight: 600;
    color: #4ecdc4;
}

.weight-category {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.match-weight-line,
.match-mat-line {
    flex: 0 0 100%;
    font-size: 0.82rem;
    line-height: 1.35;
}
.match-weight-line {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 500;
}
.match-mat-line {
    color: rgba(180, 220, 255, 0.92);
}

/* Сообщения об отсутствии матчей */
.no-matches {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
}

.no-matches i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
}

.no-matches h3 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 10px;
    font-weight: 600;
}

.no-matches p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

/* Расписание турниров */
.tournament-schedule {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
}

.tournament-schedule h3 {
    font-family: 'Teko', sans-serif;
    font-size: 2rem;
    color: white;
    margin-bottom: 25px;
    text-align: center;
}

.tournament-schedule h3 i {
    color: #4ecdc4;
    margin-right: 10px;
}

.schedule-list {
    display: grid;
    gap: 20px;
}

.schedule-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.schedule-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.15);
}

.schedule-date {
    text-align: center;
    margin-right: 20px;
    min-width: 80px;
}

.schedule-date .day {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #ff6b6b;
}

.schedule-date .month {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
}

.schedule-info {
    flex: 1;
}

.schedule-info h4 {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 8px;
}

.schedule-info p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.schedule-info i {
    color: #4ecdc4;
    margin-right: 8px;
}

.schedule-actions .btn {
    padding: 10px 20px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border: none;
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.schedule-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
}

/* Результаты */
.results-summary {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
}

.results-summary h3 {
    font-family: 'Teko', sans-serif;
    font-size: 2rem;
    color: white;
    margin-bottom: 25px;
    text-align: center;
}

.results-summary h3 i {
    color: #ffd700;
    margin-right: 10px;
}

.results-list {
    display: grid;
    gap: 20px;
}

.result-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.result-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
}

.result-tournament h4 {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 5px;
}

.result-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.result-winners {
    margin-top: 15px;
}

.winner-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.medal.gold {
    color: #ffd700;
    font-size: 1.5rem;
    text-shadow: 0 0 10px #ffd700;
}

.winner-name {
    font-weight: 600;
    color: white;
    flex: 1;
}

.weight {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Статистика внизу */
.live-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    margin-bottom: 10px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 500;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .scoreboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .scoreboard-container {
        margin: 80px 15px 0;
        padding: 20px;
    }
    
    .scoreboard-header h1 {
        font-size: clamp(2rem, 5vw, 2.5rem);
    }
    
    .scoreboard-subtitle {
        font-size: clamp(1rem, 3vw, 1.3rem);
    }
    
    .tournament-tabs {
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .tab-btn {
        padding: 12px 20px;
        font-size: clamp(0.9rem, 2.5vw, 1rem);
    }
    
    .scoreboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .match-participants {
        flex-direction: column;
        gap: 15px;
    }
    
    .vs {
        transform: rotate(90deg);
    }
    
    .participant-name {
        font-size: clamp(1rem, 3vw, 1.2rem);
    }
    
    .participant-score {
        font-size: clamp(2rem, 5vw, 2.5rem);
    }
    
    .schedule-item {
        flex-direction: column;
        text-align: center;
    }
    
    .schedule-date {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .live-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-number {
        font-size: clamp(2rem, 5vw, 3rem);
    }
}

@media (max-width: 480px) {
    .scoreboard-container {
        margin: 70px 10px 0;
        padding: 15px;
    }
    
    .scoreboard-header h1 {
        font-size: 2rem;
    }
    
    .tournament-tabs {
        gap: 8px;
    }
    
    .tab-btn {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    .match-card {
        padding: 15px;
    }
    
    .live-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
} 