@charset "utf-8";

/*
 * ============================================================
 *  member_responsive.css — 회원 반응형 (신규 작성)
 *  원본 참조: member.css (절대 수정 금지)
 *
 *  변경 내용:
 *   - #membership_visual h2 고정 1000px → 100%
 *   - #member_menu_bar li 고정 162px → 유동
 *   - #member_login / #member_find_form — position:absolute → 모바일 flow
 *   - #member_myreg span.subject2/3 고정 px → auto
 *   - 버튼 이미지형 → 텍스트 폴백 (배경 유지, 터치 영역 확보)
 * ============================================================
 */


/* ============================================================
   비주얼 헤더 — 고정 1000px 해제
   ============================================================ */
#membership_visual > h2 {
    width: 100%;
    max-width: 100%;
    padding: 0 12px;
    box-sizing: border-box;
    font-size: 18px;
    line-height: 60px;
}


/* ============================================================
   기존 메뉴바 숨김 (모던 탭으로 대체)
   ============================================================ */
#member_menu_bar { display: none !important; }

/* ============================================================
   회원 모던 필(pill) 탭
   ============================================================ */
.member-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 0;
    margin-bottom: 16px;
    justify-content: center;
}
.member-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    text-decoration: none;
    background: #f5f5f5;
    border: 1px solid #e8e8e8;
    border-radius: 24px;
    transition: all .25s cubic-bezier(.4,0,.2,1);
    white-space: nowrap;
}
.member-tab:hover {
    color: #333;
    background: #eef5fd;
    border-color: #c8ddf5;
}
.member-tab.active {
    color: #fff;
    background: linear-gradient(135deg, #42a5f5 0%, #1976d2 100%);
    border-color: transparent;
    box-shadow: 0 3px 10px rgba(25,118,210,.25);
    font-weight: 700;
}

/* 모바일 탭 */
@media (max-width: 767px) {
    .member-tabs { gap: 6px; }
    .member-tab { padding: 7px 14px; font-size: 13px; }
}


/* ============================================================
   회원 인증 카드 (.mauth) — 로그인/아이디찾기 공통
   ============================================================ */
.mauth {
    display: flex;
    justify-content: center;
    padding: 20px 16px 40px;
}
.mauth-card {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04), 0 8px 32px rgba(0,0,0,.06);
    padding: 40px 32px 32px;
    text-align: center;
}

/* 아이콘 */
.mauth-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f4ff 100%);
    margin-bottom: 20px;
}

/* 타이틀 */
.mauth-title {
    font-size: 24px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 6px;
    letter-spacing: -0.5px;
}
.mauth-desc {
    font-size: 14px;
    color: #999;
    margin: 0 0 28px;
}

/* 폼 필드 */
.mauth-fields {
    border: none;
    padding: 0;
    margin: 0;
    text-align: left;
}
.mauth-field { margin-bottom: 18px; }
.mauth-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    line-height: 1;
}

/* 인풋 + 아이콘 래퍼 */
.mauth-input-wrap {
    position: relative;
}
.mauth-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #bbb;
    pointer-events: none;
    transition: color .15s;
}
.mauth-input {
    width: 100%;
    height: 50px;
    padding: 0 14px 0 44px;
    font-size: 15px;
    line-height: 50px;
    border: 1.5px solid #e0e4e8;
    border-radius: 10px;
    background: #fafbfc;
    color: #333;
    box-sizing: border-box;
    transition: all .2s;
    font-family: inherit;
}
.mauth-input:focus {
    outline: none;
    border-color: #42a5f5;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(66,165,245,.1);
}
.mauth-input:focus + .mauth-input-icon,
.mauth-input-wrap:focus-within .mauth-input-icon {
    color: #42a5f5;
}
.mauth-input::placeholder { color: #c0c4cc; }

/* 제출 버튼 */
.mauth-submit {
    display: block;
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #42a5f5 0%, #1976d2 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all .2s;
    margin-top: 24px;
    font-family: inherit;
    letter-spacing: 0.5px;
}
.mauth-submit:hover {
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    box-shadow: 0 4px 16px rgba(25,118,210,.3);
    transform: translateY(-1px);
}
.mauth-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(25,118,210,.2);
}

