/**
 * Member Review System Styles
 * Styles for reviews, comments, likes, and ratings
 */

.troo-reviews-section {
    margin: 40px 0;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
}

.troo-reviews-section h3 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #333;
    font-size: 24px;
}

/* Review Form */
.troo-review-form {
    background: #fff;
    padding: 25px;
    border-radius: 6px;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.troo-review-form .form-group {
    margin-bottom: 20px;
}

.troo-review-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.troo-review-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}

.troo-review-form textarea:focus {
    outline: none;
    border-color: #0073aa;
}

/* Star Rating */
.rating-stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
    margin-bottom: 15px;
}

.rating-stars input[type="radio"] {
    display: none;
}

.rating-stars label {
    font-size: 28px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.rating-stars label:hover,
.rating-stars label:hover ~ label,
.rating-stars label.hover,
.rating-stars label.hover ~ label {
    color: #ffc107;
}

.rating-stars input[type="radio"]:checked ~ label,
.rating-stars label.selected {
    color: #ffc107;
}

.rating-stars input[type="radio"]:checked ~ label,
.rating-stars label.selected ~ label {
    color: #ffc107;
}

/* Reviews List */
.troo-reviews-list {
    margin-top: 30px;
}

.troo-review-item {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.troo-review-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.troo-review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid #ddd;
}

.troo-review-author {
    flex: 1;
}

.troo-review-author-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.troo-review-author-location {
    font-size: 13px;
    color: #666;
}

.troo-review-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.troo-review-rating-stars {
    color: #ffc107;
    font-size: 16px;
}

.troo-review-date {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.troo-review-content {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.troo-review-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.troo-like-review-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.2s;
}

.troo-like-review-btn:hover {
    background-color: #f0f0f0;
}

.troo-like-review-btn.liked {
    color: #e74c3c;
}

.troo-like-review-btn.liked:hover {
    background-color: #ffeaea;
}

.troo-like-review-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.troo-like-review-btn .like-icon {
    font-size: 18px;
}

.troo-like-review-btn .like-count {
    font-weight: 600;
}

.troo-review-message {
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    display: none;
}

.troo-review-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.troo-review-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* No Reviews Message */
.troo-no-reviews {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .troo-reviews-section {
        padding: 20px 15px;
    }
    
    .troo-review-header {
        flex-wrap: wrap;
    }
    
    .troo-review-rating {
        width: 100%;
        margin-top: 10px;
    }
}

