/*
 * Sorteios com lista — sorteio-de-nomes.php e sorteio-de-equipes.php.
 * Complementa gerador.css: campos de lista, avisos e caixa de resultado.
 */

.draw-card.list-form {
    text-align: left;
}

.list-field + .list-field {
    margin-top: 20px;
}

.list-field > label,
.list-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 0 0 8px;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.list-count {
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}

.draw-card textarea,
.draw-card select {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 12px 14px;
    border: 2px solid var(--line);
    border-radius: 14px;
    background: #f7fafc;
    color: var(--ink);
    font: inherit;
    font-size: 16px;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.draw-card textarea {
    min-height: 200px;
    line-height: 1.5;
    resize: vertical;
}

.draw-card textarea[readonly] {
    color: var(--ink-soft);
    cursor: default;
}

.draw-card select {
    height: 52px;
    cursor: pointer;
}

.draw-card textarea:not([readonly]):focus,
.draw-card select:focus {
    outline: none;
    border-color: var(--brand);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(10, 127, 209, .15);
}

.list-hint {
    margin: 8px 0 0;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.45;
}

/* Avisos */
.draw-notice {
    margin: 0 0 16px;
    padding: 12px 16px;
    border-radius: 14px;
    background: #fff1f0;
    color: #b42318;
    font-size: 14px;
}

.draw-notice--ok {
    background: #ecfdf3;
    color: #067647;
}

/* Resultado */
.draw-result {
    margin-bottom: 24px;
    padding: 24px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(10, 60, 110, .12);
    scroll-margin-top: calc(var(--nav-height) + 16px);
}

.draw-card + .draw-result {
    margin: 24px 0 0;
}

.draw-result__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.draw-result h2 {
    margin: 0;
    color: var(--ink);
    font-size: 20px;
}

.draw-result__meta {
    margin: 4px 0 0;
    color: var(--ink-soft);
    font-size: 13px;
}

.draw-result__foot {
    margin: 16px 0 0;
    color: var(--ink-soft);
    font-size: 13px;
}

.draw-result__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.draw-result .chip,
.draw-card .btn-ghost {
    height: 34px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.draw-result .chip:hover,
.draw-card .btn-ghost:hover {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand-dark);
}

@keyframes draw-pop {
    from { opacity: 0; transform: translateY(6px); }
}

@media (max-width: 640px) {
    .draw-result {
        padding: 18px;
    }
}
