/* ============================================
   PÁGINA DE REGLAS - SQUID GAME
   Archivo CSS separado para WordPress
   ============================================ */

/* ============================================
   FORZAR ANCHO COMPLETO (QUITAR MÁRGENES)
   ============================================ */

/* Remover márgenes del tema Astra para la página de reglas */
body.page-template-reglas .site-content,
body.page-template-reglas .ast-container,
body.page-template-reglas .entry-content {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Hacer que el main ocupe todo el ancho */
body.page-template-reglas #primary,
body.page-template-reglas .site-main {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Remover padding del content */
body.page-template-reglas .ast-separate-container .ast-article-single,
body.page-template-reglas .ast-separate-container .ast-article-post {
    padding: 0 !important;
}

/* Remover contenedor */
body.page-template-reglas .ast-container {
    padding: 0 !important;
}

/* Asegurar que squid-reglas ocupe todo */
.squid-reglas {
    width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    background: #000;
}

/* ============================================
   FIN DE AJUSTES DE ANCHO COMPLETO
   ============================================ */

/* ============================================
   CONTENEDOR PRINCIPAL DE REGLAS
   ============================================ */

.reglas-main-container {
    background: #000;
    min-height: 100vh;
    padding: 60px 0;
}

/* ============================================
   TÍTULO SIMPLE
   ============================================ */

.reglas-title {
    text-align: center;
    font-size: 3rem;
    font-weight: bold;
    letter-spacing: 4px;
    margin: 40px 0 60px 0;
    color: #ccc;
    text-transform: uppercase;
}

/* ============================================
   SELECTOR DE TIPO DE JUEGO
   ============================================ */

/* Container de selección de juego */
.game-selector-container {
    max-width: 1200px;
    margin: 0 auto 60px auto;
    background: #111;
    border: 2px solid #333;
    padding: 0;
    position: relative;
}

.game-selector {
    display: flex;
    height: 250px;
    position: relative;
}

/* Cada opción de juego con borde neón gris */
.game-option {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid #888;
    box-shadow: 
        inset 0 0 20px rgba(136, 136, 136, 0.3),
        0 0 20px rgba(136, 136, 136, 0.3);
    background: rgba(17, 17, 17, 0.8);
}

/* Hover cambia el borde a rosa sólido #f44786 */
.game-option:hover {
    border-color: #f44786;
    background: rgba(244, 71, 134, 0.05);
}

/* Estado deshabilitado para modos próximamente */
.game-option.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    position: relative;
    overflow: hidden;
}

.game-option.disabled:hover {
    border-color: #888;
    background: rgba(17, 17, 17, 0.8);
}

.game-option.disabled .game-icon-top img,
.game-option.disabled .game-icon-bottom img {
    filter: brightness(0.5) grayscale(1);
}

.game-option.disabled:hover .game-icon-top img,
.game-option.disabled:hover .game-icon-bottom img {
    filter: brightness(0.5) grayscale(1);
}

/* Banner diagonal "Próximamente" */
.proximamente-banner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-25deg);
    background: linear-gradient(135deg, #f44786 0%, #ed1b76 100%);
    color: #ffffff;
    padding: 12px 80px;
    font-size: 1.3rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
    z-index: 100;
    box-shadow: 
        0 4px 20px rgba(244, 71, 134, 0.8),
        0 0 40px rgba(244, 71, 134, 0.6),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.3);
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.5),
        0 0 10px rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    pointer-events: none;
}

