/* ============================================
   REVIEWS & RATINGS STYLES
   ============================================ */

/* Review Items */
.review-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 4px solid var(--color-primary);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.review-date {
    color: #666;
    font-size: 0.9rem;
}

/* Star Ratings */
.review-stars {
    margin-top: 5px;
}

.star {
    font-size: 1.2rem;
    color: var(--color-highlighter);
    margin-right: 2px;
}

.star-filled {
    color: var(--color-highlighter);
}

.star-empty {
    color: #ddd;
}

.rating-input .star {
    cursor: pointer;
    font-size: 2rem;
    transition: all 0.2s ease;
}

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

/* Review Comment */
.review-comment {
    margin: 15px 0;
    color: #333;
    line-height: 1.6;
    padding: 12px;
    background: white;
    border-radius: 8px;
}

/* Owner Response */
.owner-response {
    margin-top: 15px;
    padding: 12px;
    background: #e3f2fd;
    border-left: 3px solid var(--color-primary);
    border-radius: 5px;
}

.owner-response strong {
    color: var(--color-primary);
    display: block;
    margin-bottom: 5px;
}

.owner-response p {
    margin: 8px 0;
    color: #333;
}

.owner-response small {
    color: #666;
    font-size: 0.85rem;
}

/* Action Buttons */
.btn-respond,
.btn-report {
    background: none;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.btn-respond {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-respond:hover {
    background: var(--color-primary);
    color: white;
}

.btn-report {
    color: #dc3545;
    border-color: #dc3545;
    margin-left: 10px;
}

.btn-report:hover {
    background: #dc3545;
    color: white;
}

/* Review Form */
.review-form {
    padding: 20px 0;
}

.rating-input {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: center;
}

/* Rating Summary */
/* BRAND ELEMENT - Preserved gradient */
.rating-summary {
    background: linear-gradient(135deg, var(--color-brand-gradient-start) 0%, var(--color-brand-gradient-end) 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    text-align: center;
}

.rating-summary-number {
    font-size: 3rem;
    font-weight: bold;
    margin: 10px 0;
}

.rating-summary-stars {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.rating-summary-text {
    opacity: 0.9;
    font-size: 0.95rem;
}

/* Rating Breakdown */
.rating-breakdown {
    margin: 25px 0;
}

.rating-bar {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.rating-bar-label {
    width: 60px;
    font-size: 0.9rem;
    color: #666;
}

.rating-bar-fill {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin: 0 15px;
}

.rating-bar-fill-inner {
    height: 100%;
    background: var(--color-highlighter);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.rating-bar-count {
    width: 40px;
    text-align: right;
    font-size: 0.9rem;
    color: #666;
}

/* Review Prompt */
.review-prompt {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.review-prompt h3 {
    color: #856404;
    margin-bottom: 10px;
}

.review-prompt p {
    color: #856404;
    margin-bottom: 15px;
}

/* Empty State */
.reviews-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.reviews-empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* Reviewable Bookings Badge */
.reviewable-badge {
    background: #ff4757;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-left: 8px;
}

/* Verified Renter Badge */
.verified-renter {
    display: inline-block;
    background: var(--color-success);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-left: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .review-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .rating-summary-number {
        font-size: 2.5rem;
    }
    
    .btn-report {
        margin-left: 0;
        margin-top: 5px;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review-item {
    animation: fadeIn 0.3s ease;
}
