/* =============================
   GLOBAL PAGE FIXES
============================= */

.single-juego .entry-meta,
.single-juego .posted-on,
.single-juego .byline,
.single-juego .author,
.single-juego .entry-header .posted-on {
    display: none !important;
}

body.single-juego {
    background: #f5f6f7 !important;
}

/* =============================
   WRAPPER
============================= */

.ficha-juego-jurado {
    max-width: 940px;
    margin: 40px auto;
    padding: 0 20px;
}

/* =============================
   MODERN CARD
============================= */

.fj-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 18px;
    padding: 28px 32px;
    margin-bottom: 28px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.06);
}

/* =============================
   GAME INFO
============================= */

.fj-meta .fj-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

@media (min-width: 800px) {
    .fj-meta .fj-info-grid {
        grid-template-columns: 1.2fr 1fr;
    }
}

.fj-game-thumb {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    margin-bottom: 18px;
}

.fj-description {
    background: #fafafa;
    padding: 16px;
    border-radius: 12px;
    line-height: 1.6;
    border: 1px solid #e5e5e5;
}

/* =============================
   TITLES
============================= */

.fj-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin-bottom: 18px;
}

/* =============================
   VOTE CARD
============================= */

.fj-card.fj-vote {
    max-width: 840px;
    margin: 50px auto;
    padding: 36px;
}

/* Vote status row */
.fj-vote-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
    font-size: 14px;
    color: #555;
}

/* =============================
   CRITERIA ITEMS
============================= */

.fj-crit-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fj-crit-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fj-crit-label {
    font-weight: 600;
    min-width: 140px;
}

.fj-crit-control {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Slider */
.fj-range {
    appearance: none;
    width: 100%;
    max-width: 500px;
    height: 8px;
    background: #e5e7eb;
    border-radius: 40px;
    outline: none;
}

/* Slider thumb */
.fj-range::-webkit-slider-thumb {
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #2563eb;
    border: 3px solid #1e40af;
}

/* Value badge */
.fj-badge-value {
    background: #111827;
    color: white;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: bold;
    min-width: 32px;
    text-align: center;
}

/* =============================
   BUTTONS
============================= */

.fj-btn-primary {
    background: #2563eb;
    padding: 12px 20px;
    color: white;
    border-radius: 10px;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

.fj-btn-primary:hover {
    background: #1e40af;
}

/* Título grande del juego */
.single-juego h1.entry-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 10px;
    color: #111;
}

/* Estudio más pequeño que el título */
.fj-kv .kv-label,
.fj-kv .kv-value {
    font-size: 18px;
    line-height: 1.4;
}

.fj-kv .kv-value {
    font-weight: 500;
    color: #374151;
}

/* Sliders más largos */
.fj-crit-control .fj-range {
    max-width: 750px !important;
}

.fj-crit-control {
    width: 100%;
    justify-content: flex-start;
}


/* Ampliar votación */
.fj-card.fj-vote {
    max-width: 920px;
}


/* FICHA centrada y bonita */
.fj-card.fj-meta {
    text-align: center;            /* Centrar todo */
    padding-top: 40px;
    padding-bottom: 40px;
}

/* Grid convertida en layout vertical */
.fj-info-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 25px !important;
}

/* Imagen centrada y grande */
.fj-game-thumb {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 20px auto;
    display: block;
    border-radius: 14px;
}

/* estudio */
.fj-kv .kv-value {
    font-size: 18px;
    font-weight: 600;
    color: #111;
}

/* etiqueta Studio */
.fj-kv .kv-label {
    font-size: 18px;
    opacity: 0.65;
}

/* Descripción centrada */
.fj-description {
    max-width: 650px;
    margin: 0 auto;
    text-align: left;
}


/* Separar el label del valor */
.fj-kv .kv-label {
    margin-right: 6px;
}

/* === PROGRESS BAR (Jury Panel) === */

.pj-progress-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
    margin-bottom: 20px;
}

.pj-progress {
    width: 200px; /* Ajusta largo */
    height: 10px;
    background: #e5e7eb;
    border-radius: 999px;
    position: relative;
    overflow: hidden;
}

.pj-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
    border-radius: 999px;
    transition: width 0.4s ease;
}

#pj-progress-label {
    font-size: 14px;
    font-weight: 600;
    color: #444;
}

/* --- Jury Progress Card (modern bar) --- */

.pj-card.pj-progress {
    max-width: 100%;
    padding: 18px 20px;
}

/* Contenedor */
.pj-progress-bar {
    width: 100%;
    height: 10px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

/* Barra interior (progreso) */
.pj-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
    border-radius: 999px;
    width: 0%;
    transition: width 0.5s ease;
}

/* Texto del porcentaje */
#pj-progress-label {
    font-weight: 600;
    color: #333;
}

/* ------------------------------
   JURY PANEL – MODERN PROGRESS BAR
--------------------------------- */

.pj-card.pj-progress {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px 24px;
    max-width: 420px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

/* Título + porcentaje alineados */
.pj-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #555;
    margin-bottom: 10px;
}

/* Barra contenedora */
.pj-progress-bar {
    width: 100%;
    height: 12px;
    background: #f1f3f5;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    overflow: hidden;
    position: relative;
}

/* Relleno animado */
.pj-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4f46e5, #6366f1);
    border-radius: 999px;
    transition: width 0.5s cubic-bezier(0.4,0.0,0.2,1);
    box-shadow: inset 0 0 6px rgba(255,255,255,0.3);
}

/* Porcentaje */
#pj-progress-label {
    font-weight: 700;
    font-size: 14px;
    color: #111827;
}

/* ------------------------------
   MODERN PROGRESS BAR (FINAL)
--------------------------------- */

/* Wrapper general */
.progress-container {
    width: 100%;
    max-width: 320px;
    padding: 12px 0;
    margin-bottom: 14px;
}

/* Cabecera */
.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
}

/* Barra externa */
.progress-bar {
    width: 100%;
    height: 12px;
    background: #e5e7eb;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    overflow: hidden;
    position: relative;
}

/* Relleno */
.progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #4f46e5, #6366f1);
    border-radius: 999px;
    transition: width .55s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 0 6px rgba(255,255,255,0.45),
                0 0 8px rgba(99,102,241,0.35);
}

/* Porcentaje */
#pj-progress-label {
    font-size: 13px;
    font-weight: 700;
    color: #222;
}


/* Margen entre juegos en el panel de jurado */
.pj-item {
    margin-bottom: 20px;
    margin-top: 50px;
}

/* Dar aspecto de botón a Clear y Logout */
.pj-form a {
    padding: 8px 14px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: #111;
    text-decoration: none;
    font-size: 14px;
    transition: background .2s ease;
    margin-left: 14px;
}

.pj-form a:hover {
    background: #e5e7eb;
}

/* =====================================================
   PANEL JURADO — MOSTRAR JUEGOS EN DOS COLUMNAS
   ===================================================== */

/* Modo móvil: 1 columna */
.pj-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    margin-top: 25px;
}

/* Tablet y escritorio pequeño: 2 columnas */
@media (min-width: 700px) {
    .pj-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* Escritorio grande (opcional): 2 columnas también */
@media (min-width: 1100px) {
    .pj-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* Ajustar cada juego para que se vea bien dentro del grid */
.pj-item {
    margin: 0 !important; /* ya no necesitamos separación vertical */
}


/* Chips modernas para criterios votados */
.fj-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.fj-chip {
    background: #f1f5f9;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}
