/* Дополнительные цветовые переменные для модального окна */
:root {
    --info: #4299e1;
    --warning: #f6ad55;
}

/* Переопределение стилей модального окна для boss-modal */
#boss-modal .modal-content {
    max-width: 1100px;
    width: 95%;
    overflow: visible;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 90vh;
    padding: 32px;
    box-sizing: border-box;
}

#boss-modal .modal-overlay {
    padding: 20px;
    box-sizing: border-box;
}

/* Горизонтальное модальное окно босса */
.boss-modal-horizontal {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    min-height: 450px;
    width: 100%;
}

/* Левая секция: Профиль босса */
.boss-profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.boss-profile-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: radial-gradient(ellipse at top, rgba(255, 193, 7, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.boss-avatar-wrapper {
    position: relative;
    margin-bottom: 20px;
    z-index: 1;
}

.boss-modal-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    box-shadow: 0 8px 32px rgba(255, 193, 7, 0.3),
                0 0 0 6px rgba(255, 193, 7, 0.1);
    transition: all 0.3s ease;
}

.boss-modal-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 48px rgba(255, 193, 7, 0.4),
                0 0 0 12px rgba(255, 193, 7, 0.15);
}

.boss-crown-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--gold) 0%, #f9a825 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(255, 193, 7, 0.5);
    animation: pulse-crown 2s ease-in-out infinite;
}

@keyframes pulse-crown {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 16px rgba(255, 193, 7, 0.5);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 6px 24px rgba(255, 193, 7, 0.7);
    }
}

.crown-icon {
    width: 20px;
    height: 20px;
    color: #1a1a2e;
}

.boss-name-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--gold);
    margin: 0 0 12px 0;
    text-align: center;
    text-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.boss-room-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(102, 126, 234, 0.2);
    border-radius: 20px;
    margin-bottom: 24px;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.boss-room-badge svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.boss-room-badge span {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
}

.boss-stats-compact {
    width: 100%;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item svg {
    width: 28px;
    height: 28px;
    color: var(--warning);
    flex-shrink: 0;
}

.stat-item:last-child svg {
    color: var(--success);
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: lowercase;
}

/* Подсказка про побед подряд */
.boss-info-hint {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(66, 153, 225, 0.1) 0%, rgba(49, 130, 206, 0.1) 100%);
    border-radius: 10px;
    border: 1px solid rgba(66, 153, 225, 0.3);
    margin-top: 12px;
}

.boss-info-hint svg {
    width: 20px;
    height: 20px;
    color: var(--info);
    flex-shrink: 0;
    margin-top: 2px;
}

.hint-text {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.hint-text strong {
    color: var(--info);
    font-weight: 600;
}

/* Правая секция: Призовой фонд */
.boss-prize-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    min-width: 0;
}

.prize-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(255, 193, 7, 0.2);
}

.prize-header .trophy-svg {
    width: 32px;
    height: 32px;
    color: var(--gold);
    filter: drop-shadow(0 2px 8px rgba(255, 193, 7, 0.3));
}

.prize-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.prize-amount-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    padding: 24px 20px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 152, 0, 0.1) 100%);
    border-radius: 12px;
    border: 2px solid rgba(255, 193, 7, 0.3);
    position: relative;
    overflow: hidden;
}

.prize-amount-display::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.amount-large {
    font-size: 48px;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
    text-shadow: 0 4px 16px rgba(255, 193, 7, 0.4);
    position: relative;
    z-index: 1;
}

.currency {
    font-size: 28px;
    font-weight: 600;
    color: var(--gold);
    opacity: 0.8;
    position: relative;
    z-index: 1;
}

.prize-info-box {
    padding: 16px;
    background: rgba(66, 153, 225, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(66, 153, 225, 0.2);
}

.info-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-row svg {
    width: 20px;
    height: 20px;
    color: var(--info);
    flex-shrink: 0;
}

.info-row span {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Механика системы */
.system-mechanics {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mechanics-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.mechanics-title svg {
    width: 20px;
    height: 20px;
    color: var(--warning);
}

.mechanics-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mechanic-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.mechanic-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateX(4px);
}

.mechanic-item.highlight {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 152, 0, 0.15) 100%);
    border: 2px solid rgba(255, 193, 7, 0.3);
}

.mechanic-item.highlight:hover {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 152, 0, 0.2) 100%);
    border-color: rgba(255, 193, 7, 0.4);
}

.mechanic-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mechanic-icon.boss {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 152, 0, 0.2) 100%);
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.mechanic-icon.fund {
    background: linear-gradient(135deg, rgba(66, 153, 225, 0.2) 0%, rgba(49, 130, 206, 0.2) 100%);
    border: 1px solid rgba(66, 153, 225, 0.3);
}

.mechanic-icon.victory {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.2) 0%, rgba(56, 161, 105, 0.2) 100%);
    border: 1px solid rgba(72, 187, 120, 0.3);
}

.mechanic-icon svg {
    width: 20px;
    height: 20px;
}

.mechanic-icon.boss svg {
    color: var(--gold);
}

.mechanic-icon.fund svg {
    color: var(--info);
}

.mechanic-icon.victory svg {
    color: var(--success);
}

.mechanic-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.mechanic-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Адаптивность */
@media (max-width: 1200px) {
    #boss-modal .modal-content {
        width: 98%;
        padding: 24px;
    }
    
    .boss-modal-horizontal {
        grid-template-columns: 260px 1fr;
        gap: 20px;
    }
}

@media (max-width: 1024px) {
    #boss-modal .modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .boss-modal-horizontal {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .boss-profile-section {
        padding: 20px 16px;
    }
    
    .boss-prize-section {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    #boss-modal .modal-content {
        padding: 16px;
    }
    
    .amount-large {
        font-size: 36px;
    }
    
    .currency {
        font-size: 20px;
    }
    
    .boss-name-title {
        font-size: 18px;
    }
    
    .boss-modal-avatar {
        width: 80px;
        height: 80px;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .hint-text {
        font-size: 11px;
    }
}

