/* Frontend Styles for Reviews Plugin */

/* Reviews Container */
.reviews-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Individual Review Item */
.review-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.review-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Review Header */
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.review-author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Avatar Styles */
.review-avatar {
    flex-shrink: 0;
}

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

.review-avatar-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
}

/* Author Details */
.review-author-details {
    flex: 1;
}

.review-author-name {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 5px 0;
}

.review-author-company {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 3px 0;
}

.review-author-email {
    font-size: 13px;
    color: #9ca3af;
    margin: 0;
}

/* Review Meta */
.review-meta {
    text-align: right;
}

/* Star Rating Display */
.review-rating {
    display: flex;
    gap: 3px;
    margin-bottom: 8px;
    justify-content: flex-end;
}

.review-rating .star {
    font-size: 20px;
    line-height: 1;
}

.review-rating .star.filled {
    color: #fbbf24;
}

.review-rating .star.empty {
    color: #d1d5db;
}

.review-date {
    font-size: 13px;
    color: #9ca3af;
}

/* Review Content */
.review-content {
    font-size: 16px;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 15px;
}

/* Review Agency */
.review-agency {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #f3f4f6;
    border-radius: 6px;
    font-size: 13px;
}

.review-agency-label {
    color: #6b7280;
    font-weight: 600;
}

.review-agency-name {
    color: #1f2937;
    font-weight: 500;
}

/* No Results */
.reviews-no-results {
    text-align: center;
    padding: 60px 20px;
    background: #f9fafb;
    border-radius: 12px;
}

.reviews-no-results p {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

/* Pagination */
.reviews-pagination {
    margin-top: 40px;
    text-align: center;
}

.reviews-pagination .page-numbers {
    display: inline-block;
    padding: 10px 16px;
    margin: 0 3px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.reviews-pagination .page-numbers:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.reviews-pagination .page-numbers.current {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

/* Review Submission Form */
.reviews-submission-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 30px 0;
}

.reviews-submission-form {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.reviews-form-group {
    margin-bottom: 25px;
}

.reviews-form-group label {
    display: block;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    font-size: 15px;
}

.reviews-form-group .required {
    color: #ef4444;
}

.reviews-form-group input[type="text"],
.reviews-form-group input[type="email"],
.reviews-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.reviews-form-group input[type="text"]:focus,
.reviews-form-group input[type="email"]:focus,
.reviews-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

.reviews-form-group .form-text {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #6b7280;
}

/* Star Rating Input */
.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
    font-size: 32px;
}

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

.star-rating-input label {
    cursor: pointer;
    color: #d1d5db;
    transition: color 0.2s ease;
    margin: 0 !important;
}

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

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

/* Submit Button */
.reviews-submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.3);
}

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

.reviews-submit-btn:active {
    transform: translateY(0);
}

.reviews-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Form Messages */
.reviews-form-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 15px;
    display: none;
}

.reviews-form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
    display: block;
}

.reviews-form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
    display: block;
}

/* Loading State */
.reviews-submission-form.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .review-item {
        padding: 20px;
    }
    
    .review-header {
        flex-direction: column;
    }
    
    .review-meta {
        text-align: left;
    }
    
    .review-rating {
        justify-content: flex-start;
    }
    
    .reviews-submission-form {
        padding: 25px 20px;
    }
    
    .star-rating-input {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .review-author-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .review-avatar img,
    .review-avatar-placeholder {
        width: 50px;
        height: 50px;
    }
    
    .review-avatar-placeholder {
        font-size: 20px;
    }
}
