/* Estilos do Plugin de Enquete - Versão Corrigida */
.wpcm-poll-container {
    margin: 35px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 100%;
    width: 100%;
    position: relative;
}
.wpcm-layout-default {
    max-width: 800px;
}
.wpcm-layout-fullwidth {
    width: 100%;
    max-width: 100%;
}
.wpcm-layout-compact {
    max-width: 500px;
}
.wpcm-align-left {
    margin-left: 0;
    margin-right: auto;
}
.wpcm-align-center {
    margin-left: auto;
    margin-right: auto;
}
.wpcm-align-right {
    margin-left: auto;
    margin-right: 0;
}
.wpcm-poll {
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    padding: 30px;
    background-color: #fff;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}
.wpcm-poll:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #3498db, #e74c3c, #f1c40f, #2ecc71);
    z-index: 1;
}
.wpcm-poll:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}
.wpcm-poll-title {
    margin-top: 5px;
    margin-bottom: 30px;
    font-size: 2em;
    color: #333;
    border-bottom: 2px solid #f5f5f5;
    padding-bottom: 15px;
    text-align: center;
    font-weight: 700;
    position: relative;
}
.wpcm-poll-title:after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #9b59b6);
}
.wpcm-answers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}
.wpcm-answers-few {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.wpcm-answer {
    position: relative;
    transition: all 0.3s ease;
    transform-origin: center;
}
.wpcm-answer:hover {
    transform: translateY(-5px) scale(1.02);
    z-index: 2;
}
.wpcm-answer-label {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    height: 100%;
    transition: all 0.3s ease;
    background-color: #ffffff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}
.wpcm-answer-label:hover {
    border-color: #bbdefb;
    background-color: #f8f9ff;
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.1);
}
.wpcm-answer-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}
.wpcm-answer-radio {
    position: absolute;
    top: 15px;
    right: 15px;
    height: 22px;
    width: 22px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(0,0,0,0.05);
}
.wpcm-answer-input:checked ~ .wpcm-answer-radio {
    background-color: #2196F3;
    border-color: #2196F3;
    transform: scale(1.1);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.2);
}
.wpcm-answer-input:checked ~ .wpcm-answer-radio:after {
    content: "";
    position: absolute;
    top: 6px;
    left: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white;
    opacity: 1;
    transform: scale(1);
    transition: all 0.2s ease;
}
.wpcm-answer-input:checked ~ .wpcm-answer-label {
    border-color: #2196F3;
    background-color: #e3f2fd;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.3), 0 5px 15px rgba(33, 150, 243, 0.1);
}
.wpcm-thumbnail-container {
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    position: relative;
}
.wpcm-thumbnail-container:before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.03) 0%, rgba(255,255,255,0) 40%);
    z-index: 1;
    pointer-events: none;
}
.wpcm-thumbnail {
    max-height: 300px;
    width: auto;
    display: inline-block;
    transition: transform 0.5s ease;
    vertical-align: middle;
}
.wpcm-answer:hover .wpcm-thumbnail {
    transform: scale(1.05);
}
.wpcm-answer-text {
    font-weight: 600;
    font-size: 1.15em;
    color: #444;
    margin-top: 8px;
    text-align: center;
    line-height: 1.4;
}
.wpcm-submit-container {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.wpcm-submit-btn {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 50px;
    font-size: 1.15em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(33, 150, 243, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.wpcm-submit-btn:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.1), rgba(255,255,255,0.4), rgba(255,255,255,0.1));
    transform: skewX(-25deg);
    transition: all 0.75s ease;
    z-index: -1;
}
.wpcm-submit-btn:hover {
    background: linear-gradient(135deg, #1976D2, #0d47a1);
    box-shadow: 0 6px 15px rgba(33, 150, 243, 0.4);
    transform: translateY(-3px);
}
.wpcm-submit-btn:hover:before {
    left: 100%;
}
.wpcm-loading-spinner {
    display: inline-block;
    margin-left: 15px;
}
.wpcm-spinner {
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top: 3px solid #ffffff;
    width: 24px;
    height: 24px;
    animation: wpcm-spin 1s linear infinite;
}
@keyframes wpcm-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Resultados da enquete */
.wpcm-poll-results {
    background-color: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.wpcm-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.wpcm-results-title {
    font-size: 1.7em;
    color: #333;
    margin: 0 0 5px 0;
    font-weight: 700;
}
.wpcm-results-subtitle {
    color: #777;
    font-size: 1.1em;
}
.wpcm-total-votes-badge {
    background: linear-gradient(135deg, #f5f7fa, #e4ebf5);
    padding: 10px 20px;
    border-radius: 50px;
    text-align: center;
    min-width: 100px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.wpcm-total-votes-count {
    font-size: 1.5em;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}
.wpcm-total-votes-label {
    font-size: 0.9em;
    color: #777;
}
.wpcm-results-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}
.wpcm-results-fullwidth {
    grid-template-columns: 1fr 2fr;
}
.wpcm-chart-section {
    position: relative;
}
.wpcm-chart-small {
    height: 300px;
}
.wpcm-chart-medium {
    height: 400px;
}
.wpcm-chart-large {
    height: 500px;
}
.wpcm-chart-container {
    height: 100%;
    width: 100%;
    position: relative;
    padding: 20px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
}
.wpcm-chart-canvas {
    position: relative;
    z-index: 2;
}
.wpcm-chart-decoration {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
    transition: all 0.5s ease;
}
.wpcm-chart-decoration-1 {
    top: -30px;
    left: -30px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #64b5f6, #1976d2);
}
.wpcm-chart-decoration-2 {
    bottom: -20px;
    right: -20px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ff8a65, #e64a19);
}
.wpcm-chart-decoration-3 {
    bottom: 50px;
    left: -15px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #81c784, #388e3c);
}
.wpcm-chart-decoration-4 {
    top: 40px;
    right: -15px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ba68c8, #7b1fa2);
}
.wpcm-decoration-animated {
    transform: scale(1.2);
    opacity: 0.4;
}
.wpcm-results-list {
    background-color: #f9fafb;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}
.wpcm-results-list-header {
    font-size: 1.2em;
    font-weight: 600;
    color: #444;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}
.wpcm-result-row {
    margin-bottom: 20px;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: all 0.2s ease;
}
.wpcm-result-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
}
.wpcm-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.wpcm-color-indicator {
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin-right: 10px;
}
.wpcm-result-data {
    display: flex;
    align-items: center;
    gap: 10px;
}
.wpcm-percentage {
    font-weight: 700;
    font-size: 1.1em;
    color: #333;
}
.wpcm-progress-bar {
    height: 12px;
    background-color: rgba(0,0,0,0.05);
    border-radius: 20px;
    overflow: hidden;
    margin: 10px 0;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}
.wpcm-progress-fill {
    height: 100%;
    border-radius: 20px;
    transition: width 1s ease;
}
.wpcm-vote-count-indicator {
    text-align: right;
    font-size: 0.9em;
    color: #777;
    margin-top: 5px;
}
.wpcm-vote-count-number {
    font-weight: 600;
    margin-right: 3px;
}
.wpcm-vote-count-label {
    font-weight: normal;
    opacity: 0.8;
}
/* Compartilhamento social */
.wpcm-social-sharing {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.wpcm-social-sharing-label {
    margin-bottom: 15px;
    font-weight: 600;
    color: #555;
}
.wpcm-social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}
.wpcm-social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    font-size: 1.2em;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}
.wpcm-social-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.15);
}
.wpcm-facebook {
    background: #3b5998;
}
.wpcm-twitter {
    background: #1da1f2;
}
.wpcm-whatsapp {
    background: #25d366;
}
.wpcm-social-button .dashicons {
    width: auto;
    height: auto;
    font-size: 20px;
}
.wpcm-no-votes {
    background-color: #f5f5f5;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    color: #666;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.wpcm-no-votes-icon {
    font-size: 3em;
    color: #ccc;
    margin-bottom: 15px;
}
.wpcm-no-votes-icon .dashicons {
    width: auto;
    height: auto;
    font-size: 48px;
}
.wpcm-poll-footer {
    margin-top: 30px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    color: #999;
    font-size: 0.9em;
}
.wpcm-poll-powered-by {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.wpcm-powered-by-link {
    color: #2196F3;
    text-decoration: none;
    transition: color 0.2s ease;
}
.wpcm-powered-by-link:hover {
    color: #0d47a1;
    text-decoration: underline;
}
.wpcm-view-results-link {
    text-align: right;
    margin-bottom: 20px;
}
.wpcm-view-results-link a {
    color: #2196F3;
    text-decoration: none;
    font-size: 0.95em;
    transition: all 0.2s ease;
    padding: 5px 10px;
    border-radius: 20px;
    background-color: rgba(33, 150, 243, 0.1);
}
.wpcm-view-results-link a:hover {
    background-color: rgba(33, 150, 243, 0.2);
    color: #0d47a1;
}
.wpcm-poll-expired {
    background-color: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-weight: 500;
    border-left: 4px solid #ef5350;
    display: flex;
    align-items: center;
    gap: 10px;
}
.wpcm-poll-expired .dashicons {
    color: #e53935;
    font-size: 20px;
}
/* Ajustes responsivos */
@media (max-width: 992px) {
    .wpcm-results-layout,
    .wpcm-results-fullwidth {
        grid-template-columns: 1fr;
    }
    .wpcm-chart-section {
        order: 1;
        margin-bottom: 30px;
    }
    .wpcm-results-list {
        order: 2;
    }
    .wpcm-poll-title {
        font-size: 1.7em;
    }
    .wpcm-results-title {
        font-size: 1.5em;
    }
}
@media (max-width: 768px) {
    .wpcm-results-header {
        flex-direction: column;
        gap: 15px;
    }
    .wpcm-total-votes-badge {
        width: 100%;
    }
    .wpcm-poll {
        padding: 20px;
    }
    .wpcm-chart-medium,
    .wpcm-chart-large {
        height: 350px;
    }
}
@media (max-width: 600px) {
    .wpcm-answers-grid {
        grid-template-columns: 1fr;
    }
    .wpcm-submit-btn {
        width: 100%;
    }
    .wpcm-poll {
        padding: 15px;
    }
    .wpcm-chart-small,
    .wpcm-chart-medium,
    .wpcm-chart-large {
        height: 300px;
    }
}
