/* PATROL - Pergunta Bomba CSS */

/* ── CONTAINER PRINCIPAL ─────────────────────────────────── */
.bomb-container {
    background: linear-gradient(145deg, #fff8e1, #fff3cd);
    border: 3px solid #ff6b00;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.2);
    animation: bombAppear 0.4s ease;
}

@keyframes bombAppear {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

.bomb-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.bomb-icon {
    font-size: 2.2em;
    animation: bombPulse 1.5s infinite;
}

@keyframes bombPulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.15); }
}

.bomb-title {
    font-size: 1.3em;
    font-weight: 900;
    color: #c62828;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.bomb-subject {
    font-size: 0.85em;
    color: #666;
    margin-top: 2px;
}

.bomb-instruction {
    background: rgba(255, 107, 0, 0.1);
    border-left: 4px solid #ff6b00;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 0.9em;
    color: #555;
    margin-bottom: 16px;
}

/* ── LAYOUT DOIS PAINÉIS ─────────────────────────────────── */
.bomb-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

@media (max-width: 600px) {
    .bomb-layout { grid-template-columns: 1fr; }
}

.bomb-questions-panel,
.bomb-answers-panel {
    background: #fff;
    border-radius: 10px;
    border: 2px solid #ddd;
    padding: 12px;
}

.bomb-panel-title {
    font-weight: 800;
    font-size: 0.8em;
    letter-spacing: 2px;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 10px;
    text-align: center;
}

/* ── ITENS DE PERGUNTAS ─────────────────────────────────── */
.bomb-question-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    border-left: 4px solid #ccc;
    background: #f8f9fa;
    margin-bottom: 8px;
    font-size: 0.88em;
    line-height: 1.4;
}

.bomb-q-num {
    font-weight: 800;
    color: #003366;
    min-width: 20px;
    flex-shrink: 0;
}

.bomb-q-text {
    color: #333;
}

/* ── ITENS DE RESPOSTAS ─────────────────────────────────── */
.bomb-answer-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    border-left: 4px solid #ccc;
    background: #f8f9fa;
    margin-bottom: 8px;
    font-size: 0.88em;
    line-height: 1.4;
    transition: all 0.2s ease;
    user-select: none;
}

.bomb-answer-item.clickable {
    cursor: pointer;
}

.bomb-answer-item.clickable:hover {
    background: #e3f2fd;
    border-color: #1565c0;
    transform: translateX(3px);
}

.bomb-answer-item.bomb-selected {
    background: #bbdefb !important;
    border-color: #1976d2 !important;
    box-shadow: 0 0 12px rgba(25, 118, 210, 0.4);
    transform: translateX(4px);
}

.bomb-answer-item.bomb-correct-final {
    background: #c8e6c9 !important;
    border-color: #388e3c !important;
}

.bomb-answer-item.bomb-incorrect {
    background: #ffcdd2 !important;
    border-color: #c62828 !important;
}

.bomb-a-letter {
    font-weight: 800;
    color: #003366;
    min-width: 22px;
    flex-shrink: 0;
}

.bomb-a-text {
    color: #333;
}

/* ── RESULTADO ───────────────────────────────────────────── */
#bomb-result-area {
    margin-top: 10px;
}

.bomb-result {
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1em;
    text-align: center;
}

.bomb-success {
    background: #e8f5e9;
    border: 2px solid #388e3c;
    color: #2e7d32;
}

.bomb-error {
    background: #ffebee;
    border: 2px solid #c62828;
    color: #b71c1c;
}

.bomb-skipped {
    background: #f5f5f5;
    border: 2px solid #999;
    color: #555;
}

.bomb-waiting {
    color: #888;
    font-style: italic;
    text-align: center;
    padding: 10px;
}

/* ── MODAL DE PENALIDADE ─────────────────────────────────── */
.bomb-penalty-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.bomb-penalty-box {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.bomb-penalty-title {
    font-size: 1.4em;
    font-weight: 900;
    color: #c62828;
    margin-bottom: 14px;
}

.bomb-penalty-teams {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 16px 0;
}

.bomb-penalty-option {
    padding: 10px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.bomb-penalty-option:hover {
    border-color: #c62828;
    background: #ffebee;
}

.bomb-penalty-option.selected {
    border-color: #c62828;
    background: #ffcdd2;
    color: #b71c1c;
}

.bomb-penalty-score {
    font-size: 0.85em;
    color: #888;
    margin-left: 6px;
}

.bomb-penalty-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 16px;
}

/* ── CONFIG NA TELA DE CONFIG ───────────────────────────── */

/* O card usa .subjects-config como base — herda fundo branco, borda azul e h3 azul/uppercase */
/* Apenas overrides específicos do card PB aqui */

.bomb-config-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.bomb-config-label {
    font-size: 0.88em;
    color: #333;
    font-weight: 600;
    flex: 1;
}

.bomb-config-input {
    width: 58px;
    height: 32px;
    text-align: center;
    font-size: 1em;
    font-weight: 700;
    border: 2px solid var(--prf-blue, #003366);
    border-radius: 6px;
    background: #fff;
    color: var(--prf-blue, #003366);
    flex-shrink: 0;
}

.bomb-config-input:focus {
    outline: none;
    box-shadow: 0 0 6px rgba(0, 51, 102, 0.3);
}

.bomb-config-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.88em;
    font-weight: 600;
    color: #333;
}

.bomb-config-toggle input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--prf-blue, #003366);
}

.bomb-tables-count {
    font-size: 0.78em;
    color: #888;
    font-style: italic;
    margin-top: 4px;
    text-align: center;
}
