/* Rating System Styling */
.rating-container {
    display: inline-flex;
    align-items: center;
    background: #272a2f;
    border-radius: 4px;
    padding: 8px 12px;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.rating-counter {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
    font-family: Arial, sans-serif;
}

.rating-label {
    background: #af5b61;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
    text-transform: capitalize;
    font-family: Arial, sans-serif;
}

.rating-buttons {
    display: flex;
    gap: 8px;
}

.rating-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.2s ease;
    color: #ffffff;
}

.rating-btn.upvote {
    background: #5cb85c;
}

.rating-btn.upvote:hover {
    background: #4cae4c;
    transform: scale(1.05);
}

.rating-btn.upvote:active {
    transform: scale(0.95);
}

/* DOWNVOTE BUTTON DISABLED - Only positive votes allowed */
.rating-btn.downvote {
    display: none !important;
}

.rating-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.rating-btn:disabled:hover {
    transform: none;
}

/* Feedback messages */
.rating-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ffffff;
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    animation: slideIn 0.3s ease;
}

.rating-message.success {
    border-left: 4px solid #5cb85c;
}

.rating-message.error {
    border-left: 4px solid #d9534f;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Countdown timer */
.rating-countdown {
    font-size: 11px;
    color: #8a95a5;
    margin-top: 5px;
    font-family: Arial, sans-serif;
}

/* Tooltip */
.rating-tooltip {
    position: relative;
    display: inline-block;
}

.rating-tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
}

.rating-tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}
