/* Reviews Page Styles */

.reviews-container {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

.reviews-header {
    text-align: center;
    margin-bottom: 3rem;
}

.reviews-header h1 {
    color: #ffd700;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.reviews-header p {
    font-size: 1.2rem;
    color: #e0e0e0;
}

/* Review Stats */
.review-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: #ffd700;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #e0e0e0;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Review Filters */
.review-filters {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.review-filters h3 {
    color: #ffd700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 25px;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #ffd700;
    color: #000;
    border-color: #ffd700;
}

.rating-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.rating-filter label {
    color: #e0e0e0;
    font-weight: 500;
}

.rating-filter select {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #ffd700;
    border-radius: 8px;
    color: #ffffff;
    padding: 0.5rem 1rem;
    font-size: 1rem;
}

.rating-filter select:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Reviews Grid */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.review-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.review-card:hover {
    transform: translateY(-5px);
    border-color: #ffd700;
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.2);
}

.review-card.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.reviewer-name {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.review-date {
    color: #a0a0a0;
    font-size: 0.9rem;
}

.review-rating {
    display: flex;
    align-items: center;
}

.stars {
    color: #ffd700;
    font-size: 1.2rem;
}

.review-content h4 {
    color: #ffd700;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.review-content p {
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.review-game {
    display: flex;
    justify-content: flex-end;
}

.game-tag {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* Write Review Section */
.write-review-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 16px;
    padding: 3rem;
    margin-top: 4rem;
}

.write-review-section h3 {
    color: #ffd700;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.write-review-section p {
    text-align: center;
    color: #e0e0e0;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.review-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    color: #ffd700;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    color: #ffffff;
    padding: 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.rating-input {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.rating-input input[type="radio"] {
    display: none;
}

.rating-input label {
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    transition: color 0.2s ease;
    margin: 0;
}

.rating-input label:hover,
.rating-input input[type="radio"]:checked ~ label,
.rating-input label:hover ~ label {
    color: #ffd700;
}

.rating-input input[type="radio"]:checked ~ label {
    color: #ffd700;
}

/* Review Form Submission */
.review-form button {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Success Message */
.success-message {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #10b981;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
    color: #10b981;
    text-align: center;
    display: none;
}

.success-message.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .reviews-header h1 {
        font-size: 2rem;
    }
    
    .review-stats {
        grid-template-columns: 1fr;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .rating-filter {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .review-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .reviewer-info {
        width: 100%;
    }
    
    .write-review-section {
        padding: 2rem 1rem;
    }
    
    .review-form {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .reviews-container {
        padding: 1rem 0;
    }
    
    .review-card {
        padding: 1.5rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .write-review-section {
        padding: 1.5rem 1rem;
    }
    
    .write-review-section h3 {
        font-size: 1.5rem;
    }
}

/* Animation for new reviews */
.review-card.new-review {
    animation: slideInUp 0.5s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state */
.reviews-loading {
    text-align: center;
    padding: 3rem;
    color: #e0e0e0;
}

.reviews-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ffd700;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
