/**
 * Review System Styles
 * Purple/Cyan theme matching homepage design
 */

/* Review Page Container */
.reviews-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #0a0e27 0%, #1a1f3a 50%, #0f1428 100%);
    padding: 80px 0 40px;
}

.reviews-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Page Header */
.reviews-header {
    text-align: center;
    margin-bottom: 60px;
}

.reviews-title {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #8A2BE2 0%, #00BFFF 30%, #FF00AA 60%, #8A2BE2 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s ease infinite;
    margin-bottom: 15px;
    text-shadow: 0 0 40px rgba(138, 43, 226, 0.5);
    filter: drop-shadow(0 0 20px rgba(0, 191, 255, 0.3));
}

.reviews-subtitle {
    font-size: 1.2rem;
    color: rgba(0, 191, 255, 0.9);
    margin-bottom: 30px;
}

/* Filter Controls */
.reviews-filters {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 12px 24px;
    background: rgba(15, 15, 35, 0.6);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(138, 43, 226, 0.3);
    border-radius: 25px;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.filter-btn:hover, .filter-btn.active {
    background: rgba(138, 43, 226, 0.2);
    border-color: #8A2BE2;
    box-shadow: 0 4px 20px rgba(138, 43, 226, 0.4);
    transform: translateY(-2px);
}

.filter-btn i {
    margin-right: 8px;
    color: #FFD700;
}

/* Reviews Grid */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Review Card */
.review-card {
    background: rgba(15, 15, 35, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 2px solid rgba(138, 43, 226, 0.2);
    padding: 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.review-card:hover {
    border-color: rgba(0, 191, 255, 0.4);
    box-shadow: 0 12px 48px rgba(138, 43, 226, 0.3),
                0 0 40px rgba(0, 191, 255, 0.2);
    transform: translateY(-5px);
}

/* Product Info in Review */
.review-product {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(138, 43, 226, 0.2);
}

.review-product-image {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(0, 191, 255, 0.2));
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.review-product-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(0, 191, 255, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.review-product-icon i {
    font-size: 1.8rem;
    color: #8A2BE2;
}

.review-product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    flex: 1;
}

/* User Info */
.review-user {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.review-user-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.review-user-name i {
    color: #00BFFF;
}

.review-date {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Star Rating Display */
.star-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 15px;
}

.star {
    color: rgba(255, 215, 0, 0.3);
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.star.filled {
    color: #FFD700;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

/* Review Comment */
.review-comment {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

/* Review Actions */
.review-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.review-action-btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid;
    background: transparent;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.review-edit-btn {
    color: #00BFFF;
    border-color: rgba(0, 191, 255, 0.3);
}

.review-edit-btn:hover {
    background: rgba(0, 191, 255, 0.1);
    border-color: #00BFFF;
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.3);
}

.review-delete-btn {
    color: #FF6B6B;
    border-color: rgba(255, 107, 107, 0.3);
}

.review-delete-btn:hover {
    background: rgba(255, 107, 107, 0.1);
    border-color: #FF6B6B;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

/* Review Form */
.review-form {
    background: rgba(15, 15, 35, 0.8);
    backdrop-filter: blur(30px);
    border-radius: 20px;
    border: 2px solid rgba(138, 43, 226, 0.3);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.review-form-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
}

/* Star Rating Input */
.star-rating-input {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.star-input {
    font-size: 2rem;
    color: rgba(255, 215, 0, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.star-input:hover,
.star-input.active {
    color: #FFD700;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
    transform: scale(1.2);
}

/* Comment Textarea */
.review-textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(138, 43, 226, 0.3);
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.review-textarea:focus {
    outline: none;
    border-color: #8A2BE2;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.3);
}

.review-textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Submit Button */
.review-submit-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #8A2BE2, #00BFFF);
    border: none;
    border-radius: 25px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.4);
}

.review-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(138, 43, 226, 0.6);
}

.review-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Empty State */
.reviews-empty {
    text-align: center;
    padding: 80px 20px;
}

.reviews-empty i {
    font-size: 5rem;
    color: rgba(138, 43, 226, 0.3);
    margin-bottom: 20px;
    display: block;
}

.reviews-empty h3 {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.reviews-empty p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Pagination */
.reviews-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-btn {
    padding: 10px 18px;
    background: rgba(15, 15, 35, 0.6);
    border: 2px solid rgba(138, 43, 226, 0.3);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.page-btn:hover, .page-btn.active {
    background: rgba(138, 43, 226, 0.2);
    border-color: #8A2BE2;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
}

/* Modal for Review Form */
.review-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.review-modal.active {
    display: flex;
}

.review-modal-content {
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(30px);
    border-radius: 20px;
    border: 2px solid rgba(138, 43, 226, 0.4);
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.review-modal-close {
    float: right;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.review-modal-close:hover {
    color: #FF6B6B;
    transform: rotate(90deg);
}

/* Animations */
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Responsive */
@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .reviews-title {
        font-size: 2rem;
    }
    
    .reviews-filters {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
    
    .review-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .reviews-title {
        font-size: 1.6rem;
    }
    
    .reviews-subtitle {
        font-size: 1rem;
    }
    
    .review-product {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .star-rating-input {
        gap: 6px;
    }
    
    .star-input {
        font-size: 1.6rem;
    }
}

