/* ============================================
   СОВРЕМЕННОЕ МЕНЮ НАВЫКОВ
   Независимая система с био-дизайном
   ============================================ */

/* Основной контейнер */
.skill-menu-modern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Главное окно - на весь экран */
.skill-modern-window {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #00ff88;
    border-radius: 0;
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.3),
                inset 0 0 60px rgba(0, 255, 136, 0.05);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    animation: slideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideIn {
    from {
        transform: scale(0.8) translateY(50px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Заголовок с навигацией */
.skill-modern-header {
    padding: 15px 20px;
    border-bottom: 2px solid rgba(0, 255, 136, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, rgba(0, 255, 136, 0.1) 0%, transparent 100%);
    gap: 20px;
}

.skill-modern-title {
    font-size: 24px;
    font-weight: bold;
    color: #00ff88;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.skill-modern-title-icon {
    font-size: 28px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Навигация между меню - используется общий файл menu-navigation.css */

/* Подзаголовок со статистикой */
.skill-modern-subheader {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
    background: rgba(0, 255, 136, 0.05);
}

/* Панель фильтров и сортировки */
.skill-modern-filters {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
    background: rgba(0, 255, 136, 0.03);
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.skill-filter-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.skill-filter-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: bold;
}

.skill-filter-btn,
.skill-sort-btn {
    padding: 6px 12px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.skill-filter-btn:hover,
.skill-sort-btn:hover {
    background: rgba(0, 255, 136, 0.2);
    border-color: rgba(0, 255, 136, 0.5);
    color: #fff;
}

.skill-filter-btn.active,
.skill-sort-btn.active {
    background: rgba(0, 255, 136, 0.3);
    border-color: #00ff88;
    color: #00ff88;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

/* Статистика игрока */
.skill-modern-stats {
    display: flex;
    gap: 15px;
    font-size: 13px;
    justify-content: center;
    flex-wrap: wrap;
}

.skill-stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 20px;
    color: #fff;
}

.skill-stat-icon {
    font-size: 14px;
}

.skill-stat-value {
    font-weight: bold;
    color: #00ff88;
}

/* Кнопка закрытия - используем стандартную из игры с красным фильтром */
.skill-modern-header .skill-modern-close {
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    filter: hue-rotate(180deg) saturate(2) !important;
    position: relative !important;
    top: 0 !important;
    margin: 0 !important;
    align-self: center !important;
}

.skill-modern-header .skill-modern-close:hover {
    transform: scale(1.1) !important;
    filter: hue-rotate(180deg) saturate(2) brightness(1.3) !important;
}

/* Контент с прокруткой */
.skill-modern-content {
    padding: 20px 30px;
    overflow-y: auto;
    flex: 1;
}

.skill-modern-content::-webkit-scrollbar {
    width: 10px;
}

.skill-modern-content::-webkit-scrollbar-track {
    background: rgba(0, 255, 136, 0.05);
    border-radius: 10px;
}

.skill-modern-content::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 136, 0.3);
    border-radius: 10px;
}

.skill-modern-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 136, 0.5);
}

/* Список навыков */
.skill-modern-list {
    display: grid;
    gap: 16px;
}

/* Карточка навыка */
.skill-modern-card {
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.8) 0%, rgba(20, 20, 40, 0.9) 100%);
    border: 2px solid rgba(0, 255, 136, 0.2);
    border-radius: 16px;
    padding: 20px;
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 20px;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Престижный навык - особое выделение */
.skill-modern-card.prestige {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 140, 0, 0.1) 100%);
    border: 2px solid rgba(255, 215, 0, 0.6);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3),
                inset 0 0 30px rgba(255, 215, 0, 0.1);
}

.skill-modern-card.prestige::before {
    background: linear-gradient(90deg, transparent 0%, rgba(255, 215, 0, 0.2) 50%, transparent 100%);
}

.skill-modern-card.prestige:hover {
    border-color: rgba(255, 215, 0, 0.9);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.5),
                inset 0 0 40px rgba(255, 215, 0, 0.15);
}

