/**
 * ProfeJuegos — Estilos globales
 *
 * Este archivo se carga SOLO cuando hay un shortcode [profejuego]
 * en la página. No se carga en páginas sin juegos.
 *
 * Contiene estilos base compartidos por todos los módulos.
 * Cada módulo añade sus propios estilos vía enqueue_assets().
 *
 * @package ProfeJuegos
 * @since   1.0.0
 */

/* Contenedor base de todos los juegos */
.pj-game-container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    font-family: 'Nunito', system-ui, sans-serif;
    box-sizing: border-box;
}

.pj-game-container * {
    box-sizing: border-box;
}

/* Mensaje de error en producción */
.pj-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 12px 16px;
    color: #b91c1c;
    font-size: .9rem;
}

.pjui-creator-screen {
    display: grid;
    gap: 18px;
}

.pjui-hero {
    --pjui-hero-gradient: linear-gradient(135deg, #2563eb, #0ea5e9);
    padding: 22px 16px;
    border-radius: 16px;
    text-align: center;
    color: #fff;
    background: var(--pjui-hero-gradient);
    box-shadow: 0 10px 28px rgba(37, 99, 235, .18);
}

.pjui-hero-title-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.pjui-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    line-height: 1;
}

.pjui-hero-title {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.05;
    font-weight: 900;
    color: #fff;
}

.pjui-hero-subtitle {
    margin: 0;
    font-size: 1.28rem;
    line-height: 1.2;
    font-weight: 800;
    color: rgba(255, 255, 255, .96);
}

.pjui-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.pjui-choice-grid.is-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pjui-choice-card {
    width: 100%;
    min-height: 180px;
    padding: 22px;
    border: 1px solid #dbe4f0;
    border-radius: 16px;
    background: #fff;
    color: #1e293b;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(23, 32, 51, .06);
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease, color .18s ease;
}

.pjui-choice-card:hover,
.pjui-choice-card:focus,
.pjui-choice-card:focus-visible {
    color: #1e293b;
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 10px 26px rgba(37, 99, 235, .16);
    outline: none;
    transform: translateY(-1px);
}

.pjui-choice-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    margin-bottom: 14px;
}

.pjui-choice-icon img {
    display: block;
    width: 96px;
    height: 96px;
    object-fit: contain;
}

.pjui-choice-tag {
    display: block;
    margin-bottom: 8px;
    color: #1d4ed8;
    font-size: .86rem;
    font-weight: 900;
    text-transform: uppercase;
}

.pjui-choice-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.35rem;
    color: #1d4ed8;
}

.pjui-choice-card small {
    display: block;
    color: #475569;
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.45;
}

@media (max-width: 900px) {
    .pjui-choice-grid {
        grid-template-columns: 1fr;
    }
}
