/* Spectacular Polls - Frontend Styles */

/* Container and Layout */
.spectacular-poll-container {
    max-width: 1320px;
    margin: 2rem auto;
    /* padding: 0 1rem; */
    font-family: var(--font-montserrat);
}

.spectacular-poll-wrapper {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 2rem;
    align-items: start;
}

.spectacular-poll-main {
    min-width: 0; /* Prevent grid overflow */
}

.spectacular-poll {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    transform: translateY(0);
    transition: all 0.3s ease;
    min-height: 350px;
}

.spectacular-poll:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}


/* Header Section */
.spectacular-poll-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
    background: #f5f5f5;
    color: #333333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.poll-header-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.spectacular-poll-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333333;
    margin: 0;
    line-height: 1.3;
    animation: slideInDown 0.6s ease;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Poll Content */
.spectacular-poll-content {
    padding: 1.5rem 2rem;
}

/* Poll Options */
.spectacular-poll-options {
    margin-bottom: 1.5rem;
}

.spectacular-poll-option {
    margin-bottom: 0.75rem;
    animation: slideInUp 0.6s ease forwards;
    opacity: 0;
}

.spectacular-poll-option:nth-child(1) { animation-delay: 0.1s; }
.spectacular-poll-option:nth-child(2) { animation-delay: 0.2s; }
.spectacular-poll-option:nth-child(3) { animation-delay: 0.3s; }
.spectacular-poll-option:nth-child(4) { animation-delay: 0.4s; }
.spectacular-poll-option:nth-child(5) { animation-delay: 0.5s; }

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

.spectacular-poll-radio {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
    margin: 0;
}

.spectacular-poll-label {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.spectacular-poll-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(103, 126, 234, 0.1), transparent);
    transition: left 0.6s;
}

.spectacular-poll-label:hover::before {
    left: 100%;
}

.spectacular-poll-label:hover {
    border-color: #FF5C00;
    background: #fff8f5;
    transform: translateX(5px);
}