.skill-modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 255, 136, 0.05) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.skill-modern-card:hover {
    border-color: rgba(0, 255, 136, 0.5);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.2);
    transform: translateY(-2px);
}

.skill-modern-card:hover::before {
    transform: translateX(100%);
}

/* Иконка навыка */
.skill-modern-icon-wrapper {
    position: relative;
}

.skill-modern-icon {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    border: 3px solid rgba(0, 255, 136, 0.3);
    object-fit: cover;
    transition: all 0.3s ease;
    pointer-events: none;
}

.skill-modern-card:hover .skill-modern-icon {
    border-color: #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
    transform: scale(1.05);
}

/* Уровень на иконке */
.skill-modern-level-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    color: #000;
    font-weight: bold;
    font-size: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #1a1a2e;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
    pointer-events: none;
}

/* Значок престижа */
.skill-modern-prestige-badge {
    position: absolute;
    top: -8px;
    left: -8px;
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    color: #000;
    font-weight: bold;
    font-size: 18px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #1a1a2e;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    pointer-events: none;
    animation: prestigePulse 2s ease-in-out infinite;
    z-index: 10;
}

@keyframes prestigePulse {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    }
    50% { 
        transform: scale(1.1) rotate(10deg);
        box-shadow: 0 0 30px rgba(255, 215, 0, 1);
    }
}

/* Значок типа навыка (активный/пассивный) */
.skill-type-badge {
    position: absolute;
    bottom: -8px;
    right: -8px;
    font-size: 14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #1a1a2e;
    pointer-events: none;
    z-index: 10;
}

.skill-type-badge.active {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    box-shadow: 0 0 15px rgba(74, 144, 226, 0.6);
}

.skill-type-badge.passive {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    box-shadow: 0 0 15px rgba(155, 89, 182, 0.6);
}

/* Информация о навыке */
.skill-modern-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Кулдаун навыка */
.skill-modern-cooldown {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(255, 100, 100, 0.15);
    border: 1px solid rgba(255, 100, 100, 0.4);
    border-radius: 6px;
    font-size: 12px;
    color: #ff6464;
    font-weight: bold;
    align-self: flex-start;
    animation: cooldownPulse 1s ease-in-out infinite;
}

@keyframes cooldownPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.skill-modern-cooldown.ready {
    background: rgba(0, 255, 136, 0.15);
    border-color: rgba(0, 255, 136, 0.4);
    color: #00ff88;
    animation: none;
}

.skill-modern-name {
    font-size: 20px;
    font-weight: bold;
    color: #00ff88;
    margin: 0;
}

.skill-modern-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.4;
}

/* Прогресс бар */
.skill-modern-progress-wrapper {
    margin-top: 8px;
}

