/* Reviews Page Specific Styles */

.reviews-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Game Filter */
.game-filter {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

.game-filter label {
    font-weight: 600;
    color: #374151;
    margin-right: 1rem;
}

.game-filter select {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    font-size: 1rem;
    color: #374151;
    cursor: pointer;
}

.game-filter select:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* Add Review Section */
.add-review-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

.add-review-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.review-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    color: #374151;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Rating Input */
.rating-input {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.rating-input input[type="radio"] {
    display: none;
}

.rating-input label {
    font-size: 2rem;
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.2s ease;
    margin: 0;
}

.rating-input input[type="radio"]:checked ~ label,
.rating-input label:hover {
    color: #fbbf24;
}

.rating-input input[type="radio"]:checked ~ label ~ label {
    color: #d1d5db;
}

.submit-btn {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease;
    justify-self: start;
}

.submit-btn:hover {
    transform: scale(1.05);
}

/* Reviews List */
.reviews-list {
    display: grid;
    gap: 1.5rem;
}

.review-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.review-player {
    font-weight: 700;
    color: #1f2937;
    font-size: 1.1rem;
}

.review-game {
    background: #8b5cf6;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.stars {
    color: #fbbf24;
    font-size: 1.2rem;
}

.rating-number {
    font-weight: 600;
    color: #6b7280;
}

.review-date {
    font-size: 0.875rem;
    color: #9ca3af;
}

.review-text {
    color: #374151;
    line-height: 1.6;
    font-size: 1rem;
}

/* No Reviews Message */
.no-reviews {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
    font-size: 1.1rem;
}

.no-reviews h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #4b5563;
}

/* Active Navigation */
.nav-menu a.active {
    color: #8b5cf6;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .reviews-section {
        padding: 1rem;
    }
    
    .add-review-section {
        padding: 1.5rem;
    }
    
    .review-form {
        gap: 1rem;
    }
    
    .rating-input label {
        font-size: 1.5rem;
    }
    
    .review-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .game-filter {
        padding: 0.75rem;
    }
    
    .game-filter label {
        display: block;
        margin-bottom: 0.5rem;
        margin-right: 0;
    }
    
    .reviews-list {
        gap: 1rem;
    }
    
    .section-title {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
    }
    
    .section-subtitle {
        font-size: clamp(1rem, 2vw, 1.1rem);
    }
}

@media (max-width: 480px) {
    .reviews-section {
        padding: 0.5rem;
    }
    
    .add-review-section {
        padding: 1rem;
    }
    
    .rating-input {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .rating-input label {
        font-size: 1.2rem;
    }
    
    .submit-btn {
        width: 100%;
    }
    
    .review-card {
        padding: 1rem;
    }
    
    .game-filter {
        padding: 0.5rem;
    }
    
    .game-filter select {
        width: 100%;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .section-title {
        font-size: clamp(1.5rem, 3.5vw, 2rem);
        line-height: 1.2;
    }
    
    .section-subtitle {
        font-size: clamp(0.9rem, 2vw, 1rem);
        line-height: 1.4;
    }
    
    .review-player,
    .review-game {
        font-size: 0.9rem;
    }
    
    .review-text {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

@media (max-width: 320px) {
    .rating-input label {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .section-subtitle {
        font-size: 0.85rem;
    }
    
    .review-card {
        padding: 0.75rem;
    }
    
    .add-review-section {
        padding: 0.75rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 14px;
        padding: 0.5rem;
    }
}

/* Landscape orientation for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .reviews-section {
        padding: 1rem;
    }
    
    .add-review-section {
        padding: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
}
