/* Custom Reviews Plugin Styles */
.custom-reviews-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.reviews-header {
    text-align: center;
    margin-bottom: 3rem;
}

.reviews-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 300;
}

.average-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.avg-stars {
    font-size: 1.5rem;
}

.avg-text {
    color: #666;
    font-size: 1rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.review-item {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
}

.review-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.review-stars {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.star {
    color: #ddd;
    margin-right: 2px;
}

.star.filled {
    color: #ffd700;
}

.review-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1.5rem;
    font-style: italic;
    position: relative;
}

.review-content::before {
    content: '"';
    font-size: 3rem;
    color: #e0e0e0;
    position: absolute;
    left: -10px;
    top: -10px;
    font-family: serif;
}

.review-author {
    border-top: 1px solid #f0f0f0;
    padding-top: 1rem;
}

.review-author strong {
    color: #333;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
}

.wedding-date {
    color: #888;
    font-size: 0.9rem;
    font-style: italic;
}

.review-form-toggle {
    text-align: center;
    margin: 3rem 0;
}

.btn-primary, .btn-secondary {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 0 10px;
}

.btn-primary {
    background: #e4b429;
    color: white;
    font-weight: 600;
}

.btn-primary:hover {
    background: #d4a419;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.review-form-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    border: 1px solid #e9ecef;
}

.custom-review-form h3 {
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e4b429;
    box-shadow: 0 0 0 3px rgba(228, 180, 41, 0.1);
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 2rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s ease;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #ffd700;
}

/* Responsive Design */
@media (max-width: 768px) {
    .custom-reviews-container {
        padding: 1rem;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .review-item {
        padding: 1.5rem;
    }
    
    .reviews-header h2 {
        font-size: 2rem;
    }
    
    .average-rating {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Loading and Success States */
.form-loading {
    opacity: 0.6;
    pointer-events: none;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    border: 1px solid #f5c6cb;
}

/* Animation for new reviews */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review-item.new {
    animation: fadeInUp 0.6s ease-out;
}

/* Slider styles (if using slider layout) */
.reviews-slider {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding-bottom: 1rem;
    scroll-behavior: smooth;
}

.reviews-slider .review-item {
    flex: 0 0 350px;
    min-width: 350px;
}

.reviews-slider::-webkit-scrollbar {
    height: 8px;
}

.reviews-slider::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.reviews-slider::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.reviews-slider::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}