/* Reviews Section Styling */

.reviews-section {
    background: #f8fafc;
    padding: 4rem 1rem;
    color: #111827;
}

.reviews-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .reviews-header {
        flex-direction: column;
        align-items: stretch;
    }
}

.reviews-title-group {
    flex: 1;
}

.reviews-title {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
    color: #111827;
}

@media (max-width: 768px) {
    .reviews-title {
        font-size: 2rem;
    }
}

.reviews-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stars {
    display: flex;
    gap: 0.25rem;
}

.star {
    width: 1.25rem;
    height: 1.25rem;
    display: inline-block;
}

.star svg {
    width: 100%;
    height: 100%;
}

.reviews-section .stars .star svg path,
.star svg path {
    fill: #FF0000;
    stroke: rgba(0, 0, 0, 0.35);
    stroke-width: 0.9;
}

.rating-number {
    font-size: 1.125rem;
    font-weight: 700;
    color: #FF0000;
}

.review-count {
    font-size: 0.875rem;
    color: #4b5563;
}

/* Add Review Button */
.add-review-btn {
    background: #FF0000;
    color: #ffffff;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 300ms;
    white-space: nowrap;
}

.add-review-btn:hover {
    background: #CC0000;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .add-review-btn {
        width: 100%;
    }
}

/* Reviews Slider */
.reviews-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.reviews-slider {
    flex: 1;
    overflow: hidden;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    transition: transform 300ms ease;
}

@media (max-width: 1200px) {
    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

/* Review Card */
.review-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 300ms ease, box-shadow 300ms ease;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.review-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #1075CD, #FF0000);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    flex-shrink: 0;
    overflow: hidden;
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-user-info {
    flex: 1;
}

.review-username {
    margin: 0;
    font-weight: 700;
    font-size: 1rem;
    color: #111827;
}

.review-date {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.review-rating {
    display: flex;
    gap: 0.25rem;
}

.review-star {
    width: 1rem;
    height: 1rem;
}

.review-star svg {
    width: 100%;
    height: 100%;
}

.review-star svg path {
    fill: #FF0000;
    stroke: rgba(0, 0, 0, 0.35);
    stroke-width: 0.9;
}

.review-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #374151;
    flex: 1;
    word-break: break-word;
}

/* Slider Arrows */
.slider-arrow {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #111827;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 300ms ease, background 300ms ease, border-color 300ms ease;
    flex-shrink: 0;
}

.slider-arrow:hover {
    background: #fef2f2;
    border-color: #f87171;
    transform: scale(1.05);
}

.slider-arrow svg {
    width: 1.25rem;
    height: 1.25rem;
}

@media (max-width: 768px) {
    .slider-arrow {
        display: none;
    }
}

/* Load More Section */
.load-more-section {
    text-align: center;
    padding: 2rem 0;
}

.load-more-btn {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #111827;
    padding: 0.875rem 2.5rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 300ms ease, background 300ms ease, border-color 300ms ease;
}

.load-more-btn:hover {
    background: #fef2f2;
    border-color: #f87171;
}

.load-more-btn:hover {
    background: #FF0000;
    border-color: #FF0000;
}

/* Review Modal */
.review-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.review-modal-overlay.active {
    display: flex;
}

.review-modal {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1.5rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
}

.review-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.review-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

.review-modal-close {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 300ms ease;
}

.review-modal-close:hover {
    color: #FF0000;
}

.review-modal-close svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke-width: 2.5;
}

/* Review Form */
.review-form {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-label {
    font-weight: 700;
    color: #111827;
    font-size: 0.95rem;
}

/* Star Rating Input */
.rating-input {
    display: flex;
    gap: 0.75rem;
}

.star-btn {
    background: none;
    border: none;
    width: 2.5rem;
    height: 2.5rem;
    cursor: pointer;
    padding: 0;
    transition: transform 300ms ease, color 300ms ease;
    color: rgba(107, 114, 128, 0.7);
}

.star-btn:hover,
.star-btn.active {
    color: #FF0000;
    transform: scale(1.2);
}

.star-btn svg {
    width: 100%;
    height: 100%;
}

.star-btn svg path {
    fill: transparent;
    stroke: rgba(0, 0, 0, 0.35);
    stroke-width: 1;
}

.star-btn.active svg path {
    fill: #FF0000;
    stroke: rgba(0, 0, 0, 0.35);
}

/* Textarea */
.form-textarea {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    color: #111827;
    padding: 1rem;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 120px;
    transition: all 300ms;
}

.form-textarea::placeholder {
    color: #6b7280;
}

.form-textarea:focus {
    outline: none;
    background: #ffffff;
    border-color: #FF0000;
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
}

/* Character Counter */
.char-counter {
    font-size: 0.75rem;
    color: #6b7280;
    text-align: right;
}

/* Submit Button */
.review-submit-btn {
    background: #FF0000;
    color: #ffffff;
    border: none;
    padding: 1rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 300ms;
}

.review-submit-btn:hover {
    background: #CC0000;
    transform: scale(1.02);
}

.review-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Form Message */
.form-message {
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-message.success {
    background: rgba(34, 197, 94, 0.1);
    color: #22C55E;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #FF0000;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state-text {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}