.skill-modern-progress-bar {
    height: 8px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-modern-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff88 0%, #00cc6a 100%);
    border-radius: 10px;
    transition: width 0.5s ease, background 0.5s ease, box-shadow 0.5s ease;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* Динамические цвета в зависимости от прогресса */
/* 0-33% - Красный */
.skill-modern-progress-fill[data-level="low"] {
    background: linear-gradient(90deg, #ff4444 0%, #cc0000 100%);
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

/* 34-66% - Желтый */
.skill-modern-progress-fill[data-level="medium"] {
    background: linear-gradient(90deg, #ffdd44 0%, #ffaa00 100%);
    box-shadow: 0 0 10px rgba(255, 221, 68, 0.5);
}

/* 67-99% - Зеленый */
.skill-modern-progress-fill[data-level="high"] {
    background: linear-gradient(90deg, #00ff88 0%, #00cc6a 100%);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.skill-modern-progress-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
    display: flex;
    justify-content: space-between;
}

/* Прогресс 100% */
.skill-modern-card[data-progress="100"] .skill-modern-progress-fill {
    background: linear-gradient(90deg, #ffd700 0%, #ffed4e 100%);
    animation: glow 1.5s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
    50% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.8); }
}

/* Требования для прокачки */
.skill-modern-requirements {
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(255, 100, 100, 0.1);
    border: 1px solid rgba(255, 100, 100, 0.3);
    border-radius: 8px;
    font-size: 13px;
    color: #ff6464;
    display: flex;
    align-items: center;
    gap: 8px;
}

.skill-modern-requirements.enough {
    background: rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.3);
    color: #00ff88;
}

/* Действия */
.skill-modern-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Кнопки */
.skill-modern-btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    border: 2px solid;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    min-width: 140px;
}

/* Кнопка прокачки уровня */
.skill-modern-btn-levelup {
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    border-color: #00ff88;
    color: #000;
}

.skill-modern-btn-levelup:hover:not(:disabled) {
    background: linear-gradient(135deg, #00ff88 0%, #00ff88 100%);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    transform: translateY(-2px);
}

/* Кнопка прокачки прогресса */
.skill-modern-btn-progress {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    border-color: #4a90e2;
    color: #fff;
}

.skill-modern-btn-progress:hover:not(:disabled) {
    background: linear-gradient(135deg, #4a90e2 0%, #4a90e2 100%);
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.5);
    transform: translateY(-2px);
}

/* Отключенная кнопка */
.skill-modern-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

/* Привязка клавиши - заметная в левом верхнем углу */
.skill-modern-keybind {
    position: absolute;
    top: 4px;
    left: 4px;
    background: rgba(0, 255, 136, 0.15);
    border: none;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
    color: #00ff88;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    min-width: 18px;
    text-align: center;
    text-shadow: 0 0 6px rgba(0, 255, 136, 0.6),
                 0 1px 2px rgba(0, 0, 0, 0.8);
    opacity: 0.85;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.2);
}

.skill-modern-keybind:hover {
    background: rgba(0, 255, 136, 0.25);
    color: #00ff88;
    opacity: 1;
    transform: scale(1.15);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.9),
                 0 1px 2px rgba(0, 0, 0, 0.9);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
}

.skill-modern-keybind:active {
    transform: scale(1.08);
    background: rgba(0, 255, 136, 0.35);
}

/* Пустое состояние */
.skill-modern-empty {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.5);
}

