/* 
 * Tema San Valentín - InkaBox Express
 * Efectos románticos para febrero
 */

/* Variables CSS para esquemas de colores */
:root {
    --valentine-primary: #e91e63;
    --valentine-secondary: #f8bbd9;
    --valentine-accent: #ff4081;
}

/* Contenedores de efectos */
.valentine-hearts,
.valentine-sparkles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

/* Corazones flotantes */
.valentine-heart {
    position: absolute;
    top: -20px;
    font-size: 1em;
    pointer-events: none;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
    filter: drop-shadow(0 0 3px rgba(233, 30, 99, 0.3));
}

/* Animaciones de corazones */
@keyframes heartFloat {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(calc(100vh + 20px)) rotate(15deg);
        opacity: 0;
    }
}

@keyframes heartSway {
    0% {
        transform: translateY(-20px) translateX(0px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    25% {
        transform: translateY(25vh) translateX(20px) rotate(5deg);
    }
    50% {
        transform: translateY(50vh) translateX(-15px) rotate(-3deg);
    }
    75% {
        transform: translateY(75vh) translateX(10px) rotate(2deg);
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(calc(100vh + 20px)) translateX(0px) rotate(0deg);
        opacity: 0;
    }
}

@keyframes heartBounce {
    0% {
        transform: translateY(-20px) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(10vh) scale(1.1);
    }
    20% {
        transform: translateY(15vh) scale(0.9);
    }
    30% {
        transform: translateY(25vh) scale(1.05);
    }
    40% {
        transform: translateY(30vh) scale(0.95);
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(calc(100vh + 20px)) scale(0.8);
        opacity: 0;
    }
}

/* Brillos/Sparkles */
.valentine-sparkle {
    position: absolute;
    font-size: 0.8em;
    pointer-events: none;
    animation: sparkleGlow 3s ease-in-out infinite;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.8));
}

@keyframes sparkleGlow {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
}

/* Efecto de pulso romántico */
.valentine-pulse {
    animation: valentinePulse 2s ease-in-out infinite;
}

@keyframes valentinePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(233, 30, 99, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(233, 30, 99, 0);
    }
}

/* Modificaciones temáticas cuando está activo */
body.valentine-active {
    /* Aplicar sutiles cambios de color */
}

/* Botones con tema San Valentín */
body.valentine-active .btn-primary {
    background: linear-gradient(135deg, var(--valentine-primary) 0%, var(--valentine-accent) 100%);
    border-color: var(--valentine-primary);
    transition: all 0.3s ease;
}

body.valentine-active .btn-primary:hover {
    background: linear-gradient(135deg, var(--valentine-accent) 0%, var(--valentine-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

/* Enlaces con efecto romántico */
body.valentine-active a {
    transition: color 0.3s ease;
}

body.valentine-active a:hover {
    color: var(--valentine-primary) !important;
    text-shadow: 0 0 5px rgba(233, 30, 99, 0.3);
}

/* Cards con borde romántico */
body.valentine-active .card {
    border: 1px solid rgba(233, 30, 99, 0.2);
    transition: all 0.3s ease;
}

body.valentine-active .card:hover {
    border-color: var(--valentine-primary);
    box-shadow: 0 4px 20px rgba(233, 30, 99, 0.15);
}

/* Hero section con gradiente romántico */
body.valentine-active .hero-section {
    background: linear-gradient(135deg, 
        rgba(233, 30, 99, 0.05) 0%, 
        rgba(248, 187, 217, 0.05) 50%, 
        rgba(255, 64, 129, 0.05) 100%);
}

/* Navbar con toque romántico */
body.valentine-active .navbar {
    border-bottom: 2px solid rgba(233, 30, 99, 0.1);
}

/* Iconos con efecto de latido */
body.valentine-active .fas,
body.valentine-active .fab {
    transition: all 0.3s ease;
}

body.valentine-active .fas:hover,
body.valentine-active .fab:hover {
    color: var(--valentine-primary);
    transform: scale(1.1);
}

/* Formularios con borde romántico */
body.valentine-active .form-control:focus {
    border-color: var(--valentine-primary);
    box-shadow: 0 0 0 0.2rem rgba(233, 30, 99, 0.25);
}

/* Badges con colores San Valentín */
body.valentine-active .badge-primary {
    background-color: var(--valentine-primary);
}

body.valentine-active .badge-secondary {
    background-color: var(--valentine-secondary);
    color: #333;
}

/* Alertas con toque romántico */
body.valentine-active .alert-info {
    background-color: rgba(248, 187, 217, 0.1);
    border-color: var(--valentine-secondary);
    color: #721c24;
}

/* Ocultar efectos por defecto */
.valentine-effects {
    display: none;
}

/* Mostrar cuando está activo */
body.valentine-active .valentine-effects {
    display: block;
}

/* Animación especial para elementos importantes */
body.valentine-active .logo,
body.valentine-active .brand {
    animation: valentineGlow 3s ease-in-out infinite;
}

@keyframes valentineGlow {
    0%, 100% {
        filter: drop-shadow(0 0 0 transparent);
    }
    50% {
        filter: drop-shadow(0 0 8px rgba(233, 30, 99, 0.3));
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .valentine-heart {
        font-size: 0.8em;
    }
    
    .valentine-sparkle {
        font-size: 0.6em;
    }
    
    /* Reducir intensidad en móviles */
    body.valentine-active .valentine-pulse {
        animation-duration: 3s;
    }
}

@media (max-width: 480px) {
    .valentine-heart {
        font-size: 0.7em;
    }
    
    .valentine-sparkle {
        font-size: 0.5em;
    }
}

/* Modo de alto contraste (accesibilidad) */
@media (prefers-reduced-motion: reduce) {
    .valentine-heart,
    .valentine-sparkle,
    .valentine-pulse {
        animation: none !important;
    }
    
    body.valentine-active .valentine-effects {
        display: none !important;
    }
}

/* Modo oscuro compatibility */
@media (prefers-color-scheme: dark) {
    :root {
        --valentine-primary: #f48fb1;
        --valentine-secondary: #e1bee7;
        --valentine-accent: #ff80ab;
    }
    
    .valentine-heart {
        filter: drop-shadow(0 0 3px rgba(244, 143, 177, 0.5));
    }
    
    .valentine-sparkle {
        filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.6));
    }
}