/* Contenedor para las dos imágenes */
.game-icon {
    width: 100%;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* Imagen superior (icono/logo) */
.game-icon-top {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-icon-top img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: brightness(0.8);
}

.game-option:hover .game-icon-top img {
    filter: brightness(1.3) drop-shadow(0 0 10px rgba(244, 71, 134, 0.6));
}

/* Imagen inferior (texto/logo secundario) */
.game-icon-bottom {
    width: auto;
    max-width: 200px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-icon-bottom img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: brightness(0.8);
}

.game-option:hover .game-icon-bottom img {
    filter: brightness(1.3) drop-shadow(0 0 10px rgba(244, 71, 134, 0.6));
}

/* ============================================
   CONTENIDO DE REGLAS
   ============================================ */

.rules-content {
    width: 100%;
    background: #111;
    border: 2px solid #333;
    padding: 40px 0;
}

.rules-section {
    max-width: 1200px;
    margin: 0 auto 60px auto;
    padding: 0 40px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
    transition: all 0.3s ease;
    cursor: pointer;
}

.rules-section:nth-child(even) {
    flex-direction: row-reverse;
}

.rules-text {
    flex: 1;
}

.rules-text h2 {
    font-size: 2rem;
    color: #ccc;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #ccc;
    transition: all 0.3s ease;
}

/* Hover effect en toda la sección */
.rules-section:hover .rules-text h2 {
    color: #249f9c;
    text-shadow: 0 0 15px #249f9c, 0 0 25px rgba(36, 159, 156, 0.5);
}

.rules-text p {
    line-height: 1.8;
    color: #ccc;
    text-align: justify;
}

.rules-image {
    flex: 0 0 350px;
    height: 250px;
    border: 3px solid #888;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(136, 136, 136, 0.3);
    transition: all 0.3s ease;
}

.rules-image img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Hover effect en imagen */
.rules-section:hover .rules-image {
    border-color: #249f9c;
    box-shadow: 0 0 30px rgba(36, 159, 156, 0.6);
}

.rules-section:hover .rules-image img {
    filter: brightness(1.2) drop-shadow(0 0 10px rgba(36, 159, 156, 0.5));
    transform: scale(1.05);
}

/* ============================================
   RESPONSIVE - DESKTOP
   ============================================ */

@media (max-width: 992px) {
    .reglas-title {
        font-size: 3rem;
        letter-spacing: 6px;
    }

    .game-selector {
        height: 220px;
    }

    .rules-content {
        padding: 30px;
    }
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */

@media (max-width: 768px) {
    .reglas-title {
        font-size: 2.5rem;
        letter-spacing: 3px;
        margin: 20px 0 40px 0;
    }

    .game-selector {
        flex-direction: column;
        height: auto;
    }

    .game-option {
        padding: 30px;
        min-height: 150px;
    }

    .rules-section {
        flex-direction: column !important;
        gap: 20px;
    }

    .rules-image {
        flex: 1;
        width: 100%;
        max-width: 100%;
    }

    .rules-text h2 {
        font-size: 1.5rem;
    }

    .rules-content {
        padding: 20px 0;
    }
    
    .rules-section {
        padding: 0 20px;
    }

    .game-selector-container {
        margin: 0 20px 40px 20px;
    }
}

/* ============================================
   RESPONSIVE - MÓVIL
   ============================================ */

@media (max-width: 480px) {
    .reglas-main-container {
        padding: 30px 0;
    }

    .reglas-title {
        font-size: 2rem;
        letter-spacing: 2px;
        margin: 20px 10px 30px 10px;
    }

    .game-icon-top {
        width: 60px;
        height: 60px;
    }

    .game-icon-bottom {
        max-width: 150px;
    }

    .game-option {
        padding: 25px 15px;
        min-height: 130px;
    }

    .proximamente-banner {
        font-size: 1rem;
        padding: 10px 50px;
        letter-spacing: 2px;
    }

    .rules-text h2 {
        font-size: 1.3rem;
    }

    .rules-text p {
        font-size: 14px;
        line-height: 1.6;
    }

    .rules-image {
        height: 200px;
    }

    .rules-content {
        padding: 15px 0;
    }
    
    .rules-section {
        padding: 0 10px;
    }

    .game-selector-container {
        margin: 0 10px 30px 10px;
    }
}