/* Advanced Review System - Premium 60-30-10 Design */

/* Rating Summary Card */
.rating-summary-card {
    background: #FFFFFF; /* Primary 60% */
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.rating-summary-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #E5E7EB;
}

.rating-summary-average {
    font-size: 3rem;
    font-weight: 700;
    color: #0F172A; /* Secondary 30% */
    line-height: 1;
}

.rating-summary-stars {
    display: flex;
    gap: 0.25rem;
    font-size: 1.5rem;
    color: #F59E0B; /* Gold for stars */
}

.rating-summary-count {
    color: #64748B; /* Muted */
    font-size: 0.95rem;
    margin-left: auto;
}

/* Star Breakdown */
.star-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.star-breakdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.star-breakdown-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 80px;
    color: #1E293B; /* Secondary 30% */
    font-weight: 500;
    font-size: 0.95rem;
}

.star-breakdown-label i {
    color: #F59E0B;
}

.star-breakdown-bar {
    flex: 1;
    height: 10px;
    background: #F8FAFC; /* Primary 60% */
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.star-breakdown-bar-fill {
    height: 100%;
    background: #E11D48; /* Accent 10% */
    border-radius: 8px;
    transition: width 0.3s ease;
}

.star-breakdown-percentage {
    min-width: 50px;
    text-align: right;
    color: #64748B; /* Muted */
    font-size: 0.9rem;
}

/* Premium Review Card */
.review-card-premium {
    background: #FFFFFF; /* Primary 60% */
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.review-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #E11D48; /* Accent 10% */
}

.review-card-premium:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

.review-card-premium.is-hidden {
    opacity: 0.6;
    background: #F8FAFC;
}

.review-header-premium {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.review-author-premium {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.review-author-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.review-author-name {
    font-weight: 600;
    color: #0F172A; /* Secondary 30% */
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.review-date-premium {
    color: #64748B; /* Muted */
    font-size: 0.875rem;
}

.review-rating-premium {
    display: flex;
    gap: 0.25rem;
    font-size: 1.1rem;
}

.review-rating-premium i {
    color: #F59E0B; /* Gold */
}

.review-rating-premium i.bi-star-fill {
    color: #F59E0B;
}

.review-rating-premium i.bi-star {
    color: #E5E7EB;
}

.review-title-premium {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0F172A; /* Secondary 30% */
    margin-bottom: 0.75rem;
}

.review-message-premium {
    color: #1E293B; /* Secondary 30% */
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Review Actions */
.review-actions-premium {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #F8FAFC;
}

.review-helpful-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid #E5E7EB;
    background: #F8FAFC; /* Primary 60% */
    color: #64748B; /* Muted */
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.review-helpful-btn:hover {
    background: rgba(225, 29, 72, 0.1);
    border-color: #E11D48; /* Accent 10% */
    color: #E11D48;
}

.review-helpful-btn.is-voted {
    background: rgba(225, 29, 72, 0.1);
    border-color: #E11D48;
    color: #E11D48;
}

.review-helpful-count {
    font-weight: 600;
    color: inherit;
}

.review-report-btn {
    color: #DC2626;
    background: transparent;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.review-report-btn:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #DC2626;
}

/* Verified Badge */
.verified-badge {
    background: rgba(34, 197, 94, 0.1);
    color: #22C55E;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.verified-badge i {
    font-size: 0.875rem;
}

/* Hidden Review Message */
.review-hidden-message {
    background: #FEF3C7;
    border: 1px solid #FCD34D;
    border-radius: 8px;
    padding: 1rem;
    color: #92400E;
    text-align: center;
    margin-bottom: 1rem;
}

.review-hidden-message i {
    margin-right: 0.5rem;
}

/* Moderation Dashboard */
.moderation-dashboard {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.moderation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #E5E7EB;
}

.moderation-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.moderation-stat-card {
    background: #F8FAFC;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.moderation-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 0.5rem;
}

.moderation-stat-label {
    color: #64748B;
    font-size: 0.9rem;
}

.moderation-actions {
    display: flex;
    gap: 0.75rem;
}

.moderation-btn {
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.moderation-btn-hide {
    background: #E11D48;
    color: #FFFFFF;
}

.moderation-btn-hide:hover {
    background: #BE123C;
}

.moderation-btn-unhide {
    background: #64748B;
    color: #FFFFFF;
}

.moderation-btn-unhide:hover {
    background: #475569;
}

.moderation-btn-verify {
    background: #22C55E;
    color: #FFFFFF;
}

.moderation-btn-verify:hover {
    background: #16A34A;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .rating-summary-card {
        padding: 1.5rem;
    }
    
    .rating-summary-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .rating-summary-average {
        font-size: 2.5rem;
    }
    
    .rating-summary-count {
        margin-left: 0;
    }
    
    .star-breakdown {
        gap: 1rem;
    }
    
    .star-breakdown-item {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .star-breakdown-label {
        min-width: auto;
    }
    
    .star-breakdown-percentage {
        text-align: left;
    }
    
    .review-card-premium {
        padding: 1rem;
    }
    
    .review-header-premium {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .review-actions-premium {
        flex-direction: column;
        align-items: stretch;
    }
    
    .review-helpful-btn,
    .review-report-btn {
        width: 100%;
        justify-content: center;
    }
    
    .moderation-stats {
        grid-template-columns: 1fr;
    }
    
    .moderation-actions {
        flex-direction: column;
    }
    
    .moderation-btn {
        width: 100%;
    }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

.toast-success {
    border-left: 4px solid #22C55E;
}

.toast-error {
    border-left: 4px solid #DC2626;
}

.toast-info {
    border-left: 4px solid #3B82F6;
}

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

/* Sort Dropdown */
.review-sort {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #F8FAFC;
    border-radius: 12px;
}

.review-sort-label {
    color: #1E293B;
    font-weight: 600;
    font-size: 0.95rem;
}

.review-sort-select {
    flex: 1;
    max-width: 250px;
    padding: 0.625rem 1rem;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #FFFFFF;
    color: #0F172A;
    font-size: 0.95rem;
    cursor: pointer;
}

.review-sort-select:focus {
    outline: none;
    border-color: #E11D48;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.15);
}













