/**
 * Playlist Poll Component Styles
 */

.poll-row td {
    padding: 0 !important;
    border: none !important;
}

.poll-card {
    margin: 12px 8px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(81,139,161,0.12) 0%, rgba(231,125,66,0.08) 100%);
    border: 1px solid rgba(81,139,161,0.25);
    border-radius: 10px;
}

.poll-question {
    font-size: 1.05em;
    font-weight: 600;
    margin-bottom: 14px;
    line-height: 1.4;
    color: #eee;
}

/* Answer buttons */
.poll-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.poll-option-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: #ddd;
    font-size: 0.92em;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
}

.poll-option-btn:hover {
    background: rgba(81,139,161,0.2);
    border-color: #518BA1;
}

.poll-option-btn:active {
    transform: scale(0.98);
}

.poll-option-btn.busy {
    pointer-events: none;
    opacity: 0.5;
}

.poll-option-btn.poll-selected {
    background: rgba(81,139,161,0.35);
    border-color: #518BA1;
    opacity: 1;
}

/* Results bar graph */
.poll-results {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.poll-result-row {
    position: relative;
}

.poll-result-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 3px;
}

.poll-result-text {
    font-size: 0.9em;
    color: #ccc;
}

.poll-result-pct {
    font-size: 0.85em;
    font-weight: 600;
    color: #aaa;
    min-width: 3em;
    text-align: right;
}

.poll-result-bar-bg {
    height: 22px;
    background: rgba(255,255,255,0.06);
    border-radius: 6px;
    overflow: hidden;
}

.poll-result-bar {
    height: 100%;
    background: linear-gradient(90deg, #518BA1, #6baaba);
    border-radius: 6px;
    transition: width 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    min-width: 0;
}

/* Highlight the user's pick */
.poll-user-pick .poll-result-text {
    color: #E77D42;
    font-weight: 600;
}

.poll-user-pick .poll-result-pct {
    color: #E77D42;
}

.poll-user-pick .poll-result-bar {
    background: linear-gradient(90deg, #E77D42, #f0954e);
}

.poll-total {
    font-size: 0.8em;
    color: #777;
    margin-top: 4px;
    text-align: right;
}

/* Dismiss link */
.poll-dismiss {
    text-align: right;
    margin-top: 6px;
}

.poll-dismiss-btn {
    font-size: 0.8em;
    color: #666;
    text-decoration: none;
}

.poll-dismiss-btn:hover {
    color: #999;
}

/* Light mode */
body.light-mode .poll-card {
    background: linear-gradient(135deg, rgba(81,139,161,0.08) 0%, rgba(231,125,66,0.05) 100%);
    border-color: rgba(81,139,161,0.2);
}

body.light-mode .poll-question {
    color: #222;
}

body.light-mode .poll-option-btn {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.12);
    color: #333;
}

body.light-mode .poll-option-btn:hover {
    background: rgba(81,139,161,0.12);
}

body.light-mode .poll-result-text {
    color: #444;
}

body.light-mode .poll-result-pct {
    color: #666;
}

body.light-mode .poll-result-bar-bg {
    background: rgba(0,0,0,0.06);
}

/* Responsive: compact on mobile */
@media (max-width: 600px) {
    .poll-card {
        margin: 8px 4px;
        padding: 12px 14px;
    }
    .poll-question {
        font-size: 0.95em;
    }
    .poll-option-btn {
        padding: 8px 12px;
        font-size: 0.88em;
    }
}
