/* Poll Styles */
.poll-container {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
}

.poll-question {
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
}

.poll-results-info {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

.poll-results-info i {
    margin-right: 5px;
}

.poll-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.poll-option-btn {
    width: 100%;
    padding: 15px;
    border: 2px solid #007bff;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: right;
}

.poll-option-btn:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.poll-option-btn i {
    opacity: 0;
    transition: opacity 0.3s;
}

.poll-option-btn:hover i {
    opacity: 1;
}

.poll-result {
    padding: 12px;
    background: white;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.poll-result.winning {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 2px solid #2196f3;
}

.poll-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.poll-option-text {
    font-weight: 500;
    color: #333;
}

.poll-votes {
    font-size: 13px;
    color: #666;
    background: #e9ecef;
    padding: 3px 10px;
    border-radius: 12px;
}

.poll-result.winning .poll-votes {
    background: #2196f3;
    color: white;
}

.poll-bar {
    height: 35px;
    background: #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.poll-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
    transition: width 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    min-width: 40px;
}

.poll-result.winning .poll-bar-fill {
    background: linear-gradient(90deg, #28a745 0%, #1e7e34 100%);
}

.poll-percentage {
    color: white;
    font-weight: bold;
    font-size: 13px;
}

.read-more-btn {
    color: #007bff;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: bold;
    padding: 5px 0;
    transition: all 0.3s;
}

.read-more-btn:hover {
    color: #0056b3;
}

.post-text.expanded {
    animation: fadeIn 0.5s;
}

.like-btn.liked {
    color: #dc3545 !important;
}

.like-btn.liked i {
    animation: heartBeat 0.5s;
}

.fade-in {
    animation: fadeIn 0.5s;
}

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

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.3);
    }
    50% {
        transform: scale(1.1);
    }
}
