/*
 * Copyright 2025 四川大学火锅战队
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
.members-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: rgba(10, 10, 10, 0.7);
    border-radius: 10px;
}

.members-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid #333;
    padding-bottom: 1.5rem;
}

.members-header .main-title {
    margin: 0;
}

.filters {
    display: flex;
    gap: 1.5rem;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.filter-group label {
    font-size: 1.1rem;
    color: #ccc;
}

#season-select {
    background-color: #2a2a2a;
    color: #fff;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 0.6rem 1rem;
    font-size: 1rem;
}

#season-select:focus {
    outline: none;
    border-color: #58a6ff;
}

#members-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

#members-list hr {
    border: none;
    border-top: 1px solid #333;
    margin: 1rem 0;
}

.member-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.member-card {
    padding: 1rem;
    text-align: center;
    width: 18%; /* 100% / 5 columns = 20%, minus some gap */
    max-width: 180px;
}

.member-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid #444;
}

.member-photo.teacher-photo {
    background-color: #fff !important;
}

.member-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    margin: 0;
}

.member-major, .member-responsibility {
    color: #aaa;
    font-size: 0.8rem;
    margin-top: 0.4rem;
}

@media (max-width: 768px) {
    .members-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    .member-row {
        justify-content: center;
    }
    .member-card {
        width: 45%; /* Two columns on mobile */
    }
}