/* ================================================
   DELTAPAPUS - Deltarune Theme CSS
   Estilo: 8BitOperator JVE (local) + Retro CRT
   ================================================ */

/* Cargar fuente local 8BitOperator JVE */
@font-face {
    font-family: '8BitOperator JVE';
    src: url('./fonts/8bitoperator_jve.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Variables de color - Paleta oficial de Deltarune */
:root {
    /* Colores principales del juego */
    --deltarune-black: #000000;
    --deltarune-white: #ffffff;
    --deltarune-blue: #00ffff;      /* Alma azul */
    --deltarune-pink: #ff0080;      /* Alma rosada/magenta */
    --deltarune-yellow: #ffff00;    /* Amor amarillo */
    --deltarune-red: #ff0000;       /* Determinación roja */
    --deltarune-green: #00ff00;     /* Esperanza verde */
    --deltarune-purple: #9c7bff;    /* Púrpura místico */
    
    /* Variantes oscuras para UI */
    --ui-bg: #000000;
    --ui-border: #ffffff;
    --ui-shadow: rgba(0, 0, 0, 0.5);
    
    /* Efectos CRT */
    --scanline-color: rgba(0, 0, 0, 0.5);
    --glow-intensity: 0.3;
    
    /* Tipografía - 8BitOperator JVE local */
    --font-main: '8BitOperator JVE', 'Courier New', monospace;
    --font-display: '8BitOperator JVE', 'Courier New', monospace;
    --font-size-base: 18px;
}

/* Reset básico */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.dialog-box {
    background: linear-gradient(135deg, #0d0514 0%, #2d0a4a 100%);
    border: 3px solid #00e5e5;              /* cyan un toque menos saturado */
    box-shadow: none;                        /* chau glow exterior/inset */
}
html {
    scroll-behavior: smooth;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55); /* ajustá 0.4–0.7 según qué tan oscura es tu imagen */
    z-index: -1;
}
body {
    font-family: var(--font-main);
    background: #0a0a0a url('fondo.webp') no-repeat center center fixed;
    background-size: cover;
    color: var(--deltarune-white);
    font-size: var(--font-size-base);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* ============================================
   HEADER
   ============================================ */

.main-header {
    background: var(--ui-bg);
    padding: 3rem 2rem;
    text-align: center;
    border-bottom: 4px solid var(--ui-border);
    position: relative;
    margin-bottom: 2rem;
}

.logo {
    width: 120px;
    height: 120px;
    margin-bottom: 1rem;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 10px var(--deltarune-blue));
}


.main-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 4px;
    /* Glitch estático sutil, sin animación */
    text-shadow:
        2px 2px 0 rgba(255, 0, 64, 0.7),
        -2px -2px 0 rgba(255, 0, 128, 0.7);
}
@keyframes header-glow {
    0% { filter: drop-shadow(0 0 5px var(--deltarune-blue)); }
    100% { filter: drop-shadow(0 0 15px var(--deltarune-pink)); }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #000000 0%, #1a0033 100%);
    border: 4px solid var(--deltarune-blue);
    margin: 2rem;
    position: relative;
    box-shadow: 
        0 0 20px var(--deltarune-blue),
        inset 0 0 20px rgba(0, 255, 255, 0.2);
}

.tagline {
    font-size: 1.4rem;
    color: var(--deltarune-white);
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.8);
    border-left: 4px solid var(--deltarune-yellow);
}

.tagline::after {
    content: "▮";
    color: var(--deltarune-yellow);
    animation: blink 1s step-start infinite;
    margin-left: 5px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ============================================
   BOTONES
   ============================================ */

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: 4px solid var(--ui-border);
    border-radius: 0;
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.15s ease;
    cursor: pointer;
    position: relative;
    margin: 0.5rem;
}

.btn-primary {
    background: var(--deltarune-blue);
    color: var(--deltarune-black);
}

.btn-primary::before {
    content: "▶ ";
    opacity: 0;
    transition: opacity 0.1s;
}

.btn-primary:hover {
    background: var(--deltarune-yellow);
    transform: scale(1.05);
    box-shadow: 
        0 0 20px var(--deltarune-yellow),
        inset 0 0 10px rgba(255, 255, 255, 0.5);
}

.btn-primary:hover::before { opacity: 1; }

.btn-secondary {
    background: transparent;
    color: var(--deltarune-white);
}

.btn-secondary:hover {
    background: var(--deltarune-pink);
    border-color: var(--deltarune-pink);
    color: var(--deltarune-black);
    box-shadow: 0 0 15px var(--deltarune-pink);
}

/* ============================================
   ALERTAS
   ============================================ */

.alert {
    padding: 1.5rem 2rem;
    border: 4px solid var(--deltarune-yellow);
    background: rgba(0, 0, 0, 0.9);
    margin: 2rem;
    position: relative;
}

.alert::before { content: "⚠ "; font-size: 1.5rem; }
.alert-success { border-color: var(--deltarune-green); }
.alert-success::before { content: "✓ "; }

/* ============================================
   SECCIONES
   ============================================ */

section {
    padding: 3rem 2rem;
    margin: 2rem;
    background: var(--ui-bg);
    border: 4px solid var(--ui-border);
    position: relative;
}

section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 49%, rgba(255,255,255,0.03) 50%, transparent 51%);
    background-size: 3px 3px;
    pointer-events: none;
}

