/* Custom WooCommerce Reviews Plugin Styles */

/* WooCommerce Reviews Styling - Theme Matched */
.woo-reviews-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    font-family: "Poppins", sans-serif;
}

.woo-reviews-display {
    margin-bottom: 50px;
}

.woo-reviews-display h3 {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.woo-reviews-display h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #e4aa3f;
}

/* Default Layout (List) */
.reviews-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
    scrollbar-width: thin;
    scrollbar-color: #e4aa3f #f1f1f1;
}

.reviews-list::-webkit-scrollbar {
    width: 8px;
}

.reviews-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.reviews-list::-webkit-scrollbar-thumb {
    background: #e4aa3f;
    border-radius: 10px;
}

.reviews-list::-webkit-scrollbar-thumb:hover {
    background: #f39c12;
}

/* Grid Layout */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.review-grid-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    height: fit-content;
}

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

.review-grid-item::before {
    content: '"';
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 60px;
    color: #e4aa3f;
    font-family: serif;
    opacity: 0.3;
}

/* Slider Layout */
.reviews-slider {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.reviews-slider-wrapper {
    display: flex;
    transition: transform 0.3s ease;
    gap: 20px;
}

.review-slide {
    flex: 0 0 calc(33.333% - 14px);
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    min-height: 200px;
}

.review-slide:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.review-slide::before {
    content: '"';
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 60px;
    color: #e4aa3f;
    font-family: serif;
    opacity: 0.3;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.slider-prev,
.slider-next {
    background: #e4aa3f;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.slider-prev:hover,
.slider-next:hover {
    background: #f39c12;
    transform: scale(1.1);
}

.slider-prev:disabled,
.slider-next:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

/* Common Review Item Styles */
.review-item,
.review-grid-item,
.review-slide {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
}

.review-item:last-child {
    margin-bottom: 0;
}

.review-item:hover,
.review-grid-item:hover,
.review-slide:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.review-item::before,
.review-grid-item::before,
.review-slide::before {
    content: '"';
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 60px;
    color: #e4aa3f;
    font-family: serif;
    opacity: 0.3;
}

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

.reviewer-info {
    flex: 1;
    min-width: 200px;
}

.reviewer-info strong {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.reviewer-email {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 5px;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #d4edda;
    color: #155724;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.verified-badge i {
    font-size: 10px;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 3px;
}

.review-rating i {
    font-size: 18px;
    color: #ddd;
}

.review-rating i.filled {
    color: #e4aa3f;
}

.review-date {
    color: #6c757d;
    font-size: 14px;
    font-weight: 400;
}

.review-content {
    line-height: 1.7;
    color: #555;
    font-size: 15px;
    margin-left: 20px;
}

.review-content p {
    margin: 0;
}

/* Review Form Styling */
.woo-review-form-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid #dee2e6;
    position: relative;
    overflow: hidden;
}

.woo-review-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e4aa3f, #f39c12);
}

.woo-review-form-container h3 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.woo-review-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

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

.woo-review-form input[type="text"],
.woo-review-form input[type="email"],
.woo-review-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    font-family: "Poppins", sans-serif;
    transition: all 0.3s ease;
    background: #fff;
}

.woo-review-form input[type="text"]:focus,
.woo-review-form input[type="email"]:focus,
.woo-review-form textarea:focus {
    outline: none;
    border-color: #e4aa3f;
    box-shadow: 0 0 0 3px rgba(228, 170, 63, 0.1);
}

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

/* Rating Stars Styling */
.rating-input {
    display: flex;
    flex-direction: row-reverse;
    gap: 8px;
    justify-content: center;
}

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

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

.rating-input label:hover,
.rating-input label:hover ~ label {
    color: #e4aa3f;
    transform: scale(1.1);
}

.rating-input label i.filled {
    color: #e4aa3f;
}

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

/* Submit Button Styling */
.submit-review-btn {
    background: linear-gradient(135deg, #e4aa3f 0%, #f39c12 100%);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    font-family: "Poppins", sans-serif;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.submit-review-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.submit-review-btn:hover {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(228, 170, 63, 0.3);
}

.submit-review-btn:hover::before {
    left: 100%;
}

.submit-review-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.submit-review-btn:disabled::before {
    display: none;
}

/* Message Styling */
.success-message {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid #28a745;
    font-weight: 500;
}

.error-message {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid #dc3545;
    font-weight: 500;
}

/* No Reviews Message */
.woo-reviews-display p {
    text-align: center;
    color: #6c757d;
    font-size: 16px;
    font-style: italic;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .woo-reviews-container {
        padding: 0 15px;
    }
    
    .woo-reviews-display h3 {
        font-size: 24px;
    }
    
    .review-item,
    .review-grid-item,
    .review-slide {
        padding: 20px;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .reviewer-info {
        min-width: auto;
    }
    
    .review-rating {
        margin: 10px 0;
    }
    
    .woo-review-form-container {
        padding: 25px 20px;
    }
    
    .woo-review-form-container h3 {
        font-size: 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .rating-input label {
        font-size: 24px;
    }
    
    .submit-review-btn {
        padding: 12px 30px;
        font-size: 14px;
    }
    
    /* Grid responsive */
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Slider responsive */
    .review-slide {
        flex: 0 0 100%;
    }
    
    .slider-controls {
        gap: 10px;
    }
    
    .slider-prev,
    .slider-next {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .review-item,
    .review-grid-item,
    .review-slide {
        padding: 15px;
    }
    
    .review-content {
        margin-left: 10px;
        font-size: 14px;
    }
    
    .woo-review-form-container {
        padding: 20px 15px;
    }
    
    .rating-input {
        gap: 5px;
    }
    
    .rating-input label {
        font-size: 22px;
    }
    
    .reviews-grid {
        gap: 10px;
    }
    
    .slider-prev,
    .slider-next {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* Tablet responsive for grid */
@media (min-width: 769px) and (max-width: 1024px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .review-slide {
        flex: 0 0 calc(50% - 10px);
    }
}
