/**
 * Track Voting Styles
 *
 * @package Live_Radio_Player
 * @since 1.5.0
 */

/* Voting Container */
.lrp-track-voting {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.lrp-voting-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* Vote Buttons */
.lrp-vote-buttons {
    display: flex;
    gap: 10px;
}

.lrp-vote-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 2px solid transparent;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.lrp-vote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.lrp-vote-btn:active {
    transform: translateY(0);
}

.lrp-vote-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Like Button */
.lrp-vote-btn.like {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    border-color: rgba(255, 255, 255, 0.2);
}

.lrp-vote-btn.like:hover {
    background: linear-gradient(135deg, #ff5252 0%, #dc4f60 100%);
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.4);
}

.lrp-vote-btn.like.voted {
    background: #ff6b6b;
    animation: heartBeat 0.6s ease;
}

/* Dislike Button */
.lrp-vote-btn.dislike {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    border-color: rgba(255, 255, 255, 0.2);
}

.lrp-vote-btn.dislike:hover {
    background: linear-gradient(135deg, #5a6268 0%, #4e555b 100%);
    box-shadow: 0 4px 16px rgba(108, 117, 125, 0.4);
}

.lrp-vote-btn.dislike.voted {
    background: #6c757d;
    animation: shake 0.5s ease;
}

/* Icons */
.lrp-vote-icon {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.lrp-vote-btn:hover .lrp-vote-icon {
    transform: scale(1.2);
}

.lrp-vote-btn.voted .lrp-vote-icon {
    animation: pulse 0.5s ease;
}

/* Vote Count */
.lrp-vote-count {
    font-size: 14px;
    font-weight: 700;
    min-width: 20px;
}

/* Feedback Message */
.lrp-vote-message {
    flex: 1;
    text-align: right;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lrp-vote-message.show {
    opacity: 1;
}

.lrp-vote-message.success {
    color: #4caf50;
}

.lrp-vote-message.error {
    color: #ff5252;
}

/* Animations */
@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.15); }
    50% { transform: scale(1.05); }
    75% { transform: scale(1.1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .lrp-track-voting {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .lrp-vote-buttons {
        justify-content: center;
    }
    
    .lrp-vote-message {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .lrp-vote-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .lrp-vote-icon {
        font-size: 14px;
    }
}

/* Admin Stats Table */
.lrp-voting-stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lrp-voting-stats-table th,
.lrp-voting-stats-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.lrp-voting-stats-table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #333;
}

.lrp-voting-stats-table tr:hover {
    background: #f9f9f9;
}

.lrp-vote-stat-likes {
    color: #ff6b6b;
    font-weight: 600;
}

.lrp-vote-stat-dislikes {
    color: #6c757d;
    font-weight: 600;
}

.lrp-vote-stat-bar {
    display: flex;
    gap: 2px;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 4px;
}

.lrp-vote-stat-bar-like {
    background: #ff6b6b;
    transition: width 0.3s ease;
}

.lrp-vote-stat-bar-dislike {
    background: #6c757d;
    transition: width 0.3s ease;
}
