/**
 * resultados-juri.css
 * Estilos específicos para o painel de resultados do Júri Técnico.
 * Extende os estilos base de resultados.css e style.css.
 */

/* Ajustes no Card de Linha de Ranking */
.ranking-row-card.rank-juri {
    display: grid;
    grid-template-columns: 60px 70px 2.5fr 3.5fr 120px;
    align-items: center;
    gap: 1.5rem;
}

@media screen and (max-width: 900px) {
    .ranking-row-card.rank-juri {
        grid-template-columns: 1fr;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 1.8rem;
    }
}

/* Chips de Pontuação dos Jurados Individuais */
.juri-score-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

@media screen and (max-width: 900px) {
    .juri-score-breakdown {
        justify-content: center;
    }
}

.juri-chip {
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dark);
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    transition: all 0.2s ease;
}

.juri-chip:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    border-color: rgba(138, 21, 56, 0.2);
}

/* Avatar de letra para o jurado */
.juri-chip-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--white);
    font-size: 0.68rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    text-transform: uppercase;
}

/* Cores específicas de avatares baseadas no nome */
.juri-chip-avatar[data-name^="M"] { background-color: #3182ce; } /* Marcelo - Azul */
.juri-chip-avatar[data-name^="L"] { background-color: #319795; } /* Luciana - Teal */
.juri-chip-avatar[data-name^="G"] { background-color: #d69e2e; } /* Gicelma - Dourado */
.juri-chip-avatar[data-name^="A"] { background-color: #805ad5; } /* Amanda/Aluisio - Roxo */

.juri-chip-score {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.88rem;
}

/* Box da Média Final */
.final-average-box {
    text-align: right;
    min-width: 110px;
}

@media screen and (max-width: 900px) {
    .final-average-box {
        text-align: center;
    }
}

.average-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    font-family: var(--font-heading);
    display: block;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(138, 21, 56, 0.05);
}

.average-label {
    font-size: 0.72rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
    display: block;
}

.average-details {
    font-size: 0.75rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 2px;
}

/* Badge de empate ou quantidade de avaliações */
.eval-count-badge {
    font-size: 0.72rem;
    background: #edf2f7;
    color: #4a5568;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
    vertical-align: middle;
}

/* Lightbox Observações dos Jurados */
.lightbox-reviews-container {
    width: 85%;
    max-width: 700px;
    margin: 1.5rem auto 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    color: #f7fafc;
    text-align: left;
    max-height: 250px;
    overflow-y: auto;
    backdrop-filter: blur(5px);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
    animation: fadeIn 0.4s ease;
}

.lightbox-reviews-title {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #e2e8f0;
    margin-bottom: 0.8rem;
    font-weight: bold;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 4px;
}

.review-item {
    margin-bottom: 1rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    padding-bottom: 0.8rem;
}

.review-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 4px;
}

.review-jurado-name {
    color: #fbd38d; /* Dourado suave */
    display: flex;
    align-items: center;
    gap: 6px;
}

.review-scores-detail {
    color: #cbd5e0;
}

.review-text {
    font-size: 0.88rem;
    line-height: 1.4;
    color: #e2e8f0;
    font-style: italic;
    background: rgba(0,0,0,0.15);
    padding: 6px 10px;
    border-radius: 6px;
    margin-top: 4px;
}

/* Indicador de Falta de Avaliações */
.no-reviews-msg {
    text-align: center;
    color: #a0aec0;
    font-style: italic;
    font-size: 0.88rem;
    padding: 0.5rem 0;
}
