/* ── Enquetes ── */
.polls-page {}

.polls-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.poll-card {
    display: block;
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s;
}
.poll-card:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, .1);
}

.poll-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .75rem;
}
.poll-card-header h3 {
    margin: 0;
    font-size: 1.05rem;
}

.poll-card-desc {
    margin: .5rem 0 0;
    font-size: .9rem;
    color: var(--text-secondary, #666);
}

.poll-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: .75rem;
    font-size: .8rem;
    color: var(--text-secondary, #888);
}
.poll-card-meta span {
    display: flex;
    align-items: center;
    gap: .25rem;
}

/* ── Detalhe da enquete ── */
.poll-detail {
    max-width: 640px;
    padding: 1.5rem;
}

.poll-detail-desc {
    margin: 0 0 1rem;
    color: var(--text-secondary, #666);
}

.poll-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 1.5rem;
    font-size: .85rem;
    color: var(--text-secondary, #888);
}

/* Votação */
.poll-options {
    display: flex;
    flex-direction: column;
    gap: .625rem;
    margin-bottom: 1.25rem;
}

.poll-option--votable {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1rem;
    border: 1px solid var(--border, #e5e5e5);
    border-radius: var(--radius, .5rem);
    cursor: pointer;
    transition: background .15s;
}
.poll-option--votable:hover {
    background: var(--surface-alt, #f9f9f9);
}

.poll-option-text {
    font-size: .95rem;
}

/* Resultados */
.poll-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.poll-result {
    padding: .75rem 0;
}
.poll-result--mine {
    border-left: 3px solid var(--accent, #6366f1);
    padding-left: .75rem;
}

.poll-result-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: .375rem;
}

.poll-result-text {
    font-size: .95rem;
    font-weight: 500;
}

.poll-result-badge {
    font-size: .75rem;
    font-weight: 600;
    color: var(--accent, #6366f1);
    margin-left: .5rem;
}

.poll-result-percent {
    font-size: .9rem;
    font-weight: 600;
}

.poll-result-bar {
    height: 8px;
    background: var(--surface-alt, #f0f0f0);
    border-radius: 4px;
    overflow: hidden;
}

.poll-result-fill {
    height: 100%;
    background: var(--accent, #6366f1);
    border-radius: 4px;
    transition: width .4s ease;
}

.poll-result-count {
    font-size: .8rem;
    color: var(--text-secondary, #888);
}

.poll-login-hint {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary, #666);
}

/* ── Formulário ── */
.poll-form {
    max-width: 600px;
    padding: 1.5rem;
}

.poll-options-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-bottom: .75rem;
}

.poll-option-input {
    display: flex;
    gap: .5rem;
    align-items: center;
}

@media (max-width: 640px) {
    .poll-card-header {
        flex-direction: column;
    }
}
