/**
 * SmartWeb Reviews Styles
 */

/* Reviews Container */
.smartweb-reviews {
    max-width: 1200px;
    margin: 2rem auto;
}

/* Review Summary */
.reviews-summary {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    padding: 2rem;
    background: #f9fafb;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.summary-rating {
    text-align: center;
}

.rating-number {
    font-size: 3rem;
    font-weight: 700;
    color: #111827;
    line-height: 1;
}

.rating-stars {
    margin: 0.5rem 0;
}

.star {
    color: #d1d5db;
    font-size: 1.5rem;
}

.star.filled {
    color: #fbbf24;
}

.total-reviews {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Rating Breakdown */
.rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rating-bar {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    gap: 0.5rem;
}

.bar-label {
    text-align: right;
    font-size: 0.875rem;
    color: #6b7280;
}

.bar-container {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: #fbbf24;
    transition: width 0.3s ease;
}

.bar-count {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Review Actions */
.review-actions {
    margin-bottom: 2rem;
}

.btn-add-review {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-review:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-add-review svg {
    width: 20px;
    height: 20px;
}

/* Review Form */
.smartweb-review-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.smartweb-review-form h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: #111827;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.required {
    color: #ef4444;
}

/* Rating Selector */
.rating-selector {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.rating-selector input[type="radio"] {
    display: none;
}

.rating-selector .star {
    font-size: 2rem;
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.2s ease;
}

.rating-selector .star:hover,
.rating-selector input[type="radio"]:checked ~ .star,
.rating-selector .star.active {
    color: #fbbf24;
}

.rating-text {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group.half {
    margin-bottom: 0;
}

/* Photo Upload */
.upload-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-button:hover {
    background: #e5e7eb;
}

.upload-button svg {
    width: 20px;
    height: 20px;
}

.photo-preview {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.photo-preview img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-submit {
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-cancel {
    padding: 0.75rem 2rem;
    background: #f3f4f6;
    color: #6b7280;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: #e5e7eb;
}

/* Reviews List */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.reviews-list.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

/* Review Item */
.review-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.review-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.review-item.featured {
    border: 2px solid #fbbf24;
}

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

.reviewer-info {
    display: flex;
    gap: 1rem;
}

.reviewer-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.reviewer-name {
    margin: 0 0 0.25rem 0;
    font-size: 1.125rem;
    color: #111827;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.review-rating {
    display: flex;
    gap: 0.125rem;
}

.review-rating .star {
    font-size: 1rem;
}

.review-date {
    font-size: 0.875rem;
    color: #6b7280;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.verified-badge svg {
    width: 14px;
    height: 14px;
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: #fef3c7;
    color: #d97706;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.featured-badge svg {
    width: 14px;
    height: 14px;
}

.review-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}

.review-content {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Review Photos */
.review-photos {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.review-photo {
    display: block;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.review-photo:hover {
    transform: scale(1.05);
}

.review-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Review Actions */
.review-actions {
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
}

.btn-helpful {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #6b7280;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-helpful:hover {
    background: #f3f4f6;
    color: #667eea;
    border-color: #667eea;
}

.btn-helpful svg {
    width: 16px;
    height: 16px;
}

.helpful-count {
    color: #9ca3af;
}

/* No Reviews */
.no-reviews {
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
}

/* Load More */
.reviews-pagination {
    text-align: center;
    margin-top: 2rem;
}

.btn-load-more {
    padding: 0.75rem 2rem;
    background: #f3f4f6;
    color: #374151;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-load-more:hover {
    background: #e5e7eb;
}

/* Responsive */
@media (max-width: 768px) {
    .reviews-summary {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .reviews-list.grid {
        grid-template-columns: 1fr;
    }
    
    .review-header {
        flex-direction: column;
        gap: 1rem;
    }
}