/**
 * Reviews and Feedback System - Premium Overhaul
 */

.reviews-section {
    padding: var(--space-12) 0;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin: 0 0 var(--space-8);
    font-size: var(--text-h2);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
}

.section-heading svg {
    color: var(--brand-primary);
    width: 24px;
    height: 24px;
}

/* Review Summary Card */
.review-summary-card {
    display: flex;
    align-items: center;
    gap: var(--space-12);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    margin-bottom: var(--space-10);
    box-shadow: var(--shadow-sm);
}

.summary-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-right: var(--space-12);
    border-right: 1px solid var(--border-subtle);
    text-align: center;
    flex-shrink: 0;
}

.big-rating {
    font-size: 4rem;
    font-weight: var(--weight-extrabold);
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: var(--space-2);
}

.summary-stars {
    display: flex;
    gap: 4px;
    margin-bottom: var(--space-3);
    color: #f59e0b;
    /* Amber 500 */
}

.summary-stars .star-icon:not(.filled) {
    color: var(--text-dim);
}

.summary-count {
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-weight: var(--weight-medium);
}

.rating-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.rating-bar-row {
    display: grid;
    grid-template-columns: 50px 1fr 40px;
    gap: var(--space-4);
    align-items: center;
}

.bar-label {
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bar-track {
    height: 8px;
    background: var(--bg-base);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--brand-gradient);
    border-radius: var(--radius-full);
    transition: width 1.2s cubic-bezier(0.1, 0, 0.1, 1);
}

.bar-percent {
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    color: var(--text-dim);
    text-align: right;
}

/* Write Review Card */
.write-review-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    margin-bottom: var(--space-10);
}

.review-form-title {
    margin: 0 0 var(--space-6);
    font-size: var(--text-h4);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
}

.star-rating-input {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--border-subtle);
}

.rating-label {
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--text-secondary);
}

.star-select {
    display: flex;
    gap: var(--space-2);
}

.star-btn {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--text-dim);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.star-btn svg {
    width: 30px;
    height: 30px;
    transition: transform 0.2s ease;
}

.star-btn:hover {
    color: #f59e0b;
}

.star-btn:hover svg {
    transform: scale(1.2) rotate(10deg);
}

.star-btn.selected {
    color: #f59e0b;
}

.review-form .form-group textarea {
    width: 100%;
    padding: var(--space-5);
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: var(--text-body);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    resize: vertical;
    min-height: 140px;
    transition: all 0.2s ease;
}

.review-form .form-group textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.15);
}

.submit-review-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-8);
    background: var(--brand-gradient);
    color: #ffffff !important;
    font-size: var(--text-sm);
    font-weight: var(--weight-bold);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: var(--space-6);
    box-shadow: var(--glow-purple);
}

.submit-review-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.4);
}

/* Reviews List */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.review-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    transition: all 0.2s ease;
}

.review-card:hover {
    border-color: var(--border-default);
    transform: translateY(-2px);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.reviewer-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--brand-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--weight-bold);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.reviewer-name {
    display: block;
    font-size: var(--text-body);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
}

.review-date {
    font-size: var(--text-xs);
    color: var(--text-dim);
}

.review-rating {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-2);
}

.review-stars {
    display: flex;
    gap: 2px;
    color: #f59e0b;
}

.verified-badge {
    font-size: 10px;
    font-weight: var(--weight-bold);
    color: #10b981;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(16, 185, 129, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.review-content {
    font-size: var(--text-body);
    line-height: 1.6;
    color: var(--text-secondary);
}

/* -------------------------------------------------------------------------- */
/* CONTENT FEEDBACK SECTION - PREMIUM REFINEMENT */
/* -------------------------------------------------------------------------- */
.content-feedback-section {
    margin: var(--space-12) 0;
    padding: var(--space-6) var(--space-8);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.content-feedback-section:hover {
    border-color: var(--border-default);
    box-shadow: var(--shadow-md);
}

.feedback-question {
    font-size: var(--text-base);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    margin: 0;
}

.feedback-actions {
    display: flex;
    gap: var(--space-3);
}

.feedback-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-8);
    background: var(--bg-base);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: var(--weight-bold);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 140px;
}

/* Hover Effects - Web App Style */
.feedback-btn.feedback-like:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
    color: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.feedback-btn.feedback-dislike:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

.feedback-btn:active {
    transform: translateY(0);
}

.feedback-thanks {
    font-size: var(--text-sm);
    font-weight: var(--weight-bold);
    color: #10b981 !important;
    margin: 0;
}

/* RESPONSIVE ADDITIONS */
@media (max-width: 640px) {
    .content-feedback-section {
        flex-direction: column;
        text-align: center;
        padding: var(--space-8) var(--space-6);
        gap: var(--space-5);
    }

    .feedback-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
        gap: var(--space-3);
    }

    .feedback-btn {
        min-width: 0;
        padding: var(--space-3) var(--space-2);
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .review-summary-card {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-8);
    }

    .summary-rating {
        padding-right: 0;
        border-right: none;
        padding-bottom: var(--space-8);
        border-bottom: 1px solid var(--border-subtle);
        width: 100%;
        align-items: center;
    }

    .rating-bars {
        width: 100%;
    }
}

/* DARK MODE SPECIFICS */
[data-theme="dark"] .review-summary-card,
[data-theme="dark"] .write-review-card,
[data-theme="dark"] .review-card {
    background: rgba(30, 30, 46, 0.6);
    backdrop-filter: blur(10px);
}