/* 하단 링크 */
.mauth-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}
.mauth-link {
    font-size: 13px;
    color: #888;
    text-decoration: none;
    transition: color .15s;
}
.mauth-link:hover { color: #1976d2; }
.mauth-link-sep {
    width: 1px;
    height: 12px;
    background: #ddd;
}

/* 액션 버튼 그룹 (아이디찾기 등) */
.mauth-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 24px;
}
.mauth-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all .2s;
    font-family: inherit;
}
.mauth-action-btn svg { flex-shrink: 0; }

.mauth-action-btn--primary {
    color: #fff;
    background: linear-gradient(135deg, #42a5f5 0%, #1976d2 100%);
}
.mauth-action-btn--primary:hover {
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    box-shadow: 0 4px 16px rgba(25,118,210,.3);
    transform: translateY(-1px);
}
.mauth-action-btn--outline {
    color: #555;
    background: #fff;
    border: 1.5px solid #dde1e6;
}
.mauth-action-btn--outline:hover {
    background: #f5f8ff;
    border-color: #90caf9;
    color: #1976d2;
}

/* --- 모바일 --- */
@media (max-width: 767px) {
    .mauth { padding: 16px 12px 32px; }
    .mauth-card { padding: 32px 20px 24px; border-radius: 12px; }
    .mauth-icon { width: 64px; height: 64px; margin-bottom: 16px; }
    .mauth-icon svg { width: 36px; height: 36px; }
    .mauth-title { font-size: 20px; }
    .mauth-desc { font-size: 13px; margin-bottom: 20px; }
    .mauth-input { height: 46px; padding: 0 12px 0 40px; font-size: 14px; line-height: 46px; }
    .mauth-submit { padding: 13px; font-size: 15px; }
    .mauth-action-btn { padding: 12px 14px; font-size: 13px; }
    .mauth-links { gap: 12px; }
    .mauth-link { font-size: 12px; }
}

/* --- 태블릿 --- */
@media (min-width: 768px) and (max-width: 1024px) {
    .mauth-card { max-width: 440px; padding: 36px 28px 28px; }
    .mauth-actions { flex-direction: row; flex-wrap: wrap; }
    .mauth-action-btn { flex: 1; min-width: 140px; }
}

/* --- PC --- */
@media (min-width: 1025px) {
    .mauth { padding: 40px 20px 60px; }
    .mauth-card {
        max-width: 480px;
        box-shadow: 0 4px 12px rgba(0,0,0,.04), 0 12px 40px rgba(0,0,0,.06);
    }
    .mauth-actions { flex-direction: row; flex-wrap: wrap; }
    .mauth-action-btn { flex: 1; min-width: 140px; }
}

/* #content_area 내부 회원 영역 — PC 1000px 가운데 정렬 */
#member_area {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}
#member_content_area {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}


/* ============================================================
   로그인 폼 — 구 member.css 오버라이드 (하위호환)
   ============================================================ */
#member_login {
    position: relative;
    height: auto !important;
    min-height: 0;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    display: block;
    gap: 10px;
    align-items: center;
}

/* 입력 필드 — absolute 해제 */
#member_login input {
    position: static;
    left: auto;
    top: auto;
    width: 100%;
    max-width: 320px;
    padding-left: 60px;
    height: 40px;
    line-height: 40px;
    font-size: 14px;
    box-sizing: border-box;
}

/* 버튼 */
#member_login button {
    position: static;
    left: auto;
    top: auto;
    width: 100%;
    max-width: 320px;
    height: 40px;
    margin-top: 4px;
}


/* ============================================================
   아이디/비밀번호 찾기 폼
   ============================================================ */
#member_find_form {
    position: relative;
    height: auto;
    min-height: 0;
    padding: 24px 16px;
    background: #F9F9F9;
    border: 1px solid #DADADA;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

