/* product-reviews.css - Styles for reviews, ratings, and feedback bubbles */

/* 1. Star Rating Picker (Form) */
.star-rating-v2 {
    display: flex !important;
    flex-direction: row-reverse !important;
    justify-content: center !important;
    gap: 35px !important;
}

.rating-label-icon i {
    font-size: 2.2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: #e2e8f0;
}

.rating-input-hide:checked ~ .rating-label-icon i,
.rating-label-icon:hover i,
.rating-label-icon:hover ~ .rating-label-icon i {
    color: #ffb800 !important;
    text-shadow: 0 0 15px rgba(255, 184, 0, 0.4);
}

/* 2. Review List Section */
.review-list-section {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.review-list-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 5px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 3. Main Review Card */
.review-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 32px;
    padding: 35px;
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    position: relative;
}

.review-card:hover {
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 20px 50px -10px rgba(99, 102, 241, 0.12);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.review-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 2px solid #fff;
}

.reply-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    border: 1.5px solid #fff;
}

.review-avatar img, .reply-avatar img, .avatar-img {
    width: var(--avatar-size, 100%);
    height: var(--avatar-size, 100%);
    object-fit: cover;
    display: block;
    border-radius: 50% !important;
}

.username-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--text-primary);
    font-size: 1.1rem;
    display: block;
}

.review-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.edit-label, .edited-label {
    font-size: 0.75rem;
    font-weight: 600;
    font-style: italic;
    background: rgba(0,0,0,0.04);
    padding: 2px 8px;
    border-radius: 6px;
    margin-left: 8px;
}

/* 4. Review Content */
.review-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 15px;
}

.review-stars i {
    font-size: 1rem;
    color: #ffc107;
}

.review-stars i.text-light-gray {
    color: #e2e8f0;
}

.review-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.review-text.fst-italic {
    padding: 15px 20px;
    background: rgba(255, 184, 0, 0.05);
    border-left: 4px solid #ffb800;
    border-radius: 0 15px 15px 0;
}

/* 5. Reactions & Actions */
.review-actions, .reply-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.reaction-btn {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0,0,0,0.03);
    padding: 8px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.reaction-btn:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    color: var(--text-primary);
}