.skill-modern-empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.skill-modern-empty-text {
    font-size: 18px;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .skill-modern-window {
        width: 100%;
        height: 100%;
        border-radius: 0;
        border: none;
    }

    .skill-modern-header {
        padding: 10px 15px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .skill-modern-filters {
        padding: 10px 15px;
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .skill-filter-group {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .skill-filter-label {
        width: 100%;
        margin-bottom: 4px;
    }

    .skill-filter-btn,
    .skill-sort-btn {
        flex: 1;
        min-width: calc(50% - 4px);
        font-size: 11px;
        padding: 6px 8px;
    }

    .skill-modern-cooldown {
        font-size: 11px;
        padding: 3px 8px;
    }

    .skill-modern-title {
        font-size: 18px;
        flex: 1;
        min-width: 150px;
    }

    .skill-modern-title-icon {
        font-size: 22px;
    }

    .menu-navigation {
        order: 3;
        width: 100%;
        justify-content: space-between;
        gap: 4px;
    }

    .menu-navigation .nav-btn {
        width: 36px;
        height: 36px;
        flex: 1;
        max-width: 50px;
    }

    .menu-navigation .nav-btn img {
        width: 20px;
        height: 20px;
    }

    .skill-modern-close {
        order: 2;
    }

    .skill-modern-subheader {
        padding: 8px 15px;
    }

    .skill-modern-stats {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
    }

    .skill-stat-item {
        flex: 1;
        min-width: calc(33.333% - 7px);
        padding: 6px 10px;
        font-size: 12px;
        justify-content: center;
    }

    .skill-stat-icon {
        font-size: 14px;
    }

    .skill-modern-content {
        padding: 12px 15px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .skill-modern-card {
        grid-template-columns: 60px 1fr;
        gap: 12px;
        padding: 12px;
        border-radius: 12px;
    }

    .skill-modern-icon {
        width: 60px;
        height: 60px;
    }

    .skill-modern-level-badge {
        width: 26px;
        height: 26px;
        font-size: 13px;
        top: -6px;
        right: -6px;
    }

    .skill-type-badge {
        width: 24px;
        height: 24px;
        font-size: 12px;
        bottom: -6px;
        right: -6px;
    }

    .skill-modern-prestige-badge {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }

    .skill-modern-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: stretch;
        gap: 8px;
    }

    .skill-modern-btn {
        flex: 1;
        min-width: auto;
        padding: 10px 12px;
        font-size: 12px;
        gap: 4px;
    }

    .skill-modern-btn span:last-child {
        display: none;
    }

    .skill-modern-btn span:first-child {
        font-size: 16px;
    }

    .skill-modern-name {
        font-size: 16px;
    }

    .skill-modern-description {
        font-size: 12px;
        line-height: 1.3;
    }

    .skill-modern-progress-text {
        font-size: 11px;
    }

    .skill-modern-requirements {
        font-size: 11px;
        padding: 6px 10px;
    }

    .skill-modern-keybind {
        display: none;
    }
}

/* Очень маленькие экраны */
@media (max-width: 360px) {
    .skill-modern-header {
        padding: 12px 15px;
    }

    .skill-modern-title {
        font-size: 20px;
    }

    .skill-stat-item {
        font-size: 11px;
        padding: 5px 8px;
    }

    .skill-modern-content {
        padding: 10px 12px;
    }

    .skill-modern-card {
        padding: 10px;
        gap: 10px;
    }

    .skill-modern-icon {
        width: 50px;
        height: 50px;
    }

    .skill-modern-level-badge {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .skill-modern-name {
        font-size: 15px;
    }

    .skill-modern-description {
        font-size: 11px;
    }

    .skill-modern-btn {
        padding: 8px 10px;
    }
}

/* Ландшафтная ориентация на мобильных */
@media (max-width: 768px) and (orientation: landscape) {
    .skill-modern-header {
        padding: 10px 15px;
    }

    .skill-modern-title {
        font-size: 20px;
    }

    .skill-modern-stats {
        gap: 8px;
    }

    .skill-stat-item {
        font-size: 11px;
        padding: 5px 8px;
    }

    .skill-modern-content {
        padding: 10px 15px;
    }

    .skill-modern-card {
        padding: 10px;
    }

    .skill-modern-list {
        gap: 12px;
    }
}

/* Анимация загрузки */
.skill-modern-card.loading {
    pointer-events: none;
    opacity: 0.6;
}

.skill-modern-card.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 255, 136, 0.2) 50%, transparent 100%);
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ============================================
   КНОПКА ИНФОРМАЦИИ И МОДАЛЬНОЕ ОКНО
   ============================================ */

/* Кнопка информации */
.skill-info-btn {
    background: rgba(0, 255, 136, 0.15);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #00ff88;
    margin-left: 8px;
    vertical-align: middle;
}

.skill-info-btn:hover {
    background: rgba(0, 255, 136, 0.3);
    border-color: #00ff88;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

/* Модальное окно информации */
.skill-info-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.skill-info-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.skill-info-dialog {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #00ff88;
    border-radius: 16px;
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.5);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideInScale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.skill-info-dialog::-webkit-scrollbar {
    width: 8px;
}

.skill-info-dialog::-webkit-scrollbar-track {
    background: rgba(0, 255, 136, 0.05);
}

.skill-info-dialog::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 136, 0.3);
    border-radius: 4px;
}

/* Заголовок модалки */
.skill-info-header {
    padding: 20px;
    border-bottom: 2px solid rgba(0, 255, 136, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, rgba(0, 255, 136, 0.1) 0%, transparent 100%);
}

.skill-info-title {
    color: #00ff88;
    font-size: 20px;
    margin: 0;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-info-close {
    background: rgba(255, 50, 50, 0.2);
    border: 2px solid #ff3232;
    color: #ff3232;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.skill-info-close:hover {
    background: rgba(255, 50, 50, 0.4);
    transform: rotate(90deg);
}

/* Тело модалки */
.skill-info-body {
    padding: 20px;
}

/* Описание */
.skill-info-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 255, 136, 0.05);
    border-left: 3px solid #00ff88;
    border-radius: 4px;
}

