/* FICHIER : shared/css/feedback.css */

/* ===== POUCES POUR REPONSES IA ===== */
.feedback-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 6px;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.message.ai:hover .feedback-thumbs {
    opacity: 1;
}

.feedback-thumbs.voted {
    opacity: 1;
}

.thumb-btn {
    background: none;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 16px;
    color: var(--text-secondary, #888);
    transition: all 0.2s;
}

.thumb-btn:hover {
    background: var(--bg-hover, rgba(0,0,0,0.05));
    border-color: var(--border-color, #ddd);
}

.thumb-btn.active-up {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
}

.thumb-btn.active-down {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.thumb-btn.disabled {
    pointer-events: none;
    cursor: default;
}

/* ===== ETOILES POUR DOCUMENTS ===== */
.feedback-stars-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-surface, #f9f9f9);
    border-radius: 10px;
    margin: 16px auto;
    max-width: 360px;
}

.feedback-stars-label {
    font-size: 15px;
    color: var(--text-secondary, #888);
    white-space: nowrap;
}

.feedback-stars {
    display: flex;
    gap: 4px;
}

.star-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 28px;
    padding: 2px;
    transition: transform 0.15s;
    color: #d1d5db;
    line-height: 1;
}

.star-btn:hover {
    transform: scale(1.2);
}

.star-btn.active {
    color: #f59e0b;
}

.star-btn.disabled {
    pointer-events: none;
    cursor: default;
}

.feedback-stars-thanks {
    font-size: 15px;
    color: #22c55e;
    display: none;
}

.feedback-stars-thanks.visible {
    display: inline;
}

/* ===== THEME DARK ===== */
[data-theme="dark"] .thumb-btn {
    color: var(--text-secondary, #aaa);
}

[data-theme="dark"] .thumb-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .feedback-stars-container {
    background: var(--bg-surface, #1e1e1e);
}

[data-theme="dark"] .star-btn {
    color: #4b5563;
}

[data-theme="dark"] .star-btn.active {
    color: #f59e0b;
}
