/* ============================================ */
/* ENHANCED MODERN REVIEW SYSTEM IMPROVEMENTS  */
/* ============================================ */

/* CSS Variables for Modern Color Palette */
:root {
    --primary-gold: #d4af37;
    --primary-orange: #ff6b35;
    --primary-gradient: linear-gradient(135deg, #d4af37 0%, #ff6b35 100%);
    --secondary-blue: #2563eb;
    --success-green: #10b981;
    --error-red: #ef4444;
    --text-dark: #0f172a;
    --text-medium: #475569;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-lighter: #f1f5f9;
    --border-light: rgba(203, 213, 225, 0.6);
    --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition-fast: all 0.2s ease;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Enhanced Reviews Section Background */
.reviews-section {
    background: linear-gradient(135deg, 
        var(--bg-light) 0%, 
        var(--bg-white) 40%, 
        var(--bg-lighter) 100%);
    position: relative;
    padding: 5rem 0;
    overflow: hidden;
}

.reviews-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(255, 107, 53, 0.06) 0%, transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.04) 0%, transparent 80%);
    animation: floatingPattern 25s ease-in-out infinite;
}

@keyframes floatingPattern {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    33% { transform: translateY(-20px) rotate(1deg) scale(1.02); }
    66% { transform: translateY(10px) rotate(-1deg) scale(0.98); }
}

/* Modern Tab System with Enhanced Styling */
.reviews-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.tab {
    padding: 1rem 2rem;
    background: var(--bg-white);
    border: 2px solid transparent;
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-medium);
    cursor: pointer;
    transition: var(--transition-bounce);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-medium);
    min-width: 140px;
    text-align: center;
}

.tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    transition: left 0.5s ease;
    z-index: -1;
}

.tab:hover {
    transform: translateY(-4px) scale(1.05);
    border-color: var(--primary-gold);
    box-shadow: var(--shadow-xl);
    color: var(--text-dark);
}

.tab:hover::before {
    left: 0;
}

.tab.active {
    background: var(--primary-gradient);
    color: var(--bg-white);
    border-color: var(--primary-gold);
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-xl);
}

/* Enhanced Container Styling */
.reviews-container,
.qa-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* Premium Header Design */
.reviews-header,
.qa-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-large);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.reviews-header::before,
.qa-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.reviews-header h2,
.qa-header h2 {
    font-size: 2.8rem;
    font-weight: 900;
    margin: 0;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

/* Premium Action Buttons */
.write-review,
.ask-question-btn,
.primary-btn {
    background: var(--primary-gradient);
    color: var(--bg-white);
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.write-review::before,
.ask-question-btn::before,
.primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.write-review:hover,
.ask-question-btn:hover,
.primary-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-xl);
}

.write-review:hover::before,
.ask-question-btn:hover::before,
.primary-btn:hover::before {
    left: 100%;
}

.write-review:active,
.ask-question-btn:active,
.primary-btn:active {
    transform: translateY(-1px) scale(1.02);
}

/* Enhanced Reviews Overview */
.reviews-overview {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-large);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
}

.reviews-overview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.rating-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.08) 0%, 
        rgba(255, 107, 53, 0.05) 50%,
        rgba(37, 99, 235, 0.03) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: var(--shadow-subtle);
}

.rating-score {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.rating-stars {
    font-size: 2rem;
    color: var(--primary-gold);
    margin-bottom: 1rem;
    display: flex;
    gap: 0.3rem;
    filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.3));
}

.rating-stars .fas {
    transition: var(--transition-smooth);
}

.rating-stars:hover .fas {
    transform: scale(1.1) rotate(15deg);
    color: var(--primary-orange);
}

.review-count {
    font-size: 1.1rem;
    color: var(--text-medium);
    font-weight: 600;
}

/* Enhanced Rating Breakdown */
.rating-breakdown {
    flex: 1;
    padding: 1rem 0;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
    padding: 0.8rem 0;
    transition: var(--transition-smooth);
}

.rating-bar:hover {
    transform: translateX(5px);
}

.rating-bar span:first-child {
    min-width: 90px;
    font-weight: 600;
    color: var(--text-medium);
    font-size: 1rem;
}

.progress-bar {
    flex: 1;
    height: 14px;
    background: var(--bg-lighter);
    border-radius: 7px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.progress {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 7px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: progressShimmer 2.5s ease-in-out infinite;
}

@keyframes progressShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.rating-bar span:last-child {
    min-width: 50px;
    text-align: right;
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1rem;
}

/* Enhanced Controls */
.reviews-controls,
.qa-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-box i {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.1rem;
    z-index: 1;
}

.search-input,
.qa-search {
    width: 100%;
    padding: 1.2rem 1.5rem 1.2rem 3.5rem;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: var(--transition-smooth);
    background: var(--bg-white);
    color: var(--text-dark);
}

.search-input:focus,
.qa-search:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
    transform: scale(1.02);
}

