/* Reviews page specific styles */

.reviews-section {
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 80vh;
}

.reviews-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.reviews-header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.reviews-header p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.game-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.game-filter label {
    font-weight: bold;
    color: #333;
}

.game-filter select {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 2px solid #ddd;
    font-size: 1rem;
    background: white;
    cursor: pointer;
}

.game-filter select:focus {
    border-color: #667eea;
    outline: none;
}

/* Add Review Form */
.add-review-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.add-review-section h2 {
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
}

.review-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #667eea;
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Rating Input */
.rating-input {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.rating-input input[type='radio'] {
    display: none;
}

.rating-input label {
    font-size: 2rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.3s ease;
    margin: 0;
}

.rating-input label:hover,
.rating-input input[type='radio']:checked + label,
.rating-input label:hover ~ label {
    color: #ffd700;
}

.submit-review-btn {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
}

.submit-review-btn:hover {
    background: linear-gradient(45deg, #218838, #1ea085);
    transform: translateY(-2px);
}

/* Reviews List */
.reviews-list {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.reviews-list h2 {
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
}

.review-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.review-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.review-meta h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.review-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.player-name {
    font-weight: bold;
    color: #667eea;
}

.game-name {
    background: #e9ecef;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.verified-badge {
    background: #28a745;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.star {
    font-size: 1.2rem;
    color: #ddd;
}

.star.filled {
    color: #ffd700;
}

.rating-text {
    font-weight: bold;
    color: #333;
    margin-left: 0.5rem;
}

.review-content {
    margin-bottom: 1rem;
}

.review-content p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.review-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.helpful-btn,
.reply-btn {
    background: none;
    border: 1px solid #ddd;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.helpful-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.reply-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* No Reviews */
.no-reviews {
    text-align: center;
    padding: 3rem;
    color: #666;
}

/* Statistics Section */
.reviews-stats {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.reviews-stats h2 {
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.stat-rating {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 1rem;
}

.stat-rating .star {
    font-size: 1.5rem;
}

.stat-rating .rating-number {
    font-weight: bold;
    color: #333;
    margin-left: 0.5rem;
}

.stat-card p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.play-game-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
}

.play-game-btn:hover {
    background: linear-gradient(45deg, #5a6fd8, #6a4190);
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .review-header {
        flex-direction: column;
        gap: 1rem;
    }

    .review-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .review-actions {
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .game-filter {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Animation for new reviews */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review-card.new-review {
    animation: slideInUp 0.5s ease-out;
}

/* Success message */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #c3e6cb;
    text-align: center;
}

/* Error message */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #f5c6cb;
    text-align: center;
}
