/**
 * Estilos Navideños para MyAAC
 * Tema navideño con colores rojo, verde, dorado y decoraciones
 */

/* Importar fuente épica */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800&family=MedievalSharp&family=Uncial+Antiqua&display=swap');

/* Efectos de brillo navideño */
@keyframes twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes glow {
    0%, 100% { 
        text-shadow: 0 0 5px #ffd700, 0 0 10px #ffd700, 0 0 15px #ffd700;
    }
    50% { 
        text-shadow: 0 0 10px #ff6b6b, 0 0 20px #ff6b6b, 0 0 30px #ff6b6b;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Decoraciones navideñas flotantes */
.christmas-decoration {
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    animation: float 3s ease-in-out infinite;
}

/* Barra épica sangrienta */
.christmas-lights {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 14px;
    background: 
        linear-gradient(90deg, 
            #1a0000 0%, 
            #4d0000 10%, 
            #8b0000 20%, 
            #cc0000 30%, 
            #8b0000 40%, 
            #4d0000 50%, 
            #1a0000 60%, 
            #4d0000 70%, 
            #8b0000 80%, 
            #cc0000 90%, 
            #1a0000 100%);
    background-size: 300% 100%;
    animation: bloodFlow 4s linear infinite;
    opacity: 0.95;
    z-index: 9997;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 2px 10px rgba(139, 0, 0, 0.8),
        0 0 20px rgba(255, 0, 0, 0.4),
        inset 0 0 15px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 0, 0, 0.6);
}

@keyframes bloodFlow {
    0% { background-position: 0% 0%; }
    100% { background-position: 300% 0%; }
}

/* Texto épico sangriento animado */
.christmas-lights-text {
    position: absolute;
    white-space: nowrap;
    font-family: 'Cinzel', 'MedievalSharp', 'Uncial Antiqua', 'Copperplate', 'Copperplate Gothic Bold', 'Baskerville', serif;
    font-weight: 700;
    font-size: 13px;
    color: #ffd700;
    background: transparent;
    padding: 0;
    border-radius: 0;
    text-shadow: 
        2px 2px 0px rgba(0, 0, 0, 0.9),
        0 0 10px rgba(255, 215, 0, 0.8),
        0 0 20px rgba(255, 0, 0, 0.6),
        0 0 30px rgba(139, 0, 0, 0.4);
    animation: textMove 18s linear infinite, bloodTextGlow 2s ease-in-out infinite;
    letter-spacing: 5px;
    text-transform: uppercase;
    z-index: 9998;
    box-shadow: none;
    border: none;
    line-height: 1.1;
    font-style: normal;
}

@keyframes textMove {
    0% {
        transform: translateX(100vw);
    }
    100% {
        transform: translateX(calc(-100% - 100vw));
    }
}

/* Efecto de brillo sangriento en el texto */
@keyframes bloodTextGlow {
    0%, 100% {
        color: #ffd700;
        text-shadow: 
            2px 2px 0px rgba(0, 0, 0, 0.9),
            0 0 10px rgba(255, 215, 0, 0.8),
            0 0 20px rgba(255, 0, 0, 0.6),
            0 0 30px rgba(139, 0, 0, 0.4);
    }
    50% {
        color: #ffed4e;
        text-shadow: 
            2px 2px 0px rgba(0, 0, 0, 0.9),
            0 0 15px rgba(255, 215, 0, 1),
            0 0 30px rgba(255, 0, 0, 0.8),
            0 0 45px rgba(139, 0, 0, 0.6);
    }
}

/* Estilos para cajas y contenedores */
.Box {
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.1) 0%, rgba(0, 100, 0, 0.1) 100%);
}

.Box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff0000, #00ff00, #ffd700, #ff0000);
    background-size: 400% 400%;
    border-radius: 4px;
    z-index: -1;
    animation: borderGlow 3s ease infinite;
    opacity: 0.3;
}

@keyframes borderGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Títulos con efecto navideño */
.Title, .BorderTitleText {
    position: relative;
    animation: glow 2s ease-in-out infinite;
}

/* Botones navideños */
.MediumButtonBackground, .Button {
    transition: all 0.3s ease;
    position: relative;
}

.MediumButtonBackground:hover, .Button:hover {
    filter: brightness(1.2);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

/* Menú con efecto navideño */
.menuitem {
    position: relative;
}

.menuitem::after {
    content: '❄';
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 10px;
    opacity: 0.5;
    animation: twinkle 2s ease-in-out infinite;
}

/* Links navideños */
a {
    transition: color 0.3s ease;
}

a:hover {
    color: #ffd700 !important;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

/* Scrollbar navideño */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(139, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff0000, #00ff00, #ffd700);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff6b6b, #90ee90, #ffeb3b);
}

/* Fondos navideños sutiles */
/* Comentado para no interferir con el fondo del dragón en epic_background.css */
/*
body {
    background: linear-gradient(135deg, 
        rgba(139, 0, 0, 0.05) 0%, 
        rgba(0, 100, 0, 0.05) 50%, 
        rgba(139, 0, 0, 0.05) 100%);
    background-attachment: fixed;
}
*/

/* Efecto de copos de nieve adicionales */
.snowflake {
    position: fixed;
    color: #fff;
    font-size: 1em;
    font-family: Arial;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    animation: snowfall linear infinite;
    pointer-events: none;
    z-index: 9999;
}

@keyframes snowfall {
    0% {
        transform: translateY(0vh) translateX(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateX(var(--drift)) rotate(360deg);
        opacity: 0;
    }
}

/* Estrellas navideñas */
.christmas-star {
    position: fixed;
    color: #ffd700;
    font-size: 20px;
    animation: twinkle 1.5s ease-in-out infinite;
    pointer-events: none;
    z-index: 9998;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

/* Mensaje navideño flotante */
.christmas-message {
    position: fixed;
    top: 50px;
    right: 20px;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.9), rgba(0, 100, 0, 0.9));
    color: #ffd700;
    padding: 15px 20px;
    border-radius: 10px;
    border: 2px solid #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    z-index: 10000;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    text-align: center;
    animation: float 3s ease-in-out infinite;
    display: none; /* Se puede activar con JavaScript */
}

.christmas-message::before {
    content: '🎄';
    font-size: 24px;
    display: block;
    margin-bottom: 5px;
}

/* Efectos en las cajas de contenido */
.BoxContent {
    position: relative;
}

.BoxContent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 0, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 255, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Tablas con estilo navideño */
.TableContent, .Table3 {
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.TableContent tr:hover {
    background-color: rgba(255, 215, 0, 0.1) !important;
}

/* InfoBar navideño */
.InfoBar {
    position: relative;
}

.InfoBar::after {
    content: '✨';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    animation: twinkle 2s ease-in-out infinite;
    opacity: 0.7;
}

/* Responsive - mantener funcionalidad en móviles */
@media (max-width: 768px) {
    .christmas-lights {
        height: 20px;
    }
    
    .christmas-message {
        font-size: 12px;
        padding: 10px 15px;
        right: 10px;
        top: 30px;
    }
}

/* Asegurar que los elementos interactivos sigan funcionando */
button, a, input, select, textarea {
    position: relative;
    z-index: 1;
}

/* Efecto de nieve mejorado - overlay */
#snowCanvas {
    mix-blend-mode: screen;
}