/* Секции */
.skill-info-section {
    margin-bottom: 20px;
}

.skill-info-section:last-child {
    margin-bottom: 0;
}

.skill-info-section-title {
    font-size: 16px;
    font-weight: bold;
    color: #00ff88;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Строки информации */
.skill-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(0, 255, 136, 0.05);
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 14px;
}

.skill-info-row:last-child {
    margin-bottom: 0;
}

.skill-info-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
}

.skill-info-value {
    font-weight: bold;
    color: #00ff88;
}

/* Блок следующего уровня */
.skill-info-next-level {
    background: rgba(0, 255, 136, 0.1);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 8px;
    padding: 15px;
}

/* Мобильная адаптация модалки */
@media (max-width: 768px) {
    .skill-info-dialog {
        width: 95%;
        max-width: none;
        max-height: 90vh;
    }

    .skill-info-header {
        padding: 15px;
    }

    .skill-info-title {
        font-size: 18px;
    }

    .skill-info-body {
        padding: 15px;
    }

    .skill-info-btn {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
}

/* ============================================
   МОДАЛЬНОЕ ОКНО ПРИВЯЗКИ КЛАВИШ
   ============================================ */

.skill-keybind-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.skill-keybind-modal.closing {
    animation: fadeOut 0.3s ease;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.skill-keybind-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.skill-keybind-dialog {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #00ff88;
    border-radius: 16px;
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.5);
    width: 90%;
    max-width: 400px;
    animation: slideInScale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideInScale {
    from {
        transform: scale(0.8) translateY(30px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.skill-keybind-header {
    padding: 20px;
    border-bottom: 2px solid rgba(0, 255, 136, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, rgba(0, 255, 136, 0.1) 0%, transparent 100%);
}

.skill-keybind-header h3 {
    color: #00ff88;
    font-size: 20px;
    margin: 0;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.skill-keybind-close {
    background: rgba(255, 50, 50, 0.2);
    border: 2px solid #ff3232;
    color: #ff3232;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.skill-keybind-close:hover {
    background: rgba(255, 50, 50, 0.4);
    transform: rotate(90deg);
}

.skill-keybind-body {
    padding: 30px 20px;
    text-align: center;
}

.skill-keybind-body p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    font-size: 14px;
}

.skill-keybind-body strong {
    color: #00ff88;
    font-size: 18px;
}

.skill-keybind-input {
    width: 100%;
    max-width: 200px;
    padding: 15px;
    background: rgba(0, 255, 136, 0.1);
    border: 2px solid #00ff88;
    border-radius: 10px;
    color: #00ff88;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    outline: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
}

.skill-keybind-input:focus {
    background: rgba(0, 255, 136, 0.2);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    transform: scale(1.05);
}

.skill-keybind-input::placeholder {
    color: rgba(0, 255, 136, 0.5);
    font-size: 14px;
}

.skill-keybind-footer {
    padding: 20px;
    border-top: 2px solid rgba(0, 255, 136, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
}

.skill-keybind-cancel {
    padding: 12px 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
    margin: 0 auto;
}

.skill-keybind-cancel:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Мобильная адаптация модалки */
@media (max-width: 768px) {
    .skill-keybind-dialog {
        width: 95%;
        max-width: 350px;
    }

    .skill-keybind-header {
        padding: 15px;
    }

    .skill-keybind-header h3 {
        font-size: 18px;
    }

    .skill-keybind-body {
        padding: 25px 15px;
    }

    .skill-keybind-input {
        font-size: 20px;
        padding: 12px;
    }
}
