/**
 * Skills Panel Styles
 * Estilos para el panel de visualización de habilidades
 */

/* Backdrop */
.skills-panel-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Panel Container */
.skills-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 3px solid #fbbf24;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header */
.skills-panel-header {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #d97706;
}

.skills-panel-header h2 {
    margin: 0;
    color: #1e293b;
    font-size: 22px;
    font-weight: bold;
}

.skills-panel-close {
    background: rgba(0, 0, 0, 0.2);
    border: none;
    color: #1e293b;
    font-size: 24px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.skills-panel-close:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: rotate(90deg);
}

/* Class Info */
.skills-class-info {
    background: rgba(251, 191, 36, 0.1);
    padding: 12px 20px;
    border-bottom: 1px solid rgba(251, 191, 36, 0.3);
}

.skills-class-info p {
    margin: 5px 0;
    color: #fbbf24;
}

.skills-class-info small {
    color: #cbd5e1;
}

/* Filter Bar */
.skills-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(251, 191, 36, 0.2);
}

.skills-filter-btn {
    background: rgba(71, 85, 105, 0.5);
    border: 1px solid #475569;
    color: #cbd5e1;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.skills-filter-btn:hover {
    background: rgba(71, 85, 105, 0.8);
    border-color: #fbbf24;
}

.skills-filter-btn.active {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-color: #fbbf24;
    color: #1e293b;
    font-weight: bold;
}

/* Skills Container */
.skills-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.skills-container::-webkit-scrollbar {
    width: 8px;
}

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

.skills-container::-webkit-scrollbar-thumb {
    background: #fbbf24;
    border-radius: 4px;
}

.skills-container::-webkit-scrollbar-thumb:hover {
    background: #f59e0b;
}

/* Type Section */
.skills-type-section {
    margin-bottom: 25px;
}

.skills-type-header {
    color: #fbbf24;
    font-size: 18px;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(251, 191, 36, 0.3);
}

/* Skill Item */
.skill-item {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(71, 85, 105, 0.5);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: #fbbf24;
    transform: translateX(4px);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.skill-icon-name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.skill-icon {
    font-size: 24px;
}

.skill-name {
    color: #e2e8f0;
    font-size: 16px;
    font-weight: bold;
}

.skill-level-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.skill-level {
    font-size: 14px;
    font-weight: bold;
}

.skill-level-up-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 2px solid #047857;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.skill-level-up-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.4);
}

.skill-level-up-btn:active {
    transform: scale(0.95);
}

.skill-description {
    color: #cbd5e1;
    font-size: 13px;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* Exp Bar */
.skill-exp-bar {
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.skill-exp-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    transition: width 0.5s ease;
}

.skill-exp-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 11px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    z-index: 1;
}

/* Skill Modifier */
.skill-modifier {
    font-size: 16px;
    margin-left: 4px;
}

.skill-modifier.bonus {
    color: #10b981;
}

.skill-modifier.penalty {
    color: #ef4444;
}

.skill-modifier-info {
    color: #94a3b8;
    font-size: 11px;
    margin-top: 6px;
    font-style: italic;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .skills-panel {
        width: 95%;
        max-height: 90vh;
    }

    .skills-panel-header h2 {
        font-size: 18px;
    }

    .skills-filter-bar {
        padding: 10px;
    }

    .skills-filter-btn {
        font-size: 11px;
        padding: 5px 10px;
    }

    .skills-container {
        padding: 10px;
    }

    .skills-type-header {
        font-size: 16px;
    }

    .skill-item {
        padding: 10px;
    }

    .skill-icon {
        font-size: 20px;
    }

    .skill-name {
        font-size: 14px;
    }

    .skill-level {
        font-size: 12px;
    }

    .skill-description {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .skills-panel {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .skills-filter-bar {
        gap: 5px;
    }

    .skills-filter-btn {
        font-size: 10px;
        padding: 4px 8px;
    }
}