/* ===================================
   REVIEWS STYLING
   =================================== */

.reviews-section {
    margin: 40px 0;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.reviews-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.reviews-header h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.rating-summary {
    display: flex;
    align-items: center;
    gap: 20px;
}

.average-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating-number {
    font-size: 36px;
    font-weight: 700;
    color: #333;
}

.stars {
    font-size: 18px;
    color: #ffc107;
}

.stars i {
    margin-right: 2px;
}

.review-count {
    color: #666;
    font-size: 14px;
}

/* Review Form */
.review-form-container {
    margin-bottom: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
}

.review-form-container h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.login-prompt {
    text-align: center;
    padding: 20px;
}

.login-prompt i {
    font-size: 36px;
    color: #ddd;
    margin-bottom: 10px;
}

.login-prompt p {
    color: #666;
}

.login-prompt a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.login-prompt a:hover {
    text-decoration: underline;
}

.review-form .form-group {
    margin-bottom: 20px;
}

.review-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
}

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

.rating-input label {
    font-size: 28px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}

.rating-input label:hover,
.rating-input label:hover ~ label {
    color: #ffc107;
}

.rating-input input[type="radio"]:checked ~ label {
    color: #ffc107;
}

.review-form input[type="text"],
.review-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s;
}

.review-form input[type="text"]:focus,
.review-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.char-count {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #999;
}

.submit-review-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-review-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.submit-review-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

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

.no-reviews {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.no-reviews i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 15px;
}

.review-item {
    padding: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: box-shadow 0.3s;
}

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

.review-header {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.reviewer-info {
    flex: 1;
}

.reviewer-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.verified-badge {
    font-size: 12px;
    color: #4caf50;
    font-weight: 500;
}

.verified-badge i {
    margin-right: 3px;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
}

.review-rating {
    color: #ffc107;
}

.review-date {
    color: #999;
}

.review-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.review-comment {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.review-images {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.review-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s;
}

.review-image:hover {
    transform: scale(1.1);
}

.review-actions {
    display: flex;
    gap: 10px;
}

.helpful-btn {
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.helpful-btn:hover {
    background: #e0e0e0;
}

.helpful-btn:disabled {
    background: #4caf50;
    color: white;
    cursor: not-allowed;
    border-color: #4caf50;
}

/* Loading State */
.loading-reviews {
    text-align: center;
    padding: 40px;
    color: #999;
}

.loading-reviews i {
    font-size: 24px;
    margin-right: 10px;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid #4caf50;
}

.notification-success i {
    color: #4caf50;
}

.notification-error {
    border-left: 4px solid #f44336;
}

.notification-error i {
    color: #f44336;
}

/* Responsive */
@media (max-width: 768px) {
    .reviews-section {
        padding: 20px;
        margin: 20px 0;
    }

    .rating-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .review-form-container {
        padding: 15px;
    }

    .reviewer-avatar {
        width: 40px;
        height: 40px;
    }

    .notification {
        right: 10px;
        left: 10px;
    }
}
