/* Основной контейнер таблицы лидеров */
.leaders-table-container {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #34495e;
}

.leaders-table {
    width: 100%;
    border-collapse: collapse;
    color: #ecf0f1;
}

.leaders-table th {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #ff6b00;
}

.leaders-table td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid #2c3e50;
    transition: background-color 0.3s ease;
}

.leaders-table tr:last-child td {
    border-bottom: none;
}

.leaders-table tr:hover td {
    background: rgba(255, 107, 0, 0.1);
}

.leader-row.first-place {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 107, 0, 0.05));
}

.leader-row.first-place td {
    border-left: 3px solid #ffd700;
    font-weight: bold;
}

.leader-place {
    width: 50px;
    color: #ff6b00;
    font-weight: bold;
    font-size: 0.9rem;
}

.leader-name {
    text-align: left;
    padding-left: 15px !important;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leader-rate {
    color: #27ae60;
    font-weight: bold;
}

.leader-kills {
    color: #e74c3c;
    font-weight: bold;
}

.leader-lockpick {
    color: #9b59b6;
    font-weight: bold;
}

.leader-money {
    color: #f1c40f;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.no-leaders {
    color: #7f8c8d;
    text-align: center;
    padding: 30px !important;
}

.no-leaders i {
    display: block;
    margin-bottom: 10px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .leaders-table-container {
        overflow-x: auto;
    }

    .leaders-table {
        min-width: 600px;
    }

    .leaders-table th,
    .leaders-table td {
        padding: 8px 4px;
        font-size: 0.8rem;
    }

    .leader-name {
        max-width: 100px;
        padding-left: 8px !important;
    }

    .game-title {
        font-size: 2rem;
    }

    .season-header {
        flex-direction: column;
        text-align: center;
    }

    .status-badge {
        margin: 10px 0 0 0;
    }

    .row {
        flex-direction: column;
    }

    .col-md-6 {
        width: 100%;
    }

    .meta-grid {
        grid-template-columns: 1fr;
    }

    .wipe-badges {
        justify-content: center;
    }

    .season-info, .leaders-section {
        margin-bottom: 20px;
    }

    .info-grid, .events-grid {
        grid-template-columns: 1fr;
    }

    .leaders-header, .leader-row {
        grid-template-columns: 50px 1fr 70px 70px;
        gap: 10px;
    }

    .season-detail {
        padding: 15px;
    }
}

/* Анимации */
@keyframes highlight {
    0% { background-color: rgba(255, 215, 0, 0.3); }
    100% { background-color: transparent; }
}

.leader-row.new-highlight {
    animation: highlight 2s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes featureSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Иконки для заголовков */
.leaders-table th::before {
    margin-right: 5px;
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

.leader-place::before { content: '🏆'; }
.leader-name::before { content: '👤'; }
.leader-rate::before { content: '⭐'; }
.leader-kills::before { content: '⚔️'; }
.leader-lockpick::before { content: '🔓'; }
.leader-money::before { content: '💵'; }

/* Карточки лидеров */
.leaders-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.leader-card {
    background: #1a1a1a;
    border: 1px solid #34495e;
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.leader-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.leader-card.first-place {
    border: 2px solid #ffd700;
    background: linear-gradient(135deg, #1a1a1a, #2c3e50);
}

.leader-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #2c3e50;
}

.leader-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
}

.stat-label {
    color: #bdc3c7;
    font-size: 0.8rem;
}

.stat-value {
    font-weight: bold;
}

/* Заголовки и общие стили */
.game-title {
    font-family: 'Arial', sans-serif;
    font-size: 2.5rem;
    color: #ff6b00;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.trimester-header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.trimester-title {
    color: #ecf0f1;
    margin: 0;
    font-size: 1.5rem;
}

.season-card {
    border: 2px solid #34495e;
    border-radius: 8px;
    overflow: hidden;
}

.season-header {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    padding: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.season-title {
    color: #ecf0f1;
    margin: 0;
    flex-grow: 1;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.status-active {
    background: linear-gradient(135deg, #00b09b 0%, #96c93d 100%);
    color: white;
    animation: pulse 2s infinite;
}

.status-future {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    animation: blink 3s infinite;
}

.status-past {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: white;
}

.status-unknown {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
}

.status-ended {
    background: #7f8c8d;
    color: white;
}

.status-active::before { content: '⚡ '; }
.status-future::before { content: '⏳ '; }
.status-past::before { content: '✅ '; }
.status-unknown::before { content: '❓ '; }

.toggle-icon {
    color: #ecf0f1;
    font-size: 1.2rem;
}

.season-content {
    padding: 20px;
    background: #1a1a1a;
}

.info-item {
    margin-bottom: 15px;
    color: #bdc3c7;
}

.season-description {
    color: #95a5a6;
    line-height: 1.6;
}

.season-image img {
    border-radius: 8px;
    border: 2px solid #34495e;
}

.grayscale {
    filter: grayscale(100%);
    opacity: 0.7;
}

.events-section h4 {
    color: #ff6b00;
    margin-bottom: 10px;
}

.events-list {
    list-style: none;
    padding: 0;
}

.events-list li {
    color: #bdc3c7;
    padding: 5px 0;
    border-bottom: 1px solid #34495e;
}

.events-list li::before {
    content: "•";
    color: #ff6b00;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.leaders-section h4 {
    color: #ff6b00;
    margin-bottom: 15px;
}

.leaders-list {
    background: #2c3e50;
    border-radius: 8px;
    padding: 15px;
}

.leader-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #34495e;
    color: #ecf0f1;
}

.leader-item:last-child {
    border-bottom: none;
}

.leader-place {
    color: #ff6b00;
    font-weight: bold;
    min-width: 40px;
}

.leader-name {
    flex-grow: 1;
    margin: 0 15px;
}

.leader-score {
    color: #27ae60;
    font-weight: bold;
}

.season-meta-info {
    background: #1a1a1a;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #ff6b00;
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #e9ecef;
}

.meta-label {
    font-weight: bold;
    color: #6c757d;
}

.meta-value {
    color: #ff6b00;
}

.wipe-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.wipe-badges .badge {
    font-size: 0.75rem;
    padding: 4px 8px;
}

.badge {
    display: inline-block;
    min-width: 10px;
    padding: 3px 7px;
    font-size: 12px;
    font-weight: bold;
    color: #a70707;
    line-height: 1;
    vertical-align: baseline;
    white-space: nowrap;
    text-align: center;
    background-color: #777777;
    border-radius: 10px;
}

.badge:empty {
    display: none;
}

.bg-primary {
    color: #fff;
    background-color: #428bca;
}

a.bg-primary:hover {
    background-color: #3071a9;
}

.bg-success {
    background-color: #dff0d8;
}

a.bg-success:hover {
    background-color: #c1e2b3;
}

.bg-info {
    background-color: #d9edf7;
}

a.bg-info:hover {
    background-color: #afd9ee;
}

.bg-warning {
    background-color: #fcf8e3;
}

a.bg-warning:hover {
    background-color: #f7ecb5;
}

.bg-danger {
    background-color: #f2dede;
}

a.bg-danger:hover {
    background-color: #e4b9b9;
}

.bg-purple {
    background-color: #6f42c1;
}

.text-success { color: #28a745 !important; }
.text-secondary { color: #6c757d !important; }

/* Hover-эффекты */
.season-header:hover {
    background: linear-gradient(135deg, #3c566e, #2c3e50);
}

.leader-item:hover {
    background: rgba(255, 107, 0, 0.1);
    border-radius: 4px;
}

/* Фичи */
.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

.feature-card {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border: 1px solid #465c7a;
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    min-width: 80px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: featureSlideIn 0.5s ease forwards;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 0, 0.2), transparent);
    transition: left 0.6s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 107, 0, 0.3);
    border-color: #ff6b00;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
    margin-bottom: 5px;
}

.feature-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.feature-name {
    font-size: 0.7rem;
    color: #ecf0f1;
    font-weight: 600;
    line-height: 1.2;
}

.feature-param {
    font-size: 0.6rem;
    color: #ff6b00;
    background: rgba(255, 107, 0, 0.1);
    border-radius: 3px;
    padding: 1px 4px;
    font-weight: bold;
}

.no-features {
    padding: 15px;
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
}

.feature-placeholder {
    font-size: 0.9rem;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

.feature-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.feature-card:hover .feature-tooltip {
    opacity: 1;
}

/* Общие компоненты */
.card {
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-radius: 12px;
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    font-weight: 600;
}

.form-control {
    border-radius: 8px;
    border: 1px solid #e1e5e9;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #ff6b00;
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 0, 0.25);
}

.btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.table th {
    border-top: none;
    font-weight: 600;
    color: #2c3e50;
}

.badge-warning {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
}

.badge-info {
    background: linear-gradient(135deg, #17a2b8, #6cb2eb);
}

.delete-leader {
    transition: all 0.3s ease;
}

.delete-leader:hover {
    transform: scale(1.1);
    background-color: #dc3545;
    color: white;
}

/* Детальная страница сезона */
.season-detail {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 30px;
    border: 3px solid #34495e;
}

.large-badge {
    font-size: 1.2rem;
    padding: 8px 20px;
}

.season-info-card {
    background: #2c3e50;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.info-section h3, .description-section h3, .events-section h3 {
    color: #ff6b00;
    border-bottom: 2px solid #34495e;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.info-item {
    color: #bdc3c7;
    padding: 8px;
    background: rgba(52, 73, 94, 0.5);
    border-radius: 5px;
}

.season-banner {
    width: 100%;
    border-radius: 8px;
    border: 3px solid #34495e;
}

.events-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.event-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: rgba(52, 73, 94, 0.5);
    border-radius: 5px;
    color: #bdc3c7;
}

.event-icon {
    margin-right: 10px;
    font-size: 1.2rem;
}

.leaders-board {
    background: #2c3e50;
    border-radius: 10px;
    padding: 20px;
}

.leaders-header {
    display: grid;
    grid-template-columns: 60px 1fr 80px 80px;
    gap: 15px;
    padding: 15px;
    background: #34495e;
    border-radius: 5px;
    font-weight: bold;
    color: #ff6b00;
}

.leader-row {
    display: grid;
    grid-template-columns: 60px 1fr 80px 80px;
    gap: 15px;
    padding: 12px 15px;
    border-bottom: 1px solid #34495e;
    color: #ecf0f1;
    align-items: center;
    animation: cardAppear 0.6s ease forwards;
}

.leader-row:hover {
    background: rgba(255, 107, 0, 0.1);
}

.leader-row.first-place {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 107, 0, 0.1));
    border: 2px solid #ffd700;
}

.leader-score {
    color: #27ae60;
    font-weight: bold;
}

.no-leaders {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

/* Новые карточки лидеров */
.leaders-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.leader-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
    border: 1px solid #34495e;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.leader-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 0, 0.1), transparent);
    transition: left 0.6s ease;
}

.leader-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.3);
    border-color: #ff6b00;
}

.leader-card:hover::before {
    left: 100%;
}

.leader-place {
    background: linear-gradient(135deg, #ff6b00, #ff8c00);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8rem;
    min-width: 40px;
    text-align: center;
}

.leader-name {
    color: #ecf0f1;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: right;
    flex: 1;
    margin-left: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leader-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid rgba(52, 73, 94, 0.5);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-icon {
    font-size: 1.1rem;
    width: 25px;
    text-align: center;
}

.stat-value {
    color: #ecf0f1;
    font-weight: bold;
    font-size: 0.9rem;
    text-align: right;
}

.leader-money .stat-value {
    color: #f1c40f;
    font-family: 'Courier New', monospace;
}

.leader-rate .stat-value {
    color: #27ae60;
}

.leader-kills .stat-value {
    color: #e74c3c;
}

.leader-lockpick .stat-value {
    color: #9b59b6;
}

.no-leaders-card {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
    background: #1a1a1a;
    border: 2px dashed #34495e;
    border-radius: 12px;
}

.no-leaders-card i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ff6b00;
}

.no-leaders-card p {
    margin: 0;
    font-size: 1.1rem;
}

.years-navigation .btn-group {
    flex-wrap: wrap;
    gap: 5px;
}

.years-navigation .btn {
    border-radius: 20px;
    min-width: 60px;
    font-weight: 600;
}

/* Адаптивность карточек */
@media (max-width: 1200px) {
    .leaders-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .leaders-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .leader-card {
        padding: 15px;
    }

    .leader-name {
        font-size: 0.8rem;
    }

    .stat-value {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .leaders-grid {
        grid-template-columns: 1fr;
    }
}

.leader-card:nth-child(1) { animation-delay: 0.1s; }
.leader-card:nth-child(2) { animation-delay: 0.2s; }
.leader-card:nth-child(3) { animation-delay: 0.3s; }
.leader-card:nth-child(4) { animation-delay: 0.4s; }
.leader-card:nth-child(5) { animation-delay: 0.5s; }
.leader-card:nth-child(6) { animation-delay: 0.6s; }
.leader-card:nth-child(7) { animation-delay: 0.7s; }
.leader-card:nth-child(8) { animation-delay: 0.8s; }