/* Version: 5.1.3 */
/* ============================================
   ACTIVAR-PIEZAS.CSS
   Estilos específicos para activar piezas
   (Base styles en basestyles.css)
   ============================================ */

.activate-pieces-section {
    padding: 2rem 0;
}

.pieces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.piece-activate-card {
    background: rgba(15, 23, 42, 0.8);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.piece-activate-card:hover {
    border-color: rgba(59, 130, 246, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
}

.piece-activate-card.active {
    border-color: rgba(34, 197, 94, 0.6);
    background: rgba(15, 23, 42, 0.9);
}

.piece-activate-card.active:hover {
    border-color: rgba(34, 197, 94, 0.8);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.2);
}

.piece-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.piece-card-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.piece-card-icon {
    font-size: 2rem;
}

.piece-card-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0;
}

.toggle-switch {
    position: relative;
    width: 56px;
    height: 28px;
    background: rgba(59, 130, 246, 0.3);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-switch.active {
    background: rgba(34, 197, 94, 0.6);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active::after {
    left: 31px;
}

.piece-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

/* Asegurar que el quinto campo (Puntos Invertidos) se muestre en una nueva fila si es necesario */
.piece-stat:nth-child(5) {
    grid-column: 1 / -1; /* Ocupa ambas columnas */
}

.piece-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    grid-column: span 1;
}

.piece-stat-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.piece-stat-value {
    font-size: 1rem;
    font-weight: 600;
    color: #e2e8f0;
}

.piece-stat-value.performance {
    color: #60a5fa;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 1rem;
}

.status-badge.active {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-badge.inactive {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #94a3b8;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 0.5rem;
}

.empty-state-text {
    font-size: 1rem;
    color: #94a3b8;
}
