/* Voting System Styles */

.tlp-voting-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.tlp-voting-header {
    text-align: center;
    margin-bottom: 40px;
}

.tlp-voting-header h2 {
    color: #1a365d;
    font-size: 32px;
    margin: 0 0 15px 0;
}

.tlp-voting-header p {
    color: #666;
    font-size: 18px;
}

.tlp-already-voted {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 30px;
}

.tlp-vote-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.tlp-vote-section h3 {
    color: #1a365d;
    margin: 0 0 5px 0;
    font-size: 24px;
}

.tlp-current-rule {
    color: #666;
    font-size: 14px;
    margin: 0 0 20px 0;
}

.tlp-vote-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.tlp-vote-option {
    cursor: pointer;
}

.tlp-vote-option input {
    display: none;
}

.tlp-option-box {
    display: block;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s;
}

.tlp-vote-option input:checked + .tlp-option-box {
    border-color: #1a365d;
    background: #1a365d;
    color: #fff;
}

.tlp-vote-option:hover .tlp-option-box {
    border-color: #1a365d;
}

.tlp-option-label {
    font-weight: 600;
    font-size: 16px;
}

.tlp-vote-info {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tlp-vote-info input {
    flex: 1;
    min-width: 200px;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 16px;
}

.tlp-vote-submit {
    text-align: center;
}

.tlp-vote-btn {
    background: #c53030;
    color: #fff;
    border: none;
    padding: 16px 48px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.tlp-vote-btn:hover {
    background: #9b2c2c;
    transform: translateY(-2px);
}

.tlp-vote-btn:disabled {
    background: #999;
    cursor: not-allowed;
    transform: none;
}

.tlp-vote-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.tlp-vote-message.success {
    background: #d4edda;
    color: #155724;
}

.tlp-vote-message.error {
    background: #f8d7da;
    color: #721c24;
}

/* Results Styles */
.tlp-results-wrapper {
    max-width: 800px;
    margin: 30px auto;
    padding: 20px;
}

.tlp-results-header {
    text-align: center;
    margin-bottom: 30px;
}

.tlp-results-header h3 {
    color: #1a365d;
    margin: 0 0 10px 0;
}

.tlp-total-votes {
    font-size: 18px;
    color: #666;
}

.tlp-results-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.tlp-results-section h4 {
    color: #1a365d;
    margin: 0 0 20px 0;
    font-size: 20px;
}

.tlp-result-row {
    display: grid;
    grid-template-columns: 150px 1fr 100px;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
}

.tlp-result-row.tlp-winner .tlp-result-bar {
    background: #c53030;
}

.tlp-result-label {
    font-weight: 500;
    color: #333;
}

.tlp-result-bar-wrapper {
    background: #e2e8f0;
    border-radius: 20px;
    height: 30px;
    position: relative;
    overflow: hidden;
}

.tlp-result-bar {
    background: #1a365d;
    height: 100%;
    border-radius: 20px;
    transition: width 0.5s ease;
}

.tlp-result-percent {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.tlp-result-count {
    text-align: right;
    font-size: 14px;
    color: #666;
}

/* Share Results */
.tlp-share-results {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.tlp-share-results p {
    margin: 0 0 15px 0;
    color: #666;
}

.tlp-share-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.tlp-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.tlp-share-twitter {
    background: #000;
    color: #fff;
}

.tlp-share-facebook {
    background: #1877f2;
    color: #fff;
}

.tlp-share-copy {
    background: #6b7280;
    color: #fff;
}

.tlp-share-email {
    background: #ea4335;
    color: #fff;
}

.tlp-share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

@media (max-width: 600px) {
    .tlp-vote-options {
        grid-template-columns: 1fr;
    }

    .tlp-result-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .tlp-result-count {
        text-align: left;
    }

    .tlp-vote-info {
        flex-direction: column;
    }

    .tlp-vote-info input {
        min-width: 100%;
    }
}
