/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    overflow-y: auto;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Gradiente de fondo animado */
.gradient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, 
        var(--center-color, #00ff00) 0%, 
        var(--center-color, #00ff00) 10%,
        rgba(0, 255, 0, 0.5) 30%,
        rgba(0, 255, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.8) 70%,
        var(--edge-color, #000000) 100%);
    z-index: -1;
    animation: pulseGradient 4s ease-in-out infinite;
}

@keyframes pulseGradient {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.95;
    }
}

/* Contenedor principal */
.content-container {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    max-width: 1200px;
    padding: 20px;
}

/* Sección del header */
.header-section {
    margin-bottom: 40px;
    animation: fadeInDown 1s ease-out;
}

/* Título principal */
.main-title {
    font-size: var(--title-size, 72px);
    color: var(--title-color, #ffffff);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 20px;
    text-shadow: 
        0 0 10px rgba(0, 255, 0, 0.5),
        0 0 20px rgba(0, 255, 0, 0.3),
        0 0 30px rgba(0, 255, 0, 0.1);
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(0, 255, 0, 0.5),
            0 0 20px rgba(0, 255, 0, 0.3),
            0 0 30px rgba(0, 255, 0, 0.1);
    }
    50% {
        text-shadow: 
            0 0 20px rgba(0, 255, 0, 0.8),
            0 0 30px rgba(0, 255, 0, 0.5),
            0 0 40px rgba(0, 255, 0, 0.3);
    }
}

/* Subtítulo */
.subtitle {
    font-size: 24px;
    color: var(--subtitle-color, #00ff00);
    font-weight: 300;
    opacity: 0.9;
    letter-spacing: 2px;
}

/* Contenedor multimedia */
.media-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    animation: fadeIn 1.5s ease-out;
}

.media-element {
    max-width: 100%;
    max-height: 60vh;
    width: auto;
    height: auto;
    border-radius: 10px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(0, 255, 0, 0.2);
}

/* Botón de mute */
.mute-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--mute-button-color, rgba(0, 255, 0, 0.2));
    border: 2px solid rgba(0, 255, 0, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    animation: fadeIn 2s ease-out;
}

.mute-button:hover {
    background: rgba(0, 255, 0, 0.4);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
}

.mute-button:active {
    transform: scale(0.95);
}

.mute-icon {
    width: 24px;
    height: 24px;
    color: #ffffff;
    transition: opacity 0.3s ease;
}

/* Posiciones del botón de mute */
.mute-button.bottom-left {
    right: auto;
    left: 30px;
}

.mute-button.top-right {
    bottom: auto;
    top: 30px;
}

.mute-button.top-left {
    bottom: auto;
    top: 30px;
    right: auto;
    left: 30px;
}

/* Tamaños del botón */
.mute-button.small {
    width: 40px;
    height: 40px;
}

.mute-button.small .mute-icon {
    width: 20px;
    height: 20px;
}

.mute-button.large {
    width: 60px;
    height: 60px;
}

.mute-button.large .mute-icon {
    width: 30px;
    height: 30px;
}

/* Indicador de carga */
.loading-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    display: none;
}

.loading-indicator.active {
    display: block;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 255, 0, 0.3);
    border-top: 3px solid #00ff00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media queries para responsive */
@media (max-width: 768px) {
    .main-title {
        font-size: 48px;
        letter-spacing: 2px;
    }
    
    .subtitle {
        font-size: 18px;
    }
    
    .media-container {
        min-height: 300px;
    }
    
    .mute-button {
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 32px;
        letter-spacing: 1px;
    }
    
    .subtitle {
        font-size: 16px;
    }
}

/* Soporte para fuentes personalizadas */
@font-face {
    font-family: 'CustomFont';
    src: url('/static/fonts/custom.ttf') format('truetype'),
         url('/static/fonts/custom.woff') format('woff'),
         url('/static/fonts/custom.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.custom-font-loaded .main-title,
.custom-font-loaded .subtitle {
    font-family: 'CustomFont', var(--font-fallback, sans-serif);
}
