/* Reviews Section */
.reviews-section {
    padding: 6rem 0;
    background-color: #f9f9f9;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.review-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1.5rem;
}

.reviewer-name {
    font-weight: 600;
    margin: 0;
    color: #333;
    font-family: 'Orbitron', sans-serif;
}

.review-date {
    font-size: 0.8rem;
    color: #777;
    margin: 0.2rem 0 0;
    font-family: 'Inter', sans-serif;
}

.review-rating {
    color: #ffc107;
    font-size: 1.1rem;
}

.review-text {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
}

.review-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}

.review-image {
    width: 100%;
    height: 80px;
    border-radius: 5px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.review-image:hover {
    transform: scale(1.05);
}

/* Add Review Form */
.add-review {
    background: white;
    border-radius: 10px;
    padding: 2.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 4rem auto 0;
}

.add-review h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    font-family: 'Orbitron', sans-serif;
}

.review-form .form-group {
    margin-bottom: 1.5rem;
}

.review-form input[type="text"],
.review-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.review-form input:focus,
.review-form textarea:focus {
    outline: none;
    border-color: #6c5ce7;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

.rating {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rating span {
    font-weight: 500;
    color: #555;
    font-family: 'Inter', sans-serif;
}

.stars {
    display: flex;
    gap: 0.3rem;
}

.stars i {
    color: #ddd;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.stars i.active,
.stars i.hovered {
    color: #ffc107;
}

/* Image Upload */
.image-upload {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.image-upload.dragover {
    border-color: #6c5ce7;
    background-color: rgba(108, 92, 231, 0.05);
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    color: #666;
}

.upload-label i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #6c5ce7;
}

.upload-label span {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.upload-label input[type="file"] {
    display: none;
}

.image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.preview-item {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    height: 100px;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.remove-image:hover {
    background: #ff4d4d;
}

/* Submit Button */
.submit-btn {
    background: linear-gradient(135deg, #6c5ce7, #a55eea);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
}

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

/* Modal for Image View */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
}

.modal-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 5px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .add-review {
        padding: 1.5rem;
    }
    
    .review-form textarea {
        min-height: 100px;
    }
}

/* Loading Spinner */
.loading {
    display: flex;
    justify-content: center;
    padding: 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(108, 92, 231, 0.2);
    border-radius: 50%;
    border-top-color: #6c5ce7;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 0;
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.empty-state p {
    color: #888;
    font-size: 1.1rem;
}
