/* =============================================
   SKIN SELECTOR - Tarjeta de Settings
   Selector visual de skins para DJ Decks
   ============================================= */

/* Contenedor de la tarjeta de skins */
.skin-selector-card {
    background: linear-gradient(145deg, #1a1a2e 0%, #16162a 100%);
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 20px;
    margin-bottom: 20px;
}

.skin-selector-card h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skin-selector-card h3 i {
    color: #a78bfa;
}

.skin-selector-card .card-description {
    color: #9ca3af;
    font-size: 13px;
    margin-bottom: 20px;
}

/* Grid de skins - scrollable */
.skin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-height: 180px;
    overflow-y: auto;
    padding-right: 8px;
}

/* Scrollbar del grid */
.skin-grid::-webkit-scrollbar {
    width: 6px;
}

.skin-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.skin-grid::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.4);
    border-radius: 3px;
}

.skin-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.6);
}

/* Item de skin individual - más compacto */
.skin-item {
    position: relative;
    background: #0f0f1a;
    border-radius: 8px;
    border: 2px solid transparent;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.skin-item:hover {
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
}

.skin-item.active {
    border-color: #8b5cf6;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

/* Checkmark de seleccion */
.skin-item.active::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: #8b5cf6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
}

/* Preview del skin - más compacto */
.skin-preview {
    height: 45px;
    border-radius: 5px;
    margin-bottom: 6px;
    position: relative;
    overflow: hidden;
}

/* Preview Default */
.skin-preview.preview-default {
    background:
        radial-gradient(ellipse 80% 30% at 50% 0%,
            rgba(255, 255, 255, 0.15) 0%,
            transparent 60%),
        linear-gradient(180deg,
            #3d3d48 0%,
            #2f2f3a 25%,
            #222228 60%,
            #1a1a1f 100%);
    border: 1px solid #0f0f14;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

/* Preview Gunmetal */
.skin-preview.preview-gunmetal {
    background:
        radial-gradient(ellipse 70% 25% at 50% 0%,
            rgba(255, 255, 255, 0.12) 0%,
            transparent 50%),
        linear-gradient(180deg,
            #383e42 0%,
            #2a3439 30%,
            #1f262a 70%,
            #1a1d20 100%);
    border: 1px solid #101214;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.4);
}

/* Preview Silver */
.skin-preview.preview-silver {
    background:
        radial-gradient(ellipse 100% 50% at 50% 0%,
            rgba(255, 255, 255, 0.5) 0%,
            rgba(230, 235, 240, 0.3) 30%,
            transparent 60%),
        linear-gradient(180deg,
            #d8dce2 0%,
            #b8bfc8 25%,
            #98a2ac 50%,
            #788088 100%);
    border: 1px solid #a0a8b0;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.skin-preview.preview-silver::before {
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.9) 50%,
        transparent);
    height: 2px;
}

.skin-preview.preview-silver::after {
    background: radial-gradient(circle at 30% 30%,
        #ffffff 0%,
        #d0d4d8 30%,
        #a0a8b0 70%,
        #707880 100%);
    border: 2px solid #909898;
}

/* Preview Rosewood */
.skin-preview.preview-rosewood {
    background:
        radial-gradient(ellipse 70% 25% at 50% 0%,
            rgba(205, 133, 63, 0.15) 0%,
            transparent 50%),
        linear-gradient(180deg,
            #4a3228 0%,
            #3d2a22 30%,
            #2d1f1a 70%,
            #1a1210 100%);
    border: 1px solid #1a1210;
    box-shadow:
        inset 0 1px 0 rgba(205, 133, 63, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.4);
}

.skin-preview.preview-rosewood::before {
    background: linear-gradient(90deg,
        transparent,
        rgba(205, 133, 63, 0.5) 50%,
        transparent);
    height: 1px;
}

.skin-preview.preview-rosewood::after {
    background: radial-gradient(circle at 30% 30%,
        rgba(212, 165, 116, 0.3) 0%,
        #2d1f1a 40%,
        #1a1210 100%);
    border: 2px solid #4a3228;
}

/* Preview Carbon */
.skin-preview.preview-carbon {
    background:
        repeating-linear-gradient(
            45deg,
            #1a1a1a 0px,
            #1a1a1a 2px,
            #222222 2px,
            #222222 4px
        ),
        linear-gradient(180deg,
            #2a2a2a 0%,
            #1a1a1a 50%,
            #0f0f0f 100%);
    background-blend-mode: overlay, normal;
    border: 1px solid #0a0a0a;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 -1px 0 rgba(0, 0, 0, 0.6);
}

.skin-preview.preview-carbon::before {
    background: linear-gradient(90deg,
        transparent,
        rgba(220, 38, 38, 0.7) 50%,
        transparent);
    height: 2px;
}

.skin-preview.preview-carbon::after {
    background:
        repeating-linear-gradient(
            45deg,
            rgba(26, 26, 26, 0.8) 0px,
            rgba(26, 26, 26, 0.8) 1px,
            rgba(34, 34, 34, 0.8) 1px,
            rgba(34, 34, 34, 0.8) 2px
        ),
        radial-gradient(circle at 30% 30%,
            rgba(248, 113, 113, 0.1) 0%,
            #1a1a1a 50%,
            #0f0f0f 100%);
    border: 2px solid #dc2626;
    box-shadow: 0 0 5px rgba(220, 38, 38, 0.4);
}

/* Preview Bronze Elite */
.skin-preview.preview-bronze {
    background:
        /* Reflejo superior */
        radial-gradient(ellipse 100% 40% at 50% -10%,
            rgba(255, 255, 255, 0.15) 0%,
            transparent 60%),
        /* Gradiente bronce a negro */
        linear-gradient(180deg,
            #cd7f32 0%,
            #8b5a2b 25%,
            #5c3d1e 45%,
            #2a1a10 65%,
            #1a1a1a 85%,
            #000000 100%);
    border: 1px solid #3a2515;
    border-top-color: #cd7f32;
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.6),
        0 0 8px rgba(220, 38, 38, 0.2);
}

.skin-preview.preview-bronze::before {
    background: linear-gradient(90deg,
        transparent,
        rgba(220, 38, 38, 0.5) 30%,
        #dc2626 50%,
        rgba(220, 38, 38, 0.5) 70%,
        transparent);
    height: 2px;
}

.skin-preview.preview-bronze::after {
    background:
        radial-gradient(circle at 35% 35%,
            rgba(255, 255, 255, 0.2) 0%,
            #cd7f32 30%,
            #5c3d1e 60%,
            #000000 100%);
    border: 2px solid #cd7f32;
    box-shadow:
        0 0 6px rgba(184, 115, 51, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Linea decorativa en preview */
.skin-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.4) 50%,
        transparent);
}

/* Simulacion de vinilo en preview - más pequeño */
.skin-preview::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%,
        rgba(255, 255, 255, 0.15),
        rgba(0, 0, 0, 0.3));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Info del skin - compacta */
.skin-info {
    text-align: center;
}

.skin-name {
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 2px;
    line-height: 1.2;
}

.skin-description {
    color: #6b7280;
    font-size: 9px;
    line-height: 1.2;
}

/* Badge "Nuevo" - más pequeño */
.skin-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    font-size: 7px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 6px;
    text-transform: uppercase;
    z-index: 10;
}

/* Checkmark más pequeño */
.skin-item.active::after {
    width: 18px;
    height: 18px;
    font-size: 9px;
    top: 4px;
    right: 4px;
}

/* Responsive */
@media (max-width: 640px) {
    .skin-grid {
        grid-template-columns: repeat(2, 1fr);
        max-height: 150px;
    }

    .skin-preview {
        height: 35px;
    }

    .skin-name {
        font-size: 10px;
    }

    .skin-description {
        font-size: 8px;
    }
}

/* =============================================
   SKIN POR DEFECTO - Sección Admin
   ============================================= */

.default-skin-section {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
}

.default-skin-section .setting-row {
    margin-bottom: 4px;
}

.default-skin-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #a78bfa;
}

.default-skin-label i {
    font-size: 14px;
}

.default-skin-hint {
    color: #6b7280;
    font-size: 10px;
    margin: 0;
    padding-left: 22px;
}

#defaultSkinSelect {
    min-width: 120px;
}
