/*
Theme Name: Kadence Arcade Child
Theme URI: https://lab.antoniodiaz.pro
Description: Child theme de Kadence para demostración de WordPress Arcade Games - Creado para la presentación del Badajoz WordPress Meetup (12 marzo 2026)
Author: Antonio Díaz Caldera
Author URI: https://antoniodiaz.pro
Template: kadence
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kadence-arcade-child

Creado por Antonio Díaz Caldera para la charla "WordPress fuera del navegador: 
cómo convertir tu web en experiencias reales" en el Badajoz WordPress Meetup.
*/

/* ============================================
   ESTILOS PERSONALIZADOS PARA ARCADE
   ============================================ */

/* Ocultar header y footer en páginas de juegos */
body.single-arcade_game #masthead,
body.single-arcade_game #colophon,
body.single-arcade_game #wpadminbar {
    display: none !important;
}

body.single-arcade_game {
    background: #000;
    margin: 0 !important;
    padding: 0 !important;
}

body.single-arcade_game .site {
    background: #000;
}

body.single-arcade_game .content-area {
    margin: 0 !important;
    padding: 0 !important;
}

/* Estilos para la página del juego */
.arcade-game-fullscreen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #000;
    padding: 20px;
}

.arcade-game-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    padding: 15px 30px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #00ff00;
    box-shadow: 0 4px 20px rgba(0, 255, 0, 0.3);
}

.arcade-back-btn {
    color: #00ff00;
    text-decoration: none;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: bold;
    padding: 8px 20px;
    border: 2px solid #00ff00;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.arcade-back-btn:hover {
    background: #00ff00;
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.arcade-game-title {
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 24px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.arcade-game-wrapper {
    margin-top: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.arcade-game-iframe {
    border: 4px solid #00ff00;
    box-shadow: 
        0 0 20px rgba(0, 255, 0, 0.5),
        0 0 40px rgba(0, 255, 0, 0.3),
        inset 0 0 20px rgba(0, 255, 0, 0.1);
    background: #000;
    display: block;
}

/* Instrucciones del juego */
.arcade-instructions {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    padding: 15px 30px;
    border: 2px solid #00ff00;
    border-radius: 8px;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 255, 0, 0.3);
    z-index: 999;
}

/* Grid de juegos en /arcade/ */
.arcade-grid {
    padding: 40px 20px;
}

.arcade-game-card {
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
    border: 2px solid #00ff00;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.arcade-game-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00ff00, #00cc00, #009900);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.arcade-game-card:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 20px 40px rgba(0, 255, 0, 0.3),
        0 0 60px rgba(0, 255, 0, 0.2);
}

.arcade-game-card:hover::before {
    opacity: 0.1;
}

.arcade-game-card .game-icon {
    font-size: 80px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(0, 255, 0, 0.5));
}

.arcade-game-card h3 {
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 24px;
    margin: 15px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.arcade-game-card p {
    color: #00cc00;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    margin: 15px 0;
}

.arcade-play-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: transparent;
    color: #00ff00;
    border: 2px solid #00ff00;
    border-radius: 6px;
    text-decoration: none;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 16px;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.arcade-play-btn:hover {
    background: #00ff00;
    color: #000;
    box-shadow: 
        0 0 20px rgba(0, 255, 0, 0.6),
        0 0 40px rgba(0, 255, 0, 0.4);
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .arcade-game-header {
        padding: 10px 15px;
    }
    
    .arcade-game-title {
        font-size: 18px;
    }
    
    .arcade-back-btn {
        font-size: 14px;
        padding: 6px 15px;
    }
    
    .arcade-game-wrapper {
        margin-top: 60px;
    }
    
    .arcade-game-iframe {
        max-width: 100%;
        height: auto !important;
    }
    
    .arcade-instructions {
        font-size: 12px;
        padding: 10px 20px;
        bottom: 10px;
    }
}

/* Animación de escaneo retro */
@keyframes scan {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 100%;
    }
}

.arcade-game-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 255, 0, 0.03),
        rgba(0, 255, 0, 0.03) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    animation: scan 8s linear infinite;
}

/* Efecto CRT */
.arcade-game-iframe {
    position: relative;
}

.arcade-game-iframe::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
}
