/* ==========================================================================
   Poll Block Styles
   ========================================================================== */

.poll-block-content {
    padding: 0 !important;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.poll-placeholder,
.poll-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 200px;
    color: var(--color-text-muted);
    gap: 12px;
}

.poll-placeholder .placeholder-icon {
    font-size: 2.5rem;
}

/* View Mode */
.poll-view {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 16px;
    gap: 16px;
}

.poll-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.poll-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0;
    line-height: 1.3;
}

.poll-ended {
    background: var(--color-danger);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    flex-shrink: 0;
}

/* Poll Options */
.poll-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.poll-option {
    all: unset;
    box-sizing: border-box;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(var(--color-bg-card-rgb), 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
}

.poll-option:not(:disabled):hover {
    background: rgba(var(--color-bg-card-rgb), 0.5);
    border-color: var(--color-primary);
}

.poll-option.selected {
    border-color: var(--color-primary);
    background: rgba(var(--color-primary-rgb), 0.1);
}

.poll-option:disabled {
    cursor: default;
}

.poll-option .option-text {
    position: relative;
    z-index: 1;
    font-size: 0.9rem;
    color: var(--color-text-primary);
}

.poll-option .option-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: rgba(var(--color-primary-rgb), 0.2);
    transition: width 0.5s ease-out;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.poll-option.selected .option-bar {
    background: rgba(var(--color-primary-rgb), 0.3);
}

.poll-option .option-percent {
    position: relative;
    z-index: 1;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-primary);
}

.poll-option .option-votes {
    position: relative;
    z-index: 1;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-left: 8px;
}

/* Poll Footer */
.poll-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* Style Variations */
.poll-style-compact {
    padding: 12px;
    gap: 10px;
}

.poll-style-compact .poll-question {
    font-size: 0.95rem;
}

.poll-style-compact .poll-option {
    padding: 8px 12px;
}

.poll-style-card {
    background: rgba(var(--color-bg-card-rgb), 0.2);
    border-radius: var(--radius-lg);
}

/* Editor */
.poll-editor {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.poll-options-editor {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.poll-option-input {
    display: flex;
    gap: 8px;
}

.poll-option-input .config-input {
    flex: 1;
}

.btn-remove-option {
    all: unset;
    box-sizing: border-box;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--color-danger-rgb), 0.2);
    color: var(--color-danger);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.2s ease;
}

.btn-remove-option:hover {
    background: rgba(var(--color-danger-rgb), 0.3);
}

.btn-add-option {
    all: unset;
    box-sizing: border-box;
    padding: 8px 16px;
    background: transparent;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    text-align: center;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.btn-add-option:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.config-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