#member_find_form input {
    position: static;
    left: auto;
    top: auto;
    width: 100%;
    max-width: 320px;
    padding-left: 60px;
    height: 40px;
    line-height: 40px;
    font-size: 14px;
    box-sizing: border-box;
}

#member_find_form #but_001,
#member_find_form #but_002,
#member_find_form #but_003 {
    position: static;
    left: auto;
    top: auto;
    width: 100%;
    max-width: 320px;
    height: 40px;
}


/* ============================================================
   가입 폼 — 버튼 float 정렬 모바일 대응
   ============================================================ */
#member_join_form { }

/* float:left 버튼들을 모바일에서 block으로 */
#member_join_form input.css_id,
#member_join_form input.css_nick,
#member_join_form input.css_email,
#member_join_form input.css_auth_code_email,
#member_join_form input.css_tel,
#member_join_form input.css_auth_code_mob {
    float: none;
    display: block;
}

#member_join_form button.css_id_check,
#member_join_form button.css_nick_check,
#member_join_form button.css_email_check,
#member_join_form button.css_mob_check {
    float: none;
    margin-left: 0;
    margin-top: 4px;
    width: 100px;
    height: 36px;
}

#member_join_form button.css_email_auth,
#member_join_form button.css_email_auth_check,
#member_join_form button.css_mob_auth,
#member_join_form button.css_mob_auth_check {
    float: none;
    margin-left: 0;
    margin-top: 4px;
    width: 160px;
    height: 36px;
}

#member_join_form div.bottom_button_area { margin-top: 20px; }


/* ============================================================
   정보 수정 폼
   ============================================================ */
#member_mod_form input.css_pwd_new {
    float: none;
    width: 100%;
    max-width: 280px;
    margin-bottom: 8px;
}

#member_mod_form input.css_pwd_new_re {
    float: none;
    margin-left: 0;
    width: 100%;
    max-width: 280px;
}

#member_mod_form input.css_email {
    float: none;
}

#member_mod_form input.css_email_auth {
    float: none;
    margin-left: 0;
    margin-top: 4px;
    display: block;
}

#member_mod_form input.css_tel { float: none; width: 100%; max-width: 180px; }
#member_mod_form input.css_auth_code_mob { float: none; }

#member_mod_form button.css_email_check,
#member_mod_form button.css_mob_check {
    float: none;
    margin-left: 0;
    margin-top: 4px;
}

#member_mod_form button.css_email_auth_check,
#member_mod_form button.css_mob_auth,
#member_mod_form button.css_mob_auth_check {
    float: none;
    margin-left: 0;
    margin-top: 4px;
}

#member_mod_form div.bottom_button_area { margin-top: 20px; }


/* ============================================================
   MyPage — 고정 px 해제
   ============================================================ */
#member_myreg span.subject2 {
    display: inline;
    width: auto;
}

#member_myreg span.subject3 {
    display: inline;
    width: auto;
}

#member_myreg span.date    { float: none; display: block; font-size: 11px; margin-top: 4px; }
#member_myreg span.state_1,
#member_myreg span.state_2,
#member_myreg span.state_3,
#member_myreg span.state_4 { float: none; display: inline-block; margin-top: 4px; }

#member_myreg span.date2 { width: auto; }
#member_myreg span.hit   { width: auto; }
#member_myreg span.reply1 { width: auto; }
#member_myreg span.reply2 { width: auto; }

#member_myreg span.myreg_group_title { font-size: 18px; }

#member_myreg ul.myreg_group_list li { padding: 12px 8px; font-size: 13px; }


/* ============================================================
   이용약관·개인정보취급방침
   ============================================================ */
#member_clause_n_private {
    font-size: 13px;
    line-height: 22px;
}


/* ============================================================
   태블릿 (768px ~)
   ============================================================ */
