/* BGS Anket Sistemi - Frontend CSS */
.bgs-poll-card{max-width:600px;margin:20px auto;padding:24px;background:#fff;border-radius:16px;box-shadow:0 4px 20px rgba(0,0,0,.07);border:1px solid #e5e7eb;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;position:relative;overflow:hidden}
.bgs-poll-card::before{content:'';position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,#E71D36,#ff6b6b,#E71D36);background-size:200% 100%;animation:bgsPollShimmer 3s ease infinite}
@keyframes bgsPollShimmer{0%,100%{background-position:0 0}50%{background-position:100% 0}}
.bgs-poll-question{font-size:1.15em;font-weight:700;color:#1a1a2e;margin-bottom:18px;line-height:1.4}
.bgs-poll-option{display:flex;align-items:center;gap:10px;padding:12px 16px;margin-bottom:8px;border:1.5px solid #e5e7eb;border-radius:10px;cursor:pointer;transition:all .2s;background:#fafbfc}
.bgs-poll-option:hover{border-color:#E71D36;background:#fef2f2;transform:translateX(4px)}
.bgs-poll-option input[type="radio"],.bgs-poll-option input[type="checkbox"]{display:none}
.bgs-poll-option input:checked+.bgs-poll-radio{border-color:#E71D36;background:#E71D36}
.bgs-poll-option input:checked+.bgs-poll-radio::after{content:'✓';color:#fff;font-size:10px;font-weight:700}
.bgs-poll-option input:checked~.bgs-poll-opt-text{color:#E71D36;font-weight:600}
.bgs-poll-option:has(input:checked){border-color:#E71D36;background:#fef2f2}
.bgs-poll-radio{width:22px;height:22px;border-radius:50%;border:2px solid #d1d5db;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:all .2s}
.bgs-poll-opt-text{font-size:.93em;color:#374151;line-height:1.4}
.bgs-poll-vote-btn{display:block;width:100%;padding:13px;margin-top:14px;background:linear-gradient(135deg,#E71D36,#ff6b6b);color:#fff;border:none;border-radius:10px;font-size:15px;font-weight:700;cursor:pointer;transition:all .3s;letter-spacing:.3px}
.bgs-poll-vote-btn:hover{transform:translateY(-2px);box-shadow:0 6px 20px rgba(231,29,54,.3)}
.bgs-poll-vote-btn:disabled{opacity:.5;cursor:not-allowed;transform:none;box-shadow:none}

/* Bar chart */
.bgs-poll-bar-row{margin-bottom:10px}
.bgs-poll-bar-label{display:flex;justify-content:space-between;font-size:13px;margin-bottom:4px;color:#374151}
.bgs-poll-bar-label small{color:#9ca3af;font-weight:400}
.bgs-poll-bar-track{background:#e5e7eb;border-radius:8px;height:22px;overflow:hidden}
.bgs-poll-bar-fill{height:100%;border-radius:8px;transition:width .8s cubic-bezier(.4,0,.2,1);min-width:4px}
.bgs-poll-total{text-align:center;margin-top:14px;font-size:13px;color:#6b7280}

/* Pie chart */
.bgs-poll-pie-wrap{display:flex;flex-wrap:wrap;gap:16px;align-items:center;justify-content:center;margin-top:16px;padding:12px 0}
.bgs-poll-pie{flex-shrink:0}
.bgs-poll-pie-legend{list-style:none;padding:0;margin:0;font-size:13px}
.bgs-poll-pie-legend li{display:flex;align-items:center;gap:8px;margin-bottom:6px;color:#374151}
.bgs-poll-pie-legend .dot{width:12px;height:12px;border-radius:50%;flex-shrink:0}

/* Footer */
.bgs-poll-footer{display:flex;justify-content:space-between;align-items:center;margin-top:14px;padding-top:12px;border-top:1px solid #f1f5f9;font-size:12px;color:#9ca3af}
.bgs-poll-msg{margin-top:10px;padding:10px 14px;border-radius:8px;font-size:13px;font-weight:500;text-align:center}
.bgs-poll-msg.success{background:#d1fae5;color:#065f46;display:block}
.bgs-poll-msg.error{background:#fee2e2;color:#991b1b;display:block}

/* Loading */
.bgs-poll-loading{position:relative;pointer-events:none;opacity:.7}
.bgs-poll-loading::after{content:'';position:absolute;top:50%;left:50%;width:24px;height:24px;margin:-12px 0 0 -12px;border:3px solid #e5e7eb;border-top-color:#E71D36;border-radius:50%;animation:bgsPollSpin .6s linear infinite}
@keyframes bgsPollSpin{to{transform:rotate(360deg)}}

/* Results only mode */
.bgs-poll-results-only{max-width:700px}

/* Responsive */
@media(max-width:600px){
    .bgs-poll-card{padding:18px 14px;margin:12px 8px;border-radius:12px}
    .bgs-poll-question{font-size:1em;margin-bottom:14px}
    .bgs-poll-option{padding:10px 12px;gap:8px}
    .bgs-poll-vote-btn{padding:11px;font-size:14px}
    .bgs-poll-pie-wrap{flex-direction:column}
}

/* Sidebar widget compact */
.widget .bgs-poll-card{margin:0;padding:14px;border-radius:10px;box-shadow:none;border:1px solid #e5e7eb}
.widget .bgs-poll-card::before{display:none}
.widget .bgs-poll-question{font-size:.92em;margin-bottom:10px}
.widget .bgs-poll-option{padding:8px 10px;margin-bottom:5px;border-radius:7px}
.widget .bgs-poll-vote-btn{padding:9px;font-size:13px;border-radius:8px}
.widget .bgs-poll-bar-track{height:16px}
