/* Reviews Page Styles */

/* Main Layout */
.reviews-main {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Hero Section */
.reviews-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 6rem 0 4rem;
    text-align: left;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #e5e7eb;
}

.reviews-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%239333ea" stop-opacity="0.03"/><stop offset="100%" stop-color="%23ff1493" stop-opacity="0.01"/></radialGradient></defs><circle cx="200" cy="200" r="300" fill="url(%23a)"/><circle cx="800" cy="800" r="400" fill="url(%23a)"/></svg>');
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0;
    padding: 0 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: #1a1a1a;
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #9333ea, #ff1493);
    border-radius: 2px;
    animation: slideInLeft 1s ease-out 0.6s both;
}

.gradient-text {
    background: linear-gradient(135deg, #9333ea 0%, #ff1493 50%, #9333ea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.gradient-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #9333ea 0%, #ff1493 50%, #9333ea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(2px);
    opacity: 0.3;
    z-index: -1;
}

.hero-description {
    font-size: 1.25rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 0;
    animation: fadeInUp 0.8s ease-out 0.6s both;
    position: relative;
}

.hero-description::before {
    content: '✨';
    position: absolute;
    left: -30px;
    top: 0;
    font-size: 1.5rem;
    opacity: 0.7;
    animation: pulse 2s ease-in-out infinite;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 60px;
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Reviews Section */
.reviews-section {
    padding: 4rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Loading and Error States */
.loading-state, .error-state {
    text-align: center;
    padding: 4rem 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #9333ea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

.error-state h3 {
    font-size: 1.5rem;
    color: #374151;
    margin-bottom: 1rem;
}

.error-state p {
    color: #6b7280;
    margin-bottom: 2rem;
}

/* Stats Section */
.reviews-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #9333ea;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Filters */
.reviews-filters {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 3rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
    color: #374151;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #9333ea;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

/* Reviews Grid */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.review-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #9333ea, #ff1493);
}

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

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

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

.reviewer-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid #f3f4f6;
}

.reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #9333ea, #ff1493);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
}

.reviewer-details {
    flex: 1;
}

.reviewer-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.review-rating {
    display: flex;
    gap: 2px;
    color: #fbbf24;
    font-size: 1rem;
}

.review-date {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.verified-badge {
    background: #10b981;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.review-actions {
    display: flex;
    gap: 0.5rem;
}

.helpful-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    color: #6b7280;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.helpful-btn:hover {
    background: #e2e8f0;
    color: #374151;
    border-color: #cbd5e1;
}

.helpful-btn i {
    font-size: 0.8rem;
}

.review-content {
    margin-top: 1rem;
}

.event-info {
    margin-bottom: 1rem;
}

.event-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.event-title a {
    color: #9333ea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.event-title a:hover {
    color: #7c3aed;
    text-decoration: underline;
}

.review-text {
    margin-top: 1rem;
}

.review-text p {
    color: #374151;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* No Reviews State */
.no-reviews-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
}

.no-reviews-icon {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 1.5rem;
}

.no-reviews-found h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
}

.no-reviews-found p {
    font-size: 1rem;
    line-height: 1.5;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #9333ea, #ff1493);
    color: white;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(147, 51, 234, 0.4);
}

.btn-outline {
    background: white;
    color: #9333ea;
    border: 2px solid #9333ea;
}

.btn-outline:hover {
    background: #9333ea;
    color: white;
    transform: translateY(-2px);
}

/* Hover Effects */
.hero-title:hover .gradient-text {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

.hero-description:hover {
    color: #4b5563;
    transition: color 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .reviews-hero {
        padding: 4rem 0 3rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-title::after {
        width: 40px;
        height: 3px;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-description::before {
        left: -25px;
        font-size: 1.2rem;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .reviews-filters {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .review-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .reviewer-info {
        width: 100%;
    }
    
    .review-actions {
        align-self: flex-start;
    }
    
    .review-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .reviews-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .reviews-hero {
        padding: 3rem 0 2rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-title::after {
        width: 30px;
        height: 2px;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-description::before {
        left: -20px;
        font-size: 1rem;
    }
    
    .reviews-stats {
        grid-template-columns: 1fr;
    }
    
    .review-card {
        padding: 1.5rem;
    }
    
    .reviewer-avatar {
        width: 48px;
        height: 48px;
    }
    
    .avatar-placeholder {
        font-size: 1.2rem;
    }
}