h2 {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    color: var(--deltarune-white);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px dashed var(--deltarune-blue);
    text-shadow: 2px 2px 0 var(--deltarune-red);
}

.section-subtitle {
    color: var(--deltarune-blue);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-style: italic;
}

/* ============================================
   CARDS
   ============================================ */

.about-grid,
.staff-grid,
.channels-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin-top: 2rem;
}

.about-card,
.staff-card,
.channel-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    padding: 1.5rem;
    border: 3px solid var(--deltarune-purple);
    position: relative;
    transition: all 0.2s;
}

.about-card:hover,
.staff-card:hover,
.channel-card:hover {
    border-color: var(--deltarune-yellow);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.about-card h3,
.staff-card h4,
.channel-card h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--deltarune-yellow);
    margin-bottom: 0.75rem;
}

.about-card p,
.staff-card p,
.channel-card p {
    color: var(--deltarune-white);
    font-size: 1.1rem;
    line-height: 1.6;
}

.username {
    color: var(--deltarune-pink);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
}

.bio { color: var(--deltarune-blue); }

/* ============================================
   STAFF SECTION
   ============================================ */

.staff h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--deltarune-white);
    margin: 2rem 0 1rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-left: 5px solid var(--deltarune-blue);
}

.staff-grid { padding-left: 1rem; }

/* ============================================
   EVENT STATUS
   ============================================ */

.event-status {
    background: linear-gradient(135deg, #1a001a 0%, #00001a 100%);
    padding: 2rem;
    border: 4px solid var(--deltarune-pink);
    text-align: center;
    position: relative;
    animation: pulse-border 3s ease-in-out infinite;
}

@keyframes pulse-border {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 0, 128, 0.3); }
    50% { box-shadow: 0 0 40px rgba(255, 0, 128, 0.6); }
}

.status-active {
    color: var(--deltarune-green);
    font-size: 1.4rem;
    margin: 1.5rem 0;
    font-weight: bold;
    text-shadow: 0 0 10px var(--deltarune-green);
}

.status-inactive {
    color: var(--deltarune-red);
    margin: 1.5rem 0;
    font-size: 1.3rem;
}

/* ============================================
   CHANNELS
   ============================================ */

.channels h2 span { opacity: 0.5; font-size: 0.7em; }
.channel-card { position: relative; }
.channel-card::before {
    content: "#";
    color: var(--deltarune-blue);
    margin-right: 5px;
}

/* ============================================
   FORMULARIO ANÓNIMO
   ============================================ */

.contact {
    background: linear-gradient(to bottom, #0a0a0a, #1a1a1a);
}

.anonymous-form {
    max-width: 600px;
    margin: 2rem auto;
}

.anonymous-form textarea {
    width: 100%;
    padding: 1.5rem;
    border: 3px solid var(--deltarune-white);
    background: #000000;
    color: var(--deltarune-green);
    font-family: var(--font-main);
    font-size: 1.2rem;
    resize: vertical;
    min-height: 200px;
    outline: none;
    transition: all 0.2s;
    box-shadow: inset 0 0 10px rgba(0, 255, 0, 0.2);
}

.anonymous-form textarea:focus {
    border-color: var(--deltarune-green);
    box-shadow: 
        inset 0 0 20px rgba(0, 255, 0, 0.3),
        0 0 20px rgba(0, 255, 0, 0.4);
}

.anonymous-form textarea::placeholder {
    color: rgba(0, 255, 0, 0.5);
}

.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

/* ============================================
   FOOTER
   ============================================ */

.main-footer {
    background: #000000;
    padding: 3rem 2rem;
    margin: 4rem 2rem 2rem;
    border-top: 4px solid var(--deltarune-white);
    position: relative;
}

.main-footer::before {
    content: "♦ ♦ ♦";
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--deltarune-pink);
    font-size: 2rem;
}

.footer-content {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.footer-section h4 {
    font-family: var(--font-display);
    color: var(--deltarune-yellow);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-section p {
    color: var(--deltarune-white);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.footer-section a {
    color: var(--deltarune-blue);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: var(--deltarune-pink);
    text-shadow: 0 0 10px var(--deltarune-pink);
}

/* ============================================
   VIDEOS
   ============================================ */

.videos { text-align: center; }
.videos button { margin-top: 1rem; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .container {
        padding: 1rem;
        margin: 0;
    }
    
    section {
        margin: 1rem;
        padding: 2rem 1rem;
    }
    
    .main-header {
        padding: 2rem 1rem;
        margin-bottom: 1rem;
    }
    
    .logo {
        width: 80px;
        height: 80px;
    }
    
    .hero {
        margin: 1rem;
        padding: 2rem 1rem;
    }
    
    .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .about-grid,
    .staff-grid,
    .channels-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   ANIMACIONES
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section { animation: fadeIn 0.6s ease-out; }

/* Scrollbar personalizado */
::-webkit-scrollbar {
    width: 15px;
}

::-webkit-scrollbar-track {
    background: #000000;
    border: 2px solid var(--deltarune-white);
}

::-webkit-scrollbar-thumb {
    background: var(--deltarune-blue);
    border: 2px solid var(--deltarune-white);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--deltarune-pink);
}

::selection {
    background: var(--deltarune-pink);
    color: var(--deltarune-black);
}