.reaction-btn .icon {
    width: 18px; height: 18px;
    fill: currentColor;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reaction-btn:hover .icon { transform: scale(1.2); }

.reaction-btn.liked {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
}

.reaction-btn.disliked {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

.reaction-btn.toggle-reply {
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.2);
}

.reaction-btn.toggle-reply:hover {
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

/* 6. Threaded Replies System */
.reply-list-container {
    margin-top: 25px;
    position: relative;
    padding-left: 20px;
}

/* The vertical thread line */
.reply-list-container::before {
    content: "";
    position: absolute;
    left: 20px;
    top: -20px;
    bottom: 20px;
    width: 2px;
    background: linear-gradient(to bottom, #e2e8f0 0%, transparent 100%);
    border-radius: 1px;
}

.reply-item {
    position: relative;
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: var(--transition-smooth);
}

.reply-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
}

.reply-form-premium-container {
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    transform: translateY(-10px);
    opacity: 0;
}

.reply-form-premium-container.show-form {
    transform: translateY(0);
    opacity: 1;
}

/* Horizontal connecting line for each reply */
.reply-item::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 35px;
    width: 20px;
    height: 2px;
    background: #e2e8f0;
}

.reply-username-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.reply-username {
    font-weight: 800;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.reply-to-mention {
    color: #6366f1;
    font-weight: 700;
    font-size: 0.85rem;
    background: rgba(99, 102, 241, 0.08);
    padding: 2px 8px;
    border-radius: 6px;
}

.reply-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 10px;
}

/* 7. Show More Replies */
.show-replies-btn {
    margin-left: 20px;
    margin-bottom: 20px;
    padding: 8px 18px;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 99px;
    color: #6366f1;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none !important;
}

.show-replies-btn:hover {
    background: #6366f1;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.25);
}

.show-replies-btn i {
    font-size: 0.9rem;
    transition: transform 0.4s ease;
}

.show-replies-btn.expanded i {
    transform: rotate(180deg);
}

.show-replies-btn .btn-text {
    line-height: 1;
}

/* 8. Review Form & Pagination UI Improvements */
.review-form-premium {
    background: #fff;
    padding: 35px;
    border-radius: 32px;
    box-shadow: 0 15px 45px -10px rgba(0, 0, 0, 0.05);
    margin-bottom: 50px;
    border: 1px solid rgba(0,0,0,0.03);
}

.premium-textarea {
    background: #f8fafc !important;
    border: 2px solid transparent !important;
    border-radius: 20px !important;
    padding: 20px !important;
    transition: var(--transition-smooth) !important;
}

.premium-textarea:focus {
    background: #fff !important;
    border-color: #6366f1 !important;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.1) !important;
}

.action-menu-btn {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0,0,0,0.03);
    color: #94a3b8;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.action-menu-btn:hover { background: #fff; color: var(--text-primary); }

.review-pagination-container {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.review-page-link {
    width: 44px; height: 44px;
    background: #fff;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0,0,0,0.05);
}

.review-page-link.active {
    background: var(--primary-gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.review-page-link:hover:not(.active) {
    transform: translateY(-3px);
    border-color: #6366f1;
    color: #6366f1;
}

/* 9. Dashboard Styling */
.review-summary-premium {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 32px;
    padding: 40px;
    box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--glass-border);
}

.summary-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.rating-display-big, .rating-display-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.summary-separator {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(99, 102, 241, 0.15), transparent);
    width: 80%;
    margin: 20px auto;
}

.rating-score {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 0px;
    line-height: 1;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 10px 15px rgba(99, 102, 241, 0.15));
}

.rating-stars-premium i {
    font-size: 1.2rem;
    margin: 0 2px;
    filter: drop-shadow(0 2px 5px rgba(255, 184, 0, 0.2));
}

.rating-total-count {
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #94a3b8;
    margin-top: 10px;
}

/* Breakdown Bars Styling */
.breakdown-item {
    transition: var(--transition-smooth);
    padding: 4px 10px;
    border-radius: 12px;
}

.breakdown-item:hover {
    background: rgba(0,0,0,0.02);
    transform: translateX(5px);
}

.breakdown-label {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.breakdown-bar-container {
    height: 10px;
    background: rgba(0,0,0,0.04);
    border-radius: 999px;
    position: relative;
    overflow: hidden;
}

.breakdown-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: var(--primary-gradient);
    position: relative;
    transition: width 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.breakdown-bar-fill::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer-bar 2s infinite linear;
}

@keyframes shimmer-bar {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.breakdown-count {
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* 10. Premium Button & Effects */
.btn-premium-submit {
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.2);
    cursor: pointer;
}

.btn-premium-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4);
    color: #fff;
}

.btn-premium-submit:active {
    transform: translateY(-1px);
}

.glass-hover-effect {
    position: relative;
    overflow: hidden;
}

.glass-hover-effect::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.glass-hover-effect:hover::after {
    left: 100%;
}

/* 11. Extra Helper Buttons */
.btn-premium-save {
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    font-weight: 700;
    transition: var(--transition-smooth);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.2);
}

.btn-premium-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
    color: #fff;
}

.btn-premium-cancel {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    font-weight: 700;
    transition: var(--transition-smooth);
}

.btn-premium-cancel:hover {
    background: #e2e8f0;
    color: #475569;
    transform: translateY(-2px);
}

/* 12. Report Modal Premium Styling */
.report-modal-premium {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(25px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 35px !important;
    box-shadow: 0 25px 60px -15px rgba(220, 38, 38, 0.15) !important;
    overflow: hidden;
}

.btn-close-custom {
    background: #fee2e2;
    border: none;
    width: 32px; height: 32px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #ef4444;
    transition: var(--transition-smooth);
}

.btn-close-custom:hover {
    background: #ef4444; color: #fff;
    transform: rotate(90deg);
}

.btn-report-submit {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff; border: none;
    border-radius: 16px; font-weight: 800;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.2);
}

.btn-report-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(239, 68, 68, 0.4);
    color: #fff;
}

.btn-outline-light-custom {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
    border-radius: 16px;
    font-weight: 700;
    transition: var(--transition-smooth);
}

.btn-outline-light-custom:hover {
    background: #e2e8f0;
    color: #475569;
}
