/**
 * Archivo principal de CSS para el módulo de Streaming
 * Importa todos los módulos CSS de streaming de forma organizada
 * 
 * @author MrGreen Development Team
 * @version 1.0.0
 * @since 2025-01-08
 */

/* ===== IMPORTS DE MÓDULOS NO CRÍTICOS ===== */
@import url('/css/streaming/_variables.css');
@import url('/css/streaming/_base.css');
/* _critical.css se incluye inline para velocidad */
@import url('/css/streaming/_enhancements.css');
@import url('/css/streaming/_stream-info.css');
@import url('/css/streaming/_chat.css');
@import url('/css/streaming/_modals.css');
@import url('/css/streaming/_broadcast-specific.css');

/* ===== ESTILOS ADICIONALES GLOBALES ===== */

/* Mejoras de accesibilidad */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Mejoras de rendimiento */
* {
    box-sizing: border-box;
}

/* Smooth scrolling para navegadores compatibles */
html {
    scroll-behavior: smooth;
}

/* Mejoras de tipografía */
body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mejoras para elementos interactivos */
button, .btn, [role="button"] {
    cursor: pointer;
    user-select: none;
}

button:disabled, .btn:disabled, [role="button"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Mejoras de transiciones */
* {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, 
                box-shadow 0.2s ease, transform 0.2s ease;
}

/* Mejoras de selección de texto */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

/* Scrollbar: usar estilos por defecto del navegador o estilos globales */

/* ===== UTILIDADES GLOBALES ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }

.flex-column { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.align-items-center { align-items: center !important; }

.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }

.m-0 { margin: 0 !important; }
.p-0 { padding: 0 !important; }

/* ===== RESPONSIVE UTILITIES ===== */
@media (max-width: 768px) {
    .d-md-none { display: none !important; }
    .d-md-block { display: block !important; }
    .d-md-flex { display: flex !important; }
}

@media (max-width: 576px) {
    .d-sm-none { display: none !important; }
    .d-sm-block { display: block !important; }
    .d-sm-flex { display: flex !important; }
}

/* ===== PRINT STYLES ===== */
@media print {
    .no-print {
        display: none !important;
    }
    
    .stream-container,
    .broadcast-container {
        background: white !important;
        color: black !important;
    }
}