@media (min-width: 768px) {

    /* h2 너비 복원 (단 max-width 1000px) */
    #membership_visual > h2 { max-width: 1000px; margin: 0 auto; font-size: inherit; }

    /* 메뉴 바 원본 근사 복원 */
    #member_menu_bar { display: block; height: 41px; margin-bottom: 50px; }
    #member_menu_bar li { float: left; width: 162px; height: 39px; line-height: 39px; margin-right: 2px; }
    #member_menu_bar li span { font-size: 14px; }

    /* 로그인 폼 flex 해제 → 원본 absolute 복원 */
    #member_login {
        display: block;
        height: 158px;
        padding: 0;
        flex-direction: unset;
        gap: unset;
        align-items: unset;
    }

    #member_login input {
        position: absolute;
        left: 294px;
        max-width: none;
        width: 218px;
        height: 34px;
        line-height: 34px;
        padding-left: 80px;
        font-size: 14px;
    }

    #member_login input.css_id  { top: 41px; }
    #member_login input.css_pwd { top: 81px; }

    #member_login button {
        position: absolute;
        left: 604px;
        top: 41px;
        max-width: none;
        width: auto;
        height: auto;
        margin-top: 0;
    }

    /* 아이디/비밀번호 찾기 원본 복원 */
    #member_find_form {
        display: block;
        height: 158px;
        padding: 0;
        flex-direction: unset;
        gap: unset;
        align-items: unset;
    }

    #member_find_form input {
        position: absolute;
        left: 49px;
        max-width: none;
        width: 228px;
        height: 34px;
        line-height: 34px;
        padding-left: 70px;
        font-size: 14px;
    }

    #member_find_form input.css_name  { top: 41px; }
    #member_find_form input.css_email { top: 81px; }

    #member_find_form #but_001 { position: absolute; left: 359px; top: 41px; width: auto; height: auto; max-width: none; }
    #member_find_form #but_002 { position: absolute; left: 559px; top: 41px; width: auto; height: auto; max-width: none; }
    #member_find_form #but_003 { position: absolute; left: 759px; top: 41px; width: auto; height: auto; max-width: none; }

    /* 가입 폼 float 복원 */
    #member_join_form input.css_id,
    #member_join_form input.css_nick,
    #member_join_form input.css_email,
    #member_join_form input.css_auth_code_email,
    #member_join_form input.css_tel,
    #member_join_form input.css_auth_code_mob { float: left; display: inline-block; }

    #member_join_form button.css_id_check,
    #member_join_form button.css_nick_check,
    #member_join_form button.css_email_check,
    #member_join_form button.css_mob_check { float: left; margin-left: 10px; margin-top: 0; }

    #member_join_form button.css_email_auth,
    #member_join_form button.css_email_auth_check,
    #member_join_form button.css_mob_auth,
    #member_join_form button.css_mob_auth_check { float: left; margin-left: 10px; margin-top: 0; }

    #member_join_form div.bottom_button_area { margin-top: 32px; }

    /* 정보 수정 float 복원 */
    #member_mod_form input.css_pwd_new     { float: left; width: 248px; margin-bottom: 0; }
    #member_mod_form input.css_pwd_new_re  { float: left; margin-left: 10px; width: 248px; }
    #member_mod_form input.css_email       { float: left; }
    #member_mod_form input.css_email_auth  { float: left; margin-left: 10px; display: inline-block; margin-top: 0; }
    #member_mod_form input.css_tel         { float: left; width: 148px; max-width: none; }
    #member_mod_form input.css_auth_code_mob { float: left; }
    #member_mod_form button.css_email_check  { float: left; margin-left: 10px; margin-top: 0; }
    #member_mod_form button.css_email_auth_check,
    #member_mod_form button.css_mob_auth,
    #member_mod_form button.css_mob_auth_check { float: left; margin-left: 10px; margin-top: 0; }
    #member_mod_form button.css_mob_check  { float: left; margin-left: 10px; margin-top: 0; }
    #member_mod_form div.bottom_button_area { margin-top: 32px; }

    /* MyPage 복원 */
    #member_myreg span.subject2 { display: inline-block; width: 720px; }
    #member_myreg span.subject3 { display: inline-block; width: 820px; }
    #member_myreg span.date     { float: right; display: inline-block; font-size: 12px; margin-top: 0; }
    #member_myreg span.state_1,
    #member_myreg span.state_2,
    #member_myreg span.state_3,
    #member_myreg span.state_4  { float: right; display: inline-block; margin-top: 0; }
    #member_myreg span.date2    { width: 90px; }
    #member_myreg span.hit      { width: 50px; }
    #member_myreg span.reply1   { width: 60px; }
    #member_myreg span.reply2   { width: 60px; }
    #member_myreg span.myreg_group_title { font-size: 24px; }
    #member_myreg ul.myreg_group_list li { padding: 17px 10px; font-size: 14px; }

    #member_clause_n_private { font-size: 14px; line-height: 24px; }
}


