/* ============================================
   CLASETUBE - LESSON CONTROLS (OPCIÓN 2)
   Controles de lección minimalistas integrados
   ============================================ */

/* Contenedor principal */
.buttons-option-2 {
    display: flex !important;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(15, 15, 15, 0.8) !important;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Sección de navegación (izquierda y derecha) */
.nav-section-2 {
    display: flex !important;
    gap: 8px;
}

/* Sección de acciones (centro) */
.action-section-2 {
    display: flex !important;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

/* Botones base */
.btn-2 {
    padding: 10px 18px !important;
    border-radius: 8px;
    background: #1a1a1a !important;
    border: 1px solid #333 !important;
    color: #888 !important;
    font-size: 13px !important;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: 500;
    text-decoration: none !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.4;
    min-height: 38px;
    vertical-align: middle;
}

/* Hover state */
.btn-2:hover {
    color: #fff !important;
    background: #252525 !important;
    border-color: #444 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Estado activo (completada/guardada) */
.btn-2.active {
    background: rgba(255, 0, 60, 0.15) !important;
    color: #FF003C !important;
    border-color: rgba(255, 0, 60, 0.3) !important;
}

.btn-2.active:hover {
    background: rgba(255, 0, 60, 0.25) !important;
    color: #fff !important;
}

/* Botones de navegación */
.btn-2.nav {
    background: #FF003C !important;
    color: #fff !important;
    border-color: #FF003C !important;
    font-weight: 600;
}

.btn-2.nav:hover {
    background: #e60038 !important;
    border-color: #e60038 !important;
    box-shadow: 0 4px 12px rgba(255, 0, 60, 0.3);
}

/* Tamaño de iconos */
.btn-2 i {
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    line-height: 1;
    margin: 0;
    vertical-align: middle;
}

/* Estado deshabilitado */
.btn-2.disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    background: #111 !important;
    color: #444 !important;
}

/* Loading state */
.btn-2.loading {
    pointer-events: none;
    opacity: 0.6;
}

.btn-2.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Responsive - Mobile */
@media (max-width: 768px) {
    .buttons-option-2 {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-section-2,
    .action-section-2 {
        width: 100%;
        justify-content: center;
    }
    
    .btn-2 {
        font-size: 11px;
        padding: 5px 12px;
    }
}

/* Responsive - Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
    .btn-2 {
        font-size: 11px;
    }
}
