/**
 * Crypto Soccer Theme – Landing Page Styles
 *
 * Estilos optimizados para un alto impacto visual y legibilidad en la página principal.
 * Estos estilos anulan los estilos base para esta página específica.
 */

/* Canvas para Partículas */
.confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1; /* Detrás del contenido pero sobre el fondo */
    display: none;
    /* Oculto por defecto */
}


/* 1. Fondo y Capa de Superposición */
body.page-template-page-landing::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* DARK MODE: Visibilidad del fondo reducida en un 50% */
    background: linear-gradient(170deg, rgba(10, 14, 19, 0.7) 0%, rgba(10, 14, 19, 0.8) 100%);
    backdrop-filter: blur(2px); /* Desenfoque suave del fondo */
    z-index: 0;
}

/* LIGHT MODE: Visibilidad del fondo aumentada en un 50% */
html.cs-light body.page-template-page-landing::before {
    background: linear-gradient(170deg, rgba(240, 242, 245, 0.3) 0%, rgba(240, 242, 245, 0.4) 100%);
    backdrop-filter: blur(3px); 
}


/* 5. Jerarquía Visual y Contenedor Principal */
.cs-landing-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 90%; /* Ancho en móviles */
    max-width: 900px;
    /* Ancho máximo en escritorio */
    padding: 2rem 1rem;
    /* Espaciado vertical generoso */
}

/* 6. Animación de entrada */
.cs-landing-hero-content {
    animation: cs-hero-fade-in 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

@keyframes cs-hero-fade-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Nuevo contenedor para todo el contenido central */
.cs-hero-content-box {
    background-color: rgba(10, 14, 19, 0.7);
    /* Fondo oscuro base */
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 1rem;
    width: 100%;
    max-width: 600px;
    position: relative;
    /* Para el borde neón */
    border: 2px solid transparent;
    /* Espacio para el borde animado */
    box-shadow: 0 0 15px rgba(247, 147, 26, 0.6);
    /* Resplandor inicial con color Bitcoin */
    transition: transform 0.1s linear;
    /* Transición para efecto Parallax */
}

/* Borde Neón Animado (se activa con la clase .effects-active) */
.cs-hero-content-box::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #F7931A, #ffc107, #F7931A, #d45a00, #F7931A);
    border-radius: 1.1rem;
    z-index: -1;
    background-size: 300%;
    animation: none; /* Animación desactivada por defecto */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.cs-hero-content-box.effects-active::before {
    opacity: 1;
    animation: neonBorder 5s linear infinite;
}

@keyframes neonBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

html.cs-light .cs-hero-content-box {
    background-color: #F7931A;
    /* Fondo color Bitcoin para light mode */
    border: 1px solid #e69500;
    box-shadow: none;
}

html.cs-light .cs-hero-content-box::before {
    opacity: 0;
}


/* 2. Titular “CRYPTO SOCCER” */
.cs-hero-title {
    color: #FFFFFF;
    /* Relleno blanco sólido */
    text-shadow: 0px 3px 8px rgba(0, 0, 0, 0.7);
    margin: 0;
    line-height: 1.1;
    /* Ajuste para que no se separe tanto */
}
/* Sombra para máxima legibilidad en Light Mode */
html.cs-light .cs-hero-title {
    color: #FFFFFF;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* 3. Sub-headline y copy secundario */
.cs-hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    /* Blanco al 90% de opacidad */
    font-size: 1.125rem; /* ~18px */
    line-height: 1.5;
    /* Más espaciado para respirar */
    max-width: 500px;
    margin-top: 1rem;
    margin-bottom: 2.5rem;
}
html.cs-light .cs-hero-subtitle {
    color: #FFFFFF;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

/* 4. Botones CTA Optimizados */
.cs-hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cs-hero-btn {
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: var(--cs-green-compliant-text);
    color: #FFFFFF;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.cs-hero-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(29, 242, 96, 0.4);
    filter: brightness(1.2);
}

/* Botón Secundario (Login) - Ahora hereda el estilo del primario */
.cs-hero-btn.cs-btn-secondary {
    background: var(--cs-green-compliant-text);
}

/* Unificamos los botones en Light Mode para que ambos sean verdes */
html.cs-light .cs-hero-btn.cs-btn-secondary {
    background: var(--cs-green-compliant-text);
    color: #FFFFFF;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.8);
    font-weight: bold;
}
html.cs-light .cs-hero-btn.cs-btn-secondary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(29, 242, 96, 0.4);
}

/* Botón para iniciar efectos */
.cs-effects-trigger {
    display: inline-block;
    margin-top: 2rem;
    color: #FFC107;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 5px #FFC107);
}

.cs-effects-trigger:hover {
    color: #FFFFFF;
    transform: scale(1.1);
}

html.cs-light .cs-effects-trigger {
    color: #FFFFFF;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}

/* Instrucción para detener efectos */
.cs-effects-instruction {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

html.cs-light .cs-effects-instruction {
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 1px 1px 1px rgba(0,0,0,0.2);
}