/* ============================================================
   약관/개인정보 콘텐츠 (.mpolicy)
   ============================================================ */
.mpolicy-content {
    text-align: left;
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    padding: 24px 0 0;
    border-top: 1px solid #f0f0f0;
    margin-top: 16px;
    word-break: keep-all;
}


/* ============================================================
   내가 작성한 글 (.mreg)
   ============================================================ */
.mreg { max-width: 1000px; margin: 0 auto; }

/* 섹션 */
.mreg-section {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}

/* 섹션 헤더 */
.mreg-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: #f8f9fb;
}
.mreg-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #222;
    margin: 0;
}
.mreg-section-title svg { color: #42a5f5; flex-shrink: 0; }
.mreg-more {
    font-size: 13px;
    color: #999;
    text-decoration: none;
    font-weight: 600;
    transition: color .15s;
}
.mreg-more:hover { color: #1976d2; }

/* 건수 */
.mreg-count {
    padding: 10px 20px;
    font-size: 12px;
    color: #aaa;
    margin: 0;
    border-bottom: 1px solid #f5f5f5;
}
.mreg-count strong { color: #1976d2; }

/* 아이템 리스트 */
.mreg-list { }

/* 개별 아이템 */
.mreg-item {
    display: block;
    padding: 14px 20px;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    color: inherit;
    transition: background .12s;
}
.mreg-item:last-child { border-bottom: none; }
.mreg-item:hover { background: #f8faff; }

/* 메뉴 배지 */
.mreg-item-menu {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #42a5f5;
    background: #e3f2fd;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
}

/* 제목 */
.mreg-item-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 메타 정보 (답글/댓글/날짜/조회) */
.mreg-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
}
.mreg-meta {
    font-size: 12px;
    color: #999;
}
.mreg-meta strong { color: #666; font-weight: 600; }

/* 상태 배지 */
.mreg-state {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
}
.mreg-state--1 { background: #e3f2fd; color: #1565c0; }
.mreg-state--2 { background: #fff3e0; color: #e65100; }
.mreg-state--3 { background: #f3e5f5; color: #6a1b9a; }
.mreg-state--4 { background: #e8f5e9; color: #2e7d32; }

/* 관리자 메시지 배지 */
.mreg-badge {
    display: inline-block;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 4px;
    vertical-align: middle;
}
.mreg-badge--reply { background: #fff3e0; color: #e65100; }

/* 구 member.css 오버라이드 */
#member_myreg { background: none !important; padding: 0 !important; }

/* 모바일 */
@media (max-width: 767px) {
    .mreg-section { border-radius: 10px; margin-bottom: 14px; }
    .mreg-section-head { padding: 14px 16px; }
    .mreg-item { padding: 12px 16px; }
    .mreg-item-title { font-size: 13px; }
    .mreg-count { padding: 8px 16px; }
    .mpolicy-content { font-size: 13px; }
}


/* ============================================================
   데스크탑 (1025px ~)
   ============================================================ */
@media (min-width: 1025px) {

    #member_area { margin-top: 50px; }
    #member_menu_bar { margin-bottom: 50px; }
}
