/* ── Review Enhancements (Sort/Filter/Helpful/Translate) ── */

.review-sort-filter-bar {
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 1.5rem;
}

.review-sort-select {
    border-radius: var(--bs-border-radius);
    font-size: 0.85rem;
    border-color: #e0e0e0;
    padding-right: 2.5rem;
    cursor: pointer;
    background-color: #fff;
}

.review-filter-pills .review-filter-btn {
    padding: 6px 16px;
    border-radius: var(--bs-border-radius);
    border: 1.5px solid #e0e0e0;
    background: white;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #555;
}

.review-filter-pills .review-filter-btn:hover {
    border-color: #bbb;
    background: #f9f9f9;
}

.review-filter-pills .review-filter-btn.active {
    background: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Package Badge */
.review-package-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.75rem;
    color: #495057;
    margin-top: 6px;
    font-weight: 500;
}

.review-package-badge i {
    color: #6c757d;
    font-size: 0.7rem;
}

/* Action Bar (Helpful/Translate) */
.review-action-bar {
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid #f8f9fa;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

/* Helpful Button */
.helpful-btn {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: var(--bs-border-radius);
    padding: 6px 14px;
    font-size: 0.8rem;
    color: #495057;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.helpful-btn:hover {
    border-color: #ff711a;
    color: #ff711a;
    background-color: #fff9f5;
}

.helpful-btn.voted {
    background: #fff3ec;
    border-color: #ff711a;
    color: #ff711a;
    font-weight: 600;
    box-shadow: inset 0 1px 2px rgba(255, 113, 26, 0.1);
}

.helpful-btn.voted i {
    transform: scale(1.1);
    color: #ff711a;
}

.helpful-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Translate Button */
.translate-btn {
    background: none;
    border: none;
    color: #0070f3;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    transition: color 0.15s ease;
}

.translate-btn:hover {
    color: #0051cc;
    text-decoration: underline;
}

.translate-btn i {
    font-size: 0.9rem;
}

/* Translate Result */
.translate-result-area {
    background: #f8faff;
    border-left: 3.5px solid #0070f3;
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
    animation: slideInDown 0.3s ease-out;
}

.translate-badge {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 8px;
}

.translate-badge i {
    color: #0070f3;
}

.translated-text {
    font-style: italic;
    color: #212529;
    font-size: 0.92rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

.show-original-btn {
    background: none;
    border: none;
    color: #0070f3;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    margin-left: auto;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Review Context Bar Hover Effects */
.review-context a.bg-light {
    transition: all 0.2s ease;
}

.review-context a.bg-light:hover {
    background-color: #fff4ed !important;
    border-color: #ff711a !important;
}

.review-context a.bg-light:hover span {
    color: #ff711a !important;
}