.controls-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.filter-group {
    display: flex;
    gap: 1rem;
}

.filter-btn,
.faq-category-filter {
    padding: 0.8rem 1.5rem;
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    font-weight: 600;
    color: var(--text-medium);
    cursor: pointer;
    transition: var(--transition-bounce);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.filter-btn:hover,
.faq-category-filter:hover {
    border-color: var(--primary-gold);
    color: var(--primary-gold);
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-medium);
}

.filter-btn.active,
.faq-category-filter.active {
    background: var(--primary-gradient);
    color: var(--bg-white);
    border-color: var(--primary-gold);
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-medium);
}

/* Enhanced Review Items */
.review-item,
.qa-item {
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.review-item::before,
.qa-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.review-item:hover,
.qa-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.review-item:hover::before,
.qa-item:hover::before {
    transform: scaleX(1);
}

/* Enhanced Modal System */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.modal-open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.8) translateY(50px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.modal.modal-open .modal-content {
    transform: scale(1) translateY(0);
}

/* Enhanced Modal Header */
.modal-header {
    padding: 2.5rem 3rem 1.5rem;
    border-bottom: 2px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.03) 0%, 
        rgba(255, 107, 53, 0.02) 100%);
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal-header h3 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.02em;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced Close Button */
.close-modal {
    width: 48px;
    height: 48px;
    border: none;
    background: var(--error-red);
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--bg-white);
    cursor: pointer;
    transition: var(--transition-bounce);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.close-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.close-modal:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: var(--shadow-large);
}

.close-modal:hover::before {
    opacity: 1;
}

.close-modal:active {
    transform: scale(0.95);
}

/* Enhanced Form Styling */
.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: var(--transition-smooth);
    background: var(--bg-white);
    color: var(--text-dark);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
    transform: scale(1.02);
}

/* Enhanced Star Rating */
.star-rating {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.05) 0%, 
        rgba(255, 107, 53, 0.03) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 2.5rem;
    color: #e5e7eb;
    cursor: pointer;
    transition: var(--transition-bounce);
    position: relative;
}

.star-rating label::before {
    content: '★';
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: var(--primary-gold);
    transform: scale(1.2) rotate(15deg);
    filter: drop-shadow(0 4px 8px rgba(212, 175, 55, 0.4));
}

/* Enhanced Photo Preview */
.photo-preview {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.photo-preview img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-light);
    transition: var(--transition-bounce);
    cursor: pointer;
}

.photo-preview img:hover {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--primary-gold);
    box-shadow: var(--shadow-large);
}

/* Enhanced Responsive Design */
@media (max-width: 1024px) {
    .reviews-overview {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .rating-summary {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .reviews-controls,
    .qa-controls {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .controls-right {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .reviews-section {
        padding: 3rem 0;
    }
    
    .reviews-container,
    .qa-container {
        padding: 0 1rem;
    }
    
    .reviews-header,
    .qa-header {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        padding: 2rem;
    }
    
    .reviews-header h2,
    .qa-header h2 {
        font-size: 2.2rem;
    }
    
    .reviews-tabs {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .tab {
        margin: 0;
        min-width: auto;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
        border-radius: var(--radius-lg);
    }
    
    .modal-header {
        padding: 2rem 2rem 1rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .modal-header h3 {
        font-size: 1.8rem;
    }
    
    .close-modal {
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .star-rating {
        padding: 1.5rem;
    }
    
    .star-rating label {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .reviews-section {
        padding: 2rem 0;
    }
    
    .reviews-header h2,
    .qa-header h2 {
        font-size: 1.8rem;
    }
    
    .rating-score {
        font-size: 3.5rem;
    }
    
    .modal-content {
        width: 98%;
        height: 100vh;
        border-radius: 0;
        max-height: none;
    }
    
    .modal-header h3 {
        font-size: 1.5rem;
    }
    
    .star-rating label {
        font-size: 1.8rem;
    }
    
    .review-item,
    .qa-item {
        padding: 1.5rem;
    }
}

/* Enhanced Loading Animation */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(212, 175, 55, 0);
    }
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem;
}

.spinner-logo {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 2rem;
    animation: pulseGlow 2s infinite;
}

.spinner-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: spin 2s linear infinite;
    border-radius: 50%;
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-gradient: linear-gradient(135deg, #000000 0%, #333333 100%);
        --text-dark: #000000;
        --border-light: rgba(0, 0, 0, 0.8);
    }
    
    .modal-content {
        border: 3px solid #000000;
    }
    
    .close-modal {
        background: #000000;
        border: 2px solid #000000;
    }
} 