.spectacular-poll-option.selected .spectacular-poll-label {
    border-color: #FF5C00;
    background: linear-gradient(135deg, #FF5C00 0%, #FF8A00 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(255, 92, 0, 0.4);
}

.spectacular-poll-option.selected .selected-indicator {
    opacity: 1;
    animation: pulse 0.6s ease;
}


.option-text {
    flex: 1;
    font-weight: 500;
    font-size: 1rem;
}

.option-icon {
    margin-left: 1rem;
    transition: transform 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spectacular-poll-option.selected .option-icon {
    transform: scale(1.2);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Submit Button */
.spectacular-poll-submit {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #FF5C00 0%, #FF8A00 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.spectacular-poll-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.spectacular-poll-submit:hover::before {
    width: 300px;
    height: 300px;
}

.spectacular-poll-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 92, 0, 0.4);
}

.spectacular-poll-submit:active {
    transform: translateY(0);
}

.button-text {
    margin-right: 0.5rem;
    position: relative;
    z-index: 1;
}

.button-icon {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.spectacular-poll-submit:hover .button-icon {
    transform: translateX(3px);
}

/* Results Section */
.spectacular-poll-results {
    animation: fadeInUp 0.6s ease;
}

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

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f3f4;
}

.results-header h4 {
    display: flex;
    align-items: center;
    margin: 0;
    font-size: 1.2rem;
    color: #2c3e50;
    font-weight: 600;
}

.results-icon {
    margin-right: 0.5rem;
    color: #FF5C00;
}

.total-votes {
    display: none;
    align-items: baseline;
    background: linear-gradient(135deg, #FF5C00 0%, #FF8A00 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: 600;
}

.vote-count {
    font-size: 2.5rem;
    font-weight: 700;
    margin-right: 0.5rem;
}

.vote-label {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Result Options */
.results-options {
    margin-bottom: 1.5rem;
}

.result-option {
    margin-bottom: 1rem;
    animation: slideInLeft 0.6s ease forwards;
    opacity: 0;
}

.result-option:nth-child(1) { animation-delay: 0.1s; }
.result-option:nth-child(2) { animation-delay: 0.2s; }
.result-option:nth-child(3) { animation-delay: 0.3s; }
.result-option:nth-child(4) { animation-delay: 0.4s; }
.result-option:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.option-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.option-name {
    font-weight: 500;
    color: #2c3e50;
}

.option-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.option-percentage {
    font-weight: 600;
    color: #FF5C00;
    font-size: 1.1rem;
}

.option-votes {
    color: #7f8c8d;
    font-size: 0.9rem;
    display: none;
}

/* Progress Bar */
.option-bar {
    height: 8px;
    background: #f1f3f4;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.option-progress {
    height: 100%;
    background: linear-gradient(135deg, #FF5C00 0%, #FF8A00 100%);
    border-radius: 4px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.option-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Poll Footer */
.poll-footer {
    border-top: 1px solid #f1f3f4;
    padding-top: 1rem;
}

.poll-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.poll-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Loading State */
.spectacular-poll-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.loading-spinner {
    margin-bottom: 1rem;
}

.spectacular-poll-loading p {
    color: #FF5C00;
    font-weight: 500;
    margin: 0;
}

/* Message Display */
.spectacular-poll-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.spectacular-poll-message.success {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #b8daff;
}

.spectacular-poll-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Sidebar Styles */
.spectacular-poll-sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.poll-seo-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: slideInRight 0.8s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.seo-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 1.5rem 1.5rem 1rem;
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
    border-bottom: 2px solid #f1f3f4;
}

.seo-title svg {
    color: #FF5C00;
}

.seo-text {
    padding: 1.5rem;
    color: #4a5568;
    line-height: 1.6;
    font-size: 0.95rem;
}

.seo-text p {
    margin-bottom: 1rem;
}

.seo-text p:last-child {
    margin-bottom: 0;
}

/* Sidebar Stats */
.poll-stats-sidebar {
    padding: 0 1.5rem 1.5rem;
    border-bottom: 2px solid #f1f3f4;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FF5C00 0%, #FF8A00 100%);
    color: white;
    border-radius: 8px;
    flex-shrink: 0;
}

.stat-info {
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Share Section */
.poll-share-section {
    padding: 1.5rem;
}

.share-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.share-text {
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn.facebook {
    background: #4267B2;
    color: white;
}

.share-btn.facebook:hover {
    background: #365899;
    transform: translateY(-2px);
}

.share-btn.x-twitter {
    background: #000000;
    color: white;
}

.share-btn.x-twitter:hover {
    background: #333333;
    transform: translateY(-2px);
}

.share-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    color: white;
}

.share-btn.instagram:hover {
    background: linear-gradient(45deg, #e6883c 0%,#d5573c 25%,#cb2143 50%,#bb1d66 75%,#ab1078 100%);
    transform: translateY(-2px);
}

/* SEO Content Section */
.seo-content-section {
    padding: 0 1.5rem 1.5rem;
    border-bottom: 2px solid #f1f3f4;
}

.seo-content-section h5 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 600;
}

.seo-content-text {
    color: #4a5568;
    line-height: 1.6;
    font-size: 0.95rem;
}

.seo-content-text p {
    margin-bottom: 1rem;
}

.seo-content-text p:last-child {
    margin-bottom: 0;
}

/* CTA Section */
.poll-cta-section {
    padding: 2rem;
    background: linear-gradient(135deg, #fff8f5 0%, #ffffff 100%);
    border-bottom: 2px solid #f1f3f4;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(255, 92, 0, 0.1);
}

.cta-content {
    color: #4a5568;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.cta-content p {
    margin-bottom: 1rem;
}

.cta-content p:last-child {
    margin-bottom: 0;
}

.cta-button-container {
    text-align: center;
    padding: 1.5rem;
    border-bottom: 2px solid #f1f3f4;
}

.cta-button {
    /* display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #FF5C00 0%, #FF8A00 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 92, 0, 0.3);
    min-width: 170px; */
background: linear-gradient(to bottom, #FFDA45, #E5AD1C);
    color: #333333;
    font-weight: 700;
    font-size: 18px;
    border-radius: 10px;
    display: flex;
    
    min-width: 120px;
    min-height: 63px;
    height: 63px;
    text-transform: uppercase;
    align-items: center;
    justify-content: center;
    text-decoration: unset;
    -moz-transition: all 2s;
    -webkit-transition: all 2s;
    transition: all 0.2sease-out;
    cursor: pointer;
}
.cta-button-container .cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
}
.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 92, 0, 0.4);
    text-decoration: none;
    color: white;
}

.cta-button:active {
    transform: translateY(0);
}

.cta-arrow {
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
    letter-spacing: -2px;
    display: none;
}

.cta-button:hover .cta-arrow {
    transform: translateX(3px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .spectacular-poll-container {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .spectacular-poll-wrapper {
        grid-template-columns: 1fr 400px;
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .spectacular-poll-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .spectacular-poll-sidebar {
        position: static;
        order: 2;
    }
    
    .poll-seo-content {
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .spectacular-poll-container {
        margin: 1rem auto;
        padding: 0 1rem;
    }
    
    .spectacular-poll {
        border-radius: 16px;
    }
    
    .spectacular-poll-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .spectacular-poll-content {
        padding: 1rem 1.5rem 1.5rem;
    }
    
    .spectacular-poll-title {
        font-size: 1.25rem;
    }
    
    .spectacular-poll-label {
        padding: 0.875rem 1rem;
    }
    
    .results-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .total-votes {
        align-self: center;
    }
    
    .poll-seo-content {
        border-radius: 16px;
    }
    
    .share-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .share-buttons {
        align-self: stretch;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .option-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .option-stats {
        align-self: flex-end;
    }
    
    .seo-title {
        font-size: 1.1rem;
        padding: 1rem 1rem 0.75rem;
    }
    
    .seo-text {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .poll-stats-sidebar {
        padding: 0 1rem 1rem;
    }
    
    .poll-share-section {
        padding: 1rem;
    }
    
    .share-btn {
        width: 28px;
        height: 28px;
    }
}