/**
 * Recommendation Feedback Styles
 * 
 * Phase 4.1: Feedback buttons for recommendation quality signals
 * 
 * @package VideoHub
 */

/* Feedback Buttons Container */
.vh-feedback-buttons {
    display: flex;
    gap: 4px;
    margin-left: auto;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.vh-video-card:hover .vh-feedback-buttons {
    opacity: 1;
}

/* Individual Feedback Button */
.vh-feedback-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.15s ease;
}

.vh-feedback-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

/* Thumbs Up - Active State */
.vh-feedback-btn.vh-feedback-up.active,
.vh-feedback-btn.vh-feedback-up:active {
    background: rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

/* Thumbs Down - Active State */
.vh-feedback-btn.vh-feedback-down.active,
.vh-feedback-btn.vh-feedback-down:active {
    background: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Already Submitted State */
.vh-feedback-buttons.submitted .vh-feedback-btn {
    pointer-events: none;
}

.vh-feedback-buttons.submitted .vh-feedback-btn:not(.active) {
    opacity: 0.3;
}

/* Title Row Layout - Ensure space for feedback */
.vh-title-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.vh-title-row .vh-video-title {
    flex: 1;
    min-width: 0;
    /* Allow text truncation */
}

/* Why Recommended Button */
.vh-why-recommended {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.15s ease;
}

.vh-why-recommended:hover {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
}

/* Tooltip - Why Recommended */
.vh-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    font-size: 11px;
    line-height: 1.4;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 100;
    margin-bottom: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.vh-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

/* Mobile - Always show feedback buttons */
@media (max-width: 768px) {
    .vh-feedback-buttons {
        opacity: 1;
    }

    .vh-feedback-btn {
        width: 28px;
        height: 28px;
    }
}