﻿/* ============================================
   СТРАНИЦА BATTLE PASS (Широкая версия)
   ============================================ */

.battlepass-page {
    background-image: url('../images/Back2.jpeg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    position: relative;
    padding: clamp(120px, 14vh, 160px) var(--page-padding-x) clamp(40px, 6vw, 80px);
    min-height: 100vh;
}

    .battlepass-page::before {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: 1;
    }

/* Сделали контейнер шире */
.battlepass-inner {
    position: relative;
    z-index: 2;
    max-width: 1800px;
    margin: 0 auto;
}

.bp-header {
    text-align: center;
    margin-bottom: 30px;
}

.bp-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin: 0 0 10px;
    text-shadow: 0 0 20px rgba(243, 156, 18, 0.5);
}

.bp-desc {
    color: #b8c4d4;
    font-size: 1.1rem;
}

/* --- Панель прогресса --- */
.bp-progress-panel {
    background: linear-gradient(160deg, #0d1b3a 0%, #0a1428 100%);
    border: 1px solid rgba(243, 156, 18, 0.4);
    border-radius: 16px;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.bp-level-info {
    display: flex;
    align-items: baseline;
    gap: 5px;
    color: #fff;
}

.bp-level-label {
    font-size: 1rem;
    color: #888;
    text-transform: uppercase;
}

.bp-level-value {
    font-size: 2rem;
    font-weight: 800;
    color: #f39c12;
}

.bp-level-max {
    font-size: 1.2rem;
    color: #555;
}

.bp-progress-bar-wrap {
    flex: 1;
    height: 24px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 200px;
}

.bp-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #f39c12, #e67e22);
    transition: width 0.5s ease;
    box-shadow: 0 0 15px rgba(243, 156, 18, 0.6);
}

.bp-progress-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 2px #000;
}

.bp-premium-active {
    padding: 12px 24px;
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid #2ecc71;
    color: #2ecc71;
    border-radius: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

/* ============================================
   ЕДИНЫЙ СКРОЛЛ
   ============================================ */

.bp-main-scroll-wrapper {
    display: flex;
    background: rgba(13, 27, 58, 0.4);
    border: 1px solid rgba(93, 173, 226, 0.2);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
}

/* Левая колонка */
.bp-tracks-labels {
    display: flex;
    flex-direction: column;
    width: 120px;
    flex-shrink: 0;
    background: #0a1428;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
    position: relative;
}

.bp-label-spacer {
    height: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bp-track-label {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 250px; /* Чуть выше, чтобы вместить картинку */
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.premium-label {
    color: #f1c40f;
    background: rgba(241, 196, 15, 0.05);
    border-bottom: 2px solid rgba(241, 196, 15, 0.3);
}

.free-label {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* Правая часть (скроллится) */
.bp-scroll-container {
    flex: 1;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(243, 156, 18, 0.5) rgba(0, 0, 0, 0.2);
}

    .bp-scroll-container::-webkit-scrollbar {
        height: 8px;
    }

    .bp-scroll-container::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.2);
    }

    .bp-scroll-container::-webkit-scrollbar-thumb {
        background: rgba(243, 156, 18, 0.5);
        border-radius: 4px;
    }

.bp-tracks-content {
    display: flex;
    flex-direction: column;
    width: max-content;
}

/* Ряд с цифрами уровней */
.bp-levels-row {
    display: flex;
    height: 50px;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 15px;
}

.level-marker {
    width: 160px; /* Ширина карточки + отступ */
    flex-shrink: 0;
    text-align: center;
    font-weight: 800;
    font-size: 1.2rem;
    color: #888;
    position: relative;
}

    .level-marker.unlocked {
        color: #f39c12;
        text-shadow: 0 0 10px rgba(243, 156, 18, 0.5);
    }

/* Ряды с наградами */
.bp-premium-row,
.bp-free-row {
    display: flex;
    padding: 15px;
    gap: 15px;
}

.bp-premium-row {
    background: linear-gradient(90deg, rgba(241, 196, 15, 0.05) 0%, rgba(241, 196, 15, 0) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Карточка награды (ГОТОВА ПОД КАРТИНКИ) */
.bp-reward-card {
    flex: 0 0 160px; /* Ширина карточки */
    width: 160px;
    height: 220px; /* Высота карточки */
    background: linear-gradient(160deg, #1a1a2e 0%, #0f0f1a 100%);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transition: transform 0.2s, border-color 0.2s;
}

    .bp-reward-card.unlocked {
        border-color: #f39c12;
        box-shadow: 0 0 15px rgba(243, 156, 18, 0.2);
    }

    .bp-reward-card.claimed {
        opacity: 0.5;
        border-color: #555;
    }

/* Блок для картинки */
.bp-reward-image {
    width: 100%;
    height: 100px; /* Место под картинку */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

    .bp-reward-image img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.bp-reward-title {
    font-size: 0.85rem;
    color: #ddd;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: auto;
}

.bp-claim-btn {
    width: 100%;
    padding: 8px;
    background: #2ecc71;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 10px;
}

    .bp-claim-btn:hover {
        background: #27ae60;
    }

    .bp-claim-btn:disabled {
        background: #555;
        cursor: not-allowed;
    }

.bp-lock-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 1.2rem;
    color: #e74c3c;
    text-shadow: 0 0 5px #000;
}

.bp-back-wrap {
    text-align: center;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .bp-main-scroll-wrapper {
        flex-direction: column;
    }

    .bp-tracks-labels {
        flex-direction: row;
        width: 100%;
        height: 50px;
        overflow: hidden;
    }

    .bp-label-spacer {
        display: none;
    }

    .bp-track-label {
        writing-mode: horizontal-tb;
        transform: none;
        height: 100%;
        width: 50%;
        font-size: 0.9rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .bp-premium-label {
        border-bottom-color: #f1c40f;
    }

    .bp-reward-card {
        flex: 0 0 140px;
        width: 140px;
        height: 200px;
    }

    .level-marker {
        width: 140px;
    }

    .bp-premium-row, .bp-free-row {
        padding: 10px;
        gap: 10px;
    }
}
