/**
 * Revma Reviews Styles
 */

.rrv-reviews-wrapper { max-width: 800px; }

/* Rating Summary */
.rrv-summary {
    display: flex;
    gap: 40px;
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.rrv-summary-score { text-align: center; }
.rrv-big-rating { font-size: 3rem; font-weight: 700; color: #1f2937; }
.rrv-stars-display { color: #f59e0b; font-size: 1.25rem; }
.rrv-review-count { font-size: 0.875rem; color: #6b7280; }

.rrv-rating-bars { flex: 1; }
.rrv-rating-bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.rrv-bar-label { width: 40px; font-size: 0.875rem; color: #6b7280; }
.rrv-bar-track { flex: 1; height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; }
.rrv-bar-fill { height: 100%; background: #f59e0b; border-radius: 4px; }
.rrv-bar-count { width: 30px; font-size: 0.875rem; color: #6b7280; text-align: right; }

/* Review Cards */
.rrv-review-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.rrv-review-card.rrv-featured {
    border: 2px solid #f59e0b;
    position: relative;
}

.rrv-review-card.rrv-featured::before {
    content: '⭐ Featured';
    position: absolute;
    top: -10px;
    right: 16px;
    background: #f59e0b;
    color: white;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 4px;
}

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

.rrv-reviewer-info { display: flex; gap: 12px; align-items: center; }

.rrv-reviewer-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.rrv-reviewer-name { font-weight: 600; color: #1f2937; }
.rrv-verified-badge { font-size: 0.7rem; background: #dcfce7; color: #166534; padding: 2px 8px; border-radius: 10px; margin-left: 8px; }
.rrv-reviewer-city { font-size: 0.8rem; color: #6b7280; display: block; }

.rrv-review-rating { display: flex; align-items: center; gap: 8px; }
.rrv-rating-value { font-weight: 700; }

.rrv-review-title { margin: 0 0 12px; font-size: 1rem; color: #1f2937; }
.rrv-review-content { color: #4b5563; line-height: 1.6; margin-bottom: 16px; }

.rrv-pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.rrv-pros { background: #f0fdf4; padding: 12px; border-radius: 8px; }
.rrv-cons { background: #fef2f2; padding: 12px; border-radius: 8px; }
.rrv-pros strong, .rrv-cons strong { font-size: 0.85rem; }
.rrv-pros p, .rrv-cons p { margin: 8px 0 0; font-size: 0.9rem; }

.rrv-review-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid #e5e7eb; }
.rrv-review-date { font-size: 0.8rem; color: #9ca3af; }
.rrv-helpful-btn { border: 1px solid #e5e7eb; background: white; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 0.85rem; }
.rrv-helpful-btn:hover { background: #f9fafb; }

.rrv-no-reviews { text-align: center; padding: 40px; color: #6b7280; background: white; border-radius: 12px; }

/* Review Form */
.rrv-form-wrapper {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-top: 32px;
}

.rrv-form-title { margin: 0 0 24px; font-size: 1.25rem; color: #1f2937; }

.rrv-form-row { margin-bottom: 20px; }
.rrv-form-row label { display: block; margin-bottom: 6px; font-weight: 500; color: #374151; font-size: 0.9rem; }

.rrv-form-row input, .rrv-form-row select, .rrv-form-row textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
}

.rrv-form-row input:focus, .rrv-form-row select:focus, .rrv-form-row textarea:focus {
    outline: none;
    border-color: #6366f1;
}

.rrv-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Star Input */
.rrv-star-input { display: flex; gap: 4px; }
.rrv-star-input .rrv-star { font-size: 2rem; cursor: pointer; color: #d1d5db; transition: color 0.1s; }
.rrv-star-input .rrv-star:hover, .rrv-star-input .rrv-star.active { color: #f59e0b; }
.rrv-star-sm .rrv-star { font-size: 1.25rem; }

.rrv-ratings-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 20px; }

.rrv-checkbox { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.rrv-checkbox input { width: 18px; height: 18px; }

.rrv-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.rrv-submit-btn:hover { opacity: 0.9; }
.rrv-form-message { margin-top: 16px; padding: 12px; border-radius: 8px; }
.rrv-form-message.success { background: #dcfce7; color: #166534; }
.rrv-form-message.error { background: #fee2e2; color: #dc2626; }
.rrv-form-note { margin: 16px 0 0; font-size: 0.8rem; color: #9ca3af; text-align: center; }

/* Rating Badge */
.rrv-rating-badge {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: inline-block;
}

.rrv-badge-score { font-size: 2rem; font-weight: 700; color: #1f2937; }
.rrv-badge-count { font-size: 0.8rem; color: #6b7280; }

.rrv-rating-inline { display: inline-flex; align-items: center; gap: 6px; }

/* Top Rated */
.rrv-top-rated {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.rrv-top-rated h4 { margin: 0 0 16px; font-size: 1rem; }
.rrv-top-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f3f4f6; }
.rrv-top-item:last-child { border-bottom: none; }
.rrv-top-rank { width: 24px; height: 24px; background: #f3f4f6; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 600; }
.rrv-top-name { flex: 1; font-weight: 500; }
.rrv-top-rating { display: flex; align-items: center; gap: 4px; }

@media (max-width: 600px) {
    .rrv-summary { flex-direction: column; gap: 20px; }
    .rrv-pros-cons, .rrv-row-2, .rrv-ratings-grid { grid-template-columns: 1fr; }
}
