/* ===============================
   POLL CARD CONTAINER
================================ */
.poll-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 22px 24px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    margin: 20px 0;
    font-family: Arial, sans-serif;
}

/* ===============================
   QUESTION
================================ */
.poll-question {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 18px;
    color: #333;
}

/* ===============================
   ANSWERS
================================ */
.poll-answers {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 10px;
}

/* VOTE BUTTON */
.poll-vote-btn {
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 12px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    text-align: left;
    transition: all 0.2s ease;
}

/* HOVER = BRAND COLOR */
.poll-vote-btn:hover {
    background: #E50283;
    border-color: #E50283;
    color: #ffffff;
    transform: translateY(-1px);
}

/* DISABLED BUTTON AFTER VOTE */
.poll-vote-btn:disabled {
    background: #eee;
    cursor: default;
    transform: none;
    color: #666;
}

/* ===============================
   VIEW RESULTS LINK
================================ */
.poll-results-link {
    margin-top: 20px;
    font-size: 14px;
    color: #E50283;
    cursor: pointer;
    display: block;
    font-weight: 500;
}

.poll-results-link:hover {
    text-decoration: underline;
}

/* ===============================
   MESSAGE (ALREADY VOTED)
================================ */
.poll-message {
    margin-top: 14px;
    padding: 10px;
    background: #fff0f7;
    border: 1px solid #ffd1ea;
    border-radius: 6px;
    color: #a8005f;
    font-size: 14px;
}

/* ===============================
   RESULTS
================================ */
.poll-results {
    margin-top: 20px;
}

/* RESULT ROW */
.poll-result-row {
    margin-bottom: 18px;
}

/* RESULT LABEL */
.poll-result-label {
    font-size: 14px;
    margin-bottom: 6px;
    color: #333;
}

/* BAR BACKGROUND */
.poll-bar {
    width: 100%;
    height: 20px; /* FATTER BARS */
    background: #eee;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

/* BAR FILL */
.poll-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #BA0154, #ff4db8);
    border-radius: 20px;
    transition: width 0.9s ease;
    position: relative;
}

/* PERCENT TEXT INSIDE BAR */
.poll-fill::after {
    content: attr(data-width) "%";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
}


/* SHARE BOX (pill container) */
.poll-share-box {
    background: #ffffff;
    border-radius: 100px; /* circular sides */
    padding: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    margin-top: 20px;
    text-align: center;
}

/* TWEET BUTTON */
.poll-tweet-btn {
    display: block;
    background: #E50283;
    color: #ffffff;            /* white text */
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 100px;      /* pill shape */
    text-align: center;
    font-weight: normal;       /* remove bold */
    font-size: 14px;
    transition: 0.2s;
}

/* HOVER */
.poll-tweet-btn:hover {
    background: #c8006f;
    color: #ffffff;
}



.poll-tweet-btn::before {
    content: "𝕏 ";
    margin-right: 6px;
}


/* YOU VOTED MESSAGE */
.poll-voted-message {
    background: #fff0f7;
    border: 1px solid #ffd1ea;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #a8005f;
}

/* HIGHLIGHT SELECTED RESULT */
.poll-result-selected {
    background: #fafafa;
    padding: 8px;
    border-radius: 8px;
}



/* TWITTER BUTTON */
.poll-tweet-btn {
    display: block;
    background: #eeeeee;
    color: #000000;
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 100px;
    text-align: center;
    font-size: 14px;
    transition: 0.2s;
        line-height: 1.4;
    
}

/* HOVER */
.poll-tweet-btn:hover {
    background: #E50283;
    color: #ffffff;
}




/* ===============================
   LOADER CONTAINER
================================ */
.poll-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
}

/* 3 BAR LOADER */
.loader-bars {
    display: flex;
    gap: 6px;
    transform: rotate(0deg);
    animation: loader-rotate 1.2s linear infinite;
}

.loader-bars span {
    width: 6px;
    height: 30px;
    background: #E50283;
    border-radius: 3px;
    animation: loader-pulse 1s ease-in-out infinite;
}

/* Stagger animation */
.loader-bars span:nth-child(2) {
    animation-delay: 0.15s;
}

.loader-bars span:nth-child(3) {
    animation-delay: 0.3s;
}

/* Pulse effect */
@keyframes loader-pulse {
    0%, 100% {
        transform: scaleY(0.5);
        opacity: 0.6;
    }
    50% {
        transform: scaleY(1.2);
        opacity: 1;
    }
}

/* Rotation */
@keyframes loader-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}




/* Fade animation */
.poll-fade {
    animation: pollFade 0.4s ease;
}

@keyframes pollFade {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Skeleton results */
.poll-skeleton {
    margin-top: 10px;
}

.poll-skeleton-bar {
    height: 14px;
    background: linear-gradient(90deg, #eee, #f5f5f5, #eee);
    background-size: 200% 100%;
    animation: skeleton 1.2s infinite;
    border-radius: 6px;
    margin-bottom: 12px;
}

@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}




.poll-error {
    padding: 20px;
    text-align: center;
    color: #a8005f;
    background: #fff0f7;
    border-radius: 8px;
}




/* ===============================
   MOBILE
================================ */
@media (max-width: 600px) {
    .poll-box {
        padding: 16px;
    }

    .poll-question {
        font-size: 18px;
    }

    .poll-vote-btn {
        font-size: 14px;
        padding: 10px;
    }

    .poll-bar {
        height: 18px;
    }
}