/* Xoptio Poll Redesign - Modern Card Layout */

.xoptio-poll {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem;
}

/* Poll Header */
.poll-header {
    padding: 2rem 1rem 1.5rem;
}

.poll-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.poll-title::after {
    display: none !important;
}

.poll-description {
    color: #6c757d;
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto 1rem;
    line-height: 1.6;
}

.poll-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.poll-category-badge {
    display: inline-block;
    background: #e8f5e9;
    color: #0daa41;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.poll-category-badge:hover {
    background: #0daa41;
    color: white;
    text-decoration: none;
}

.poll-fav-link {
    color: #6c757d;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
}

.poll-fav-link:hover {
    color: #e91e63;
    text-decoration: none;
}

.poll-report-link {
    color: #adb5bd;
    font-size: 0.8rem;
    padding: 0;
    text-decoration: none;
}

.poll-report-link:hover {
    color: #6c757d;
}

/* Poll Cards Container */
.poll-cards {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin: 1rem 0 2rem;
    position: relative;
}

@media (max-width: 768px) {
    .poll-cards {
        flex-direction: column;
        align-items: center;
    }
}

/* Individual Card */
.poll-card {
    flex: 1;
    max-width: 420px;
    width: 100%;
}

.poll-card-inner {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.poll-card-inner:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Card Image */
.poll-card-image {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background: #f0f0f0;
}

.poll-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.poll-card-inner:hover .poll-card-image img {
    transform: scale(1.03);
}

/* Card Name */
.poll-card-name {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    padding: 1rem 1rem 0.5rem;
    margin: 0;
}

.poll-card-name::after {
    display: none !important;
}

/* Vote Button */
.poll-vote-btn {
    display: block;
    width: calc(100% - 2rem);
    margin: 0.5rem 1rem 1rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, #0daa41, #0d8a35);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}

.poll-vote-btn:hover {
    background: linear-gradient(135deg, #0d8a35, #0a7a2e);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 170, 65, 0.3);
}

.poll-vote-btn:active {
    transform: translateY(0);
}

.poll-vote-btn i {
    margin-right: 0.3rem;
}

/* Gallery Button */
.poll-gallery-btn {
    display: block;
    width: calc(100% - 2rem);
    margin: 0 1rem 0.75rem;
    padding: 0.5rem;
    background: transparent;
    color: #6c757d;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.poll-gallery-btn:hover {
    border-color: #0daa41;
    color: #0daa41;
}

/* Vote Form */
.poll-vote-form {
    padding: 1rem;
}

.opinion-group {
    margin-bottom: 0.75rem;
}

.btn-opinion-positive {
    background: #e8f5e9 !important;
    color: #2e7d32 !important;
    border: 2px solid #c8e6c9 !important;
    border-radius: 8px 0 0 8px !important;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.btn-opinion-positive.active,
.btn-opinion-positive:hover {
    background: #0daa41 !important;
    color: white !important;
    border-color: #0daa41 !important;
}

.btn-opinion-negative {
    background: #fce4ec !important;
    color: #c62828 !important;
    border: 2px solid #ffcdd2 !important;
    border-radius: 0 8px 8px 0 !important;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.btn-opinion-negative.active,
.btn-opinion-negative:hover {
    background: #e53935 !important;
    color: white !important;
    border-color: #e53935 !important;
}

.poll-submit-btn {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background: #1a1a2e;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 0.5rem;
}

.poll-submit-btn:hover {
    background: #2d2d4a;
}

/* VS Badge */
.poll-vs-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: #1a1a2e;
    color: white;
    border-radius: 50%;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 1px;
    z-index: 10;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(26, 26, 46, 0.3);
    margin: 0 -10px;
    align-self: center;
}

@media (max-width: 768px) {
    .poll-vs-badge {
        margin: -10px auto;
    }
}

/* Statistics Section */
.poll-stats-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin: 0 0 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.poll-stats-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f0f0f0;
}

.poll-stats-title::after {
    display: none !important;
}

.poll-stats-title i {
    color: #0daa41;
    margin-right: 0.5rem;
}

/* Stats Overview */
.poll-stats-overview {
    margin-bottom: 1.5rem;
}

.poll-stat-bar {
    margin-bottom: 1.25rem;
}

.poll-stat-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.poll-stat-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1a1a2e;
}

.poll-stat-pct {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1a1a2e;
}

.poll-stat-bar-track {
    height: 10px;
    background: #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
}

.poll-stat-bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.5s ease;
}

.poll-stat-bar-fill.fill-primary {
    background: linear-gradient(90deg, #0daa41, #4caf50);
}

.poll-stat-bar-fill.fill-secondary {
    background: linear-gradient(90deg, #1a1a2e, #3d3d5c);
}

.poll-stat-votes {
    display: block;
    font-size: 0.8rem;
    color: #adb5bd;
    margin-top: 0.25rem;
}

/* Opinion Stats */
.poll-opinion-stats {
    padding: 1rem 0;
    border-top: 1px solid #f0f0f0;
}

.poll-opinion-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 0.75rem;
}

.poll-opinion-title::after {
    display: none !important;
}

.poll-opinion-row {
    margin-bottom: 0.75rem;
}

.poll-opinion-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.3rem;
    font-size: 0.8rem;
}

.label-positive {
    color: #2e7d32;
    font-weight: 600;
}

.label-negative {
    color: #c62828;
    font-weight: 600;
}

.poll-opinion-progress {
    height: 8px;
    border-radius: 4px;
    background: #ffcdd2;
}

.poll-opinion-progress .progress-bar {
    border-radius: 4px;
}

.poll-stats-link {
    display: inline-block;
    color: #0daa41;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 2px solid #e8f5e9;
    border-radius: 8px;
    margin: 0.25rem;
    transition: all 0.2s;
}

.poll-stats-link:hover {
    background: #e8f5e9;
    text-decoration: none;
    color: #0d8a35;
}

/* Share Section */
.poll-share-section {
    text-align: center;
    margin-bottom: 1.5rem;
}

.poll-share-title {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.poll-share-title::after {
    display: none !important;
}

.poll-share-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.poll-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.2rem;
    color: white;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.poll-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    color: white;
    text-decoration: none;
}

.share-facebook { background: #1877f2; }
.share-facebook:hover { background: #0d6ce3; }

.share-twitter { background: #1da1f2; }
.share-twitter:hover { background: #0c8ddb; }

.share-linkedin { background: #0077b5; }
.share-linkedin:hover { background: #006097; }

.share-whatsapp { background: #25d366; }
.share-whatsapp:hover { background: #1fbe5a; }

/* See More Button */
.poll-more-btn {
    display: inline-block;
    padding: 0.6rem 2rem;
    background: white;
    color: #0daa41;
    border: 2px solid #0daa41;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
}

.poll-more-btn:hover {
    background: #0daa41;
    color: white;
    text-decoration: none;
}

/* Gallery Modal Styles */
.modal-gallery .mySlides {
    display: none;
}

.modal-gallery .mySlides.show {
    display: block;
}

.modal-gallery .modal-content {
    border-radius: 12px;
    overflow: hidden;
}

.modal-gallery .prev,
.modal-gallery .next {
    color: #fff !important;
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    font-weight: bold;
    font-size: 20px;
    transition: 0.3s;
    border-radius: 4px;
    user-select: none;
}

.modal-gallery .next {
    right: 0;
}

.modal-gallery .prev:hover,
.modal-gallery .next:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-gallery .numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
}

/* Override old styles */
.xoptio-poll .optio-slider {
    display: none;
}

/* Responsive */
@media (max-width: 576px) {
    .poll-title {
        font-size: 1.35rem;
    }

    .poll-card-name {
        font-size: 1rem;
    }

    .poll-stats-section {
        padding: 1.25rem;
    }

    .poll-share-btn {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
}
