/* public_division_detail.css */

/* Цветовые классы */
.text-bronze {
    color: #cd7f32 !important;
}

/* Стили для логотипов команд */
.team-logo-tiny {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 3px;
    border: 1px solid #495057;
    background: #343a40;
    padding: 1px;
}

.team-logo-medium {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 6px;
    border: 2px solid #495057;
    background: #343a40;
    padding: 3px;
}

.team-logo-placeholder-tiny {
    width: 24px;
    height: 24px;
    background: #495057;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #6c757d;
    font-size: 0.7rem;
    color: #6c757d;
}

.team-logo-placeholder-medium {
    width: 60px;
    height: 60px;
    background: #495057;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #6c757d;
    font-size: 1.2rem;
    color: #6c757d;
}

/* Стили таблиц */
.table th {
    border-bottom: 1px solid #495057;
    font-weight: 600;
    font-size: 0.8rem;
}

.table td {
    vertical-align: middle;
    font-size: 0.85rem;
}

.team-row {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #495057;
}

    .team-row:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        border-color: #6c757d;
        background-color: #495057 !important;
    }

/* Карточки игроков */
.player-card {
    border: 1px solid #495057;
    border-radius: 6px;
    padding: 8px;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.05);
}

    .player-card:hover {
        border-color: #6c757d;
        background: rgba(255, 255, 255, 0.1);
    }

.jersey-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #0d6efd;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* Статистические элементы */
.stat-item {
    padding: 8px;
    border-radius: 6px;
    background: rgba(255,255,255,0.05);
    font-size: 0.85rem;
}

.alert-info {
    background: rgba(13,110,253,0.1);
    border: 1px solid rgba(13,110,253,0.3);
    color: #6ea8fe;
    font-size: 0.85rem;
}

.alert-warning {
    background: rgba(255,193,7,0.1);
    border: 1px solid rgba(255,193,7,0.3);
    color: #ffda6a;
    font-size: 0.85rem;
}

/* Элементы матчей */
.match-item {
    border: 1px solid #495057;
    transition: all 0.2s ease;
}

    .match-item:hover {
        border-color: #6c757d;
        background-color: #495057 !important;
        cursor: pointer;
    }

.team-name {
    font-size: 0.8rem;
    line-height: 1.2;
}

.player-stats {
    min-width: 100px;
    text-align: right;
}

.stats-icons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

    .stats-icons small {
        font-size: 0.75rem;
        white-space: nowrap;
    }

.no-stats {
    font-size: 0.7rem;
    color: #6c757d;
}

.match-header {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid #495057;
}

/* События матча */
.event-item {
    border-left: 3px solid #495057;
    padding-left: 15px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

    .event-item:hover {
        border-left-color: #6c757d;
        background: rgba(255,255,255,0.02);
    }

.event-goal {
    border-left-color: #198754;
}

.event-yellow {
    border-left-color: #ffc107;
}

.event-red {
    border-left-color: #dc3545;
}

.event-assist {
    border-left-color: #0dcaf0;
}

.event-minute {
    font-weight: bold;
    color: #6ea8fe;
}

/* Стили для трансферов */
.transfer-item {
    border: 1px solid #495057;
    transition: all 0.2s ease;
}

    .transfer-item:hover {
        border-color: #6c757d;
        background-color: #495057 !important;
    }

.transfer-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.transfer-arrow {
    color: #ffc107;
}

/* Стили для вкладок */
.nav-tabs .nav-link {
    color: #6c757d;
    border: none;
    font-size: 0.9rem;
}

    .nav-tabs .nav-link.active {
        color: #fff;
        background: transparent;
        border-bottom: 2px solid #0d6efd;
    }

.nav-pills .nav-link {
    color: #6c757d;
    border: 1px solid #495057;
    margin-right: 5px;
    margin-bottom: 5px;
    font-size: 0.85rem;
}

    .nav-pills .nav-link.active {
        background-color: #0d6efd;
        border-color: #0d6efd;
        color: #fff;
    }

/* Стили для статистики */
.stats-table th {
    border-bottom: 1px solid #495057;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 8px 12px;
}

.stats-table td {
    vertical-align: middle;
    font-size: 0.85rem;
    padding: 8px 12px;
}

.stats-table tr:hover {
    background-color: #495057 !important;
}

/* Стили для расписания */
.match-card {
    border: 1px solid #495057;
    transition: all 0.3s ease;
}

    .match-card:hover {
        border-color: #6c757d;
        box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
    }

    .match-card.live {
        border-color: #ffc107;
        background: rgba(255, 193, 7, 0.05);
    }

    .match-card.completed {
        border-color: #198754;
        background: rgba(25, 135, 84, 0.05);
    }

    .match-card.completed_technical {
        border-color: #dc3545;
        background: rgba(220, 53, 69, 0.05);
    }

    .match-card.postponed {
        border-color: #ffc107;
        background: rgba(255, 193, 7, 0.1);
    }

    .match-card.cancelled {
        border-color: #dc3545;
        background: rgba(220, 53, 69, 0.1);
        opacity: 0.8;
    }

.match-time {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px;
    border-radius: 4px;
    min-width: 50px;
}

.score-display {
    min-height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Адаптивные стили */
@media (max-width: 768px) {
    .player-card {
        font-size: 0.8rem;
    }

    .player-stats {
        min-width: 80px;
    }

    .stats-icons {
        gap: 4px;
    }

        .stats-icons small {
            font-size: 0.65rem;
        }

    .nav-tabs .nav-link {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }

    .nav-pills .nav-link {
        font-size: 0.75rem;
        padding: 0.2rem 0.2rem;
    }

    .match-time {
        min-width: 40px;
        font-size: 0.8rem;
    }

    .score-display {
        min-height: 40px;
    }
}
