/* members.css - 회원단체 페이지 전용 스타일 */

/* 메인 래퍼 */
.members-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

/* 컨테이너 */
.members-container {
    width: 85%;
    margin: 0 auto;
}

/* 연도 선택 버튼 영역 */
.year-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.year-btn {
    padding: 14px 40px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-sub1);
    background-color: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans KR', sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.year-btn:hover {
    border-color: var(--main-color);
    color: var(--main-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.year-btn.active {
    background: linear-gradient(135deg, var(--main-color) 0%, var(--sub-color) 100%);
    color: #fff;
    border-color: var(--main-color);
    box-shadow: 0 4px 15px rgba(255, 127, 42, 0.3);
}

/* 회원단체 콘텐츠 */
.members-content {
    position: relative;
}

/* 연도별 콘텐츠 */
.year-content {
    display: none;
    animation: fadeInUp 0.5s ease forwards;
}

.year-content.active {
    display: block;
}

/* 페이드인 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 회원단체 헤더 */
.members-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--main-color);
    position: relative;
}

.members-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 15px;
}

.total-count {
    display: inline-block;
    padding: 8px 24px;
    background: linear-gradient(135deg, rgba(255, 127, 42, 0.1) 0%, rgba(35, 142, 150, 0.1) 100%);
    color: var(--main-color);
    font-size: 18px;
    font-weight: 600;
    border-radius: 25px;
    border: 2px solid var(--main-color);
}

/* 지역 섹션 */
.region-section {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    animation: fadeIn 0.6s ease forwards;
}

.region-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 127, 42, 0.3);
}

/* 지역 헤더 */
.region-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.region-icon {
    font-size: 24px;
}

.region-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    flex: 1;
}

.region-count {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--main-color);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
}

/* 회원 리스트 */
.members-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px 20px;
}

.members-list li {
    position: relative;
    padding: 12px 15px;
    padding-left: 30px;
    background-color: #f8f9fa;
    border-radius: 8px;
    font-size: 15px;
    color: var(--text-sub1);
    line-height: 1.5;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.members-list li:hover {
    background-color: #fff;
    color: var(--text-main);
    transform: translateX(5px);
    border-color: var(--main-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.members-list li::before {
    content: '✓';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--main-color);
    font-weight: 700;
    font-size: 16px;
}

/* 페이드인 애니메이션 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 지역 섹션 순차 애니메이션 */
.region-section:nth-child(2) { animation-delay: 0.1s; }
.region-section:nth-child(3) { animation-delay: 0.15s; }
.region-section:nth-child(4) { animation-delay: 0.2s; }
.region-section:nth-child(5) { animation-delay: 0.25s; }
.region-section:nth-child(6) { animation-delay: 0.3s; }
.region-section:nth-child(7) { animation-delay: 0.35s; }
.region-section:nth-child(8) { animation-delay: 0.4s; }
.region-section:nth-child(9) { animation-delay: 0.45s; }
.region-section:nth-child(10) { animation-delay: 0.5s; }
.region-section:nth-child(11) { animation-delay: 0.55s; }

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .members-container {
        width: 90%;
    }

    .members-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px 15px;
    }

    .members-header h2 {
        font-size: 32px;
    }

    .region-header h3 {
        font-size: 22px;
    }

    .year-btn {
        padding: 12px 30px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .members-wrapper {
        padding: 30px 15px 50px;
    }

    .members-container {
        width: 95%;
    }

    .year-selector {
        gap: 10px;
    }

    .year-btn {
        padding: 10px 25px;
        font-size: 15px;
    }

    .members-header {
        margin-bottom: 35px;
    }

    .members-header h2 {
        font-size: 28px;
    }

    .total-count {
        font-size: 16px;
        padding: 6px 20px;
    }

    .region-section {
        padding: 25px 20px;
    }

    .region-header {
        flex-wrap: wrap;
    }

    .region-header h3 {
        font-size: 20px;
        flex: 0 0 calc(100% - 80px);
    }

    .region-count {
        font-size: 13px;
        padding: 4px 12px;
    }

    .members-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .members-list li {
        font-size: 14px;
        padding: 10px 12px 10px 28px;
    }
}

@media (max-width: 480px) {
    .year-btn {
        padding: 8px 20px;
        font-size: 14px;
    }

    .members-header h2 {
        font-size: 24px;
    }

    .total-count {
        font-size: 14px;
        padding: 5px 15px;
    }

    .region-section {
        padding: 20px 15px;
    }

    .region-header h3 {
        font-size: 18px;
    }

    .region-icon {
        font-size: 20px;
    }

    .members-list li {
        font-size: 13px;
        padding: 8px 10px 8px 25px;
    }

    .members-list li::before {
        font-size: 14px;
        left: 8px;
    }
}