/* ==========================================
   1. PRZYCISK INFO (W KARCIE PODIUM)
   ========================================== */
.btn-info-toggle {
    flex: 0 0 45px; /* Stała szerokość, żeby był kwadratowy */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    color: #ccc;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-info-toggle:hover {
    background: #E60000;
    color: #fff;
    border-color: #E60000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 0, 0, 0.4);
}

/* ==========================================
   2. OVERLAY (TŁO MODALA)
   ========================================== */
.info-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100000; /* Nad wszystkim innym na stronie */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
}

.info-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==========================================
   3. GŁÓWNY BOKS MODALA
   ========================================== */
.info-modal-box {
    background: #121212;
    border: 1px solid #2C2C2C;
    border-radius: 16px;
    width: 90%;
    max-width: 650px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    position: relative;
    transform: translateY(40px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 30px 60px rgba(0,0,0,0.9), 0 0 20px rgba(230,0,0,0.1);
}

.info-modal-overlay.active .info-modal-box {
    transform: translateY(0) scale(1);
}

/* PRZYCISK ZAMKNIĘCIA "X" */
.info-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    color: #888;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.info-modal-close:hover {
    background: rgba(230, 0, 0, 0.1);
    color: #E60000;
    border-color: #E60000;
    transform: rotate(90deg);
}

/* ==========================================
   4. HEADER MODALA (LOGO I TYTUŁ)
   ========================================== */
.info-modal-header {
    padding: 24px;
    border-bottom: 1px solid #1E1E1E;
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(180deg, #161616 0%, #121212 100%);
    border-radius: 16px 16px 0 0;
}

.info-modal-header img {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    background: #050505;
    border: 1px solid #333;
    object-fit: contain;
    padding: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.info-modal-header h2 {
    margin: 0 0 6px 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
}

.info-modal-badge {
    font-size: 0.7rem;
    color: #2ecc71;
    background: rgba(46, 204, 113, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(46, 204, 113, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================
   5. BODY (SCROLLOWANA ZAWARTOŚĆ)
   ========================================== */
.info-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Custom Scrollbar */
.info-modal-body::-webkit-scrollbar { width: 6px; }
.info-modal-body::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }
.info-modal-body::-webkit-scrollbar-thumb:hover { background: #555; }
.info-modal-body::-webkit-scrollbar-track { background: #050505; }

/* Wiersze informacyjne generowane przez JS */
.info-data-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #0a0a0a;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #1E1E1E;
    transition: all 0.2s ease;
}

.info-data-row:hover {
    border-color: #444;
    background: #0d0d0d;
    transform: translateX(4px); /* Lekki wjazd w prawo */
}

/* Ikonka dla danej kategorii (Cena, Czas, itp.) */
.info-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(230, 0, 0, 0.05);
    color: #E60000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    border: 1px solid rgba(230, 0, 0, 0.1);
}

.info-text-content {
    flex: 1;
}

.info-label {
    font-size: 0.75rem;
    color: #808080;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 6px;
    display: block;
}

.info-value {
    font-size: 0.95rem;
    color: #e0e0e0;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
}

.info-value strong {
    color: #fff !important;
    font-weight: 700;
}

/* Formaty wyrożnień w tekście JS */
.info-highlight { color: #E60000; font-weight: 700; }
.info-green { color: #2ecc71; font-weight: 700; }

/* ==========================================
   6. FOOTER
   ========================================== */
.info-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #1E1E1E;
    background: rgba(0, 0, 0, 0.4);
    text-align: center;
    border-radius: 0 0 16px 16px;
}

.info-modal-footer p {
    margin: 0;
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ==========================================
   7. RESPONSIVE (MOBILE)
   ========================================== */
@media (max-width: 768px) {
    .info-modal-box {
        width: 95%;
        max-height: 90vh;
    }
    
    .info-modal-header {
        flex-direction: column;
        text-align: center;
        padding-top: 30px; /* Miejsce na X */
    }
    
    .info-modal-close {
        top: 12px;
        right: 12px;
    }
    
    .info-data-row {
        flex-direction: column;
        gap: 12px;
        padding: 14px;
    }
    
    .info-icon-box {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .info-label { font-size: 0.7rem; }
    .info-value { font-size: 0.9rem; }
}