:root {
    --brand-color: #10b981;
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: #000000;
    background-image: url('streamergun_bg.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}
/* En móvil: background-attachment:fixed falla; usar pseudo-elemento fijo como teleprompterContainer */
/* En móvil: deshabilitar pinch zoom en toda la app, incluyendo teleprompter y menú lateral */
@media (max-width: 767px) {
    html, body {
        touch-action: pan-x pan-y;
        -ms-touch-action: pan-x pan-y;
    }
    #teleprompterContainer,
    #teleprompterScroll,
    #teleprompterContent,
    #sideMenuPanel,
    #sideMenuOverlay,
    #sideMenuList,
    #profileModal {
        touch-action: pan-x pan-y;
        -ms-touch-action: pan-x pan-y;
    }
    body {
        background-image: none;
    }
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #000000;
        background-image: url('streamergun_bg.svg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        z-index: -1;
    }
}
.fade-in {
    animation: fadeIn 0.3s ease-in;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Estilos para tooltips personalizados */
[title] {
    position: relative;
}
[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 10px;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
    pointer-events: none;
    opacity: 1;
}
[title]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    margin-bottom: -5px;
    pointer-events: none;
}
/* Logo tipográfico StreamerGun con Orbitron */
.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-style: italic;
}
.logo-gradient {
    background: linear-gradient(135deg, #ffffff 40%, var(--brand-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
}
.tracking-tighter {
    letter-spacing: -0.05em;
}
.slogan-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 0.25rem;
    white-space: nowrap;
}
@media (max-width: 639px) {
    .slogan-text { font-size: 0.6rem; }
}
/* Nuevos estilos para el header mejorado */
.brand-font {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1.3px;
    padding-right: 2px;
}
.slogan-font {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10.2px;
    letter-spacing: 0.115em;
    word-spacing: -0.05em;
    display: block;
    margin-top: -2px;
}
/* Texto del teleprompter: Outfit por defecto (legible y moderna) */
.teleprompter-segment {
    font-family: 'Outfit', sans-serif;
    transition: font-size 0.3s ease-in-out;
}
/* Animación para segmento activo */
.teleprompter-segment.active {
    transform: scale(1.05);
    animation: segment-grow 0.15s ease-out forwards;
}
@keyframes segment-grow {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.05);
    }
}
/* Estilos para tooltip de lectura */
.reading-info-container {
    position: relative;
}
.reading-info-container:hover .reading-tooltip {
    opacity: 1 !important;
    visibility: visible !important;
}
.reading-tooltip {
    pointer-events: none;
}
/* Asegurar que el tooltip aparezca por encima de todo */
.bg-white\/5:hover .reading-tooltip {
    z-index: 999999 !important;
}
/* Modal Mi Perfil: selects y options legibles en tema oscuro */
#profileModal select.profile-select option {
    background: #1f2937;
    color: #fff;
}
/* Filtro esmerilado del listado de guiones (mismo que teleprompterScroll) */
#contentListContainer {
    backdrop-filter: blur(16px) brightness(1) contrast(1) grayscale(0) hue-rotate(0) invert(0) opacity(1) saturate(1) sepia(0) !important;
    -webkit-backdrop-filter: blur(16px) brightness(1) contrast(1) grayscale(0) hue-rotate(0) invert(0) opacity(1) saturate(1) sepia(0) !important;
}
/* En móvil: forzar capa de composición para que backdrop-filter funcione igual que en teleprompterScroll (fixed) */
@media (max-width: 767px) {
    #contentListContainer {
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        isolation: isolate;
        -webkit-backface-visibility: hidden;
    }
}

/* Fondo de burbujas 3D para la creación de guiones (basado en animacion guion creacion fondo.txt) */
.create-script-bubbles-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 600px;
    pointer-events: none;
}

.create-script-bubble {
    position: absolute;
    border-radius: 50%;
    opacity: 0.7;
    animation: createScriptBubbleMove 3s infinite;
    transform-style: preserve-3d;
}

@keyframes createScriptBubbleMove {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(0, 0, -1000px);
    }
}

/* Modal de bienvenida / onboarding (pasos con dots) */
#onboardingModal .onboarding-panel {
    display: none;
}
#onboardingModal .onboarding-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}
#onboardingModal .onboarding-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
}
#onboardingModal .onboarding-dot.active {
    background: #10b981;
    transform: scale(1.2);
}
#onboardingModal .onboarding-dot.done {
    background: #10b981;
    opacity: 0.6;
}
