/* 기본 스타일 초기화 및 폰트 설정 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: black;
}

ul,
li,
ol,
a {
    list-style: none;
    text-decoration: none;
    color: black;
}

:root {
    font-size: 16px;
}

body {
    overflow-x: hidden;
    /*background-color: rgb(247, 247, 247);*/
    /*background-color:#FCF9F4;*/

}

#wrapper {
    width: 100%;
}

#mainwrap {
    display: flex;
    padding: 20px;
    gap: 20px;
}

/* 헤더 ========================================================================================= */

#header {
    /*background-color: rgb(241, 241, 241);*/
    /*background-color: #FCF9F4;*/
    width: 100%;
    /*border-bottom: 1px solid;*/
    background-color: #FFF;
    font-family: var(--body-font-family, sans-serif);
    min-width: 600px;
}

#header .top-header {
    width: 88%;
    min-width: 450px;
    height: 110px;
    display: flex;
    margin:0 auto;
}

.top-header .logoarea {
    /*border:1px solid red;*/
    /*padding-left: 10px;*/
    width:10%;
    min-width:180px;
    height: 100%;
    /*background-color:#FCF9F4;*/
    display: flex;
    align-items: center;

    min-width:180px;
}

.logo-a {
    margin: 0 auto;
    width: 100%;
    height: 100%;
    min-width:180px;
}

.logo {
    width: 100%;
    height: 100%;
}

.top-header .navarea {
    width: 90%;
    height: 100%;
    /* background-color: bisque;*/
    position: relative;
}

.navarea .nav {
    width:33%;
    min-width: 500px;
    height: 100%;
    /* background-color: aquamarine; */
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 20px;
    position: absolute;
    right: 50px;
}

.nav-item {
    font-size: 20px;
    transition: color 0.3s;
    font-weight: bold;
    background-color:#FFF;
    color:#24493e;
}

.nav-item:hover {
    background-color:#FFF;
    color: #3EE9B9;
}

/* --- 탭 바 (헤더 하단 일단 추가함 홍섭님이랑 얘기후 없애도됌) --- */
.tab-bar {
    display: flex;
    height: 40px;
    border-top: 1px solid #e6e6e6;
    /*border-bottom: 1px solid #e6e6e6;*/
    background-color: #fff;
    flex-shrink: 0;
    overflow-x: auto;
    white-space: nowrap;
}

.tab {
    padding: 0 15px;
    cursor: pointer;
    border-right: 1px solid #dcdcdc;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
    transition: background-color 0.2s;
    background-color: #eee;
    user-select: none;
}

.tab.active {
    background-color: #e6e6e6;
    color: #333;
    font-weight: 500;
}

.tab .close-btn {
    margin-left: 10px;
    font-size: 12px;
    color: #999;
    cursor: pointer;
    padding: 2px;
}

 .tab .close-btn:hover {
     color: #333;
 }


/* footer ============================================================================================= */
footer {
    width: 100%;
}

.footnavwrap {
    /* background-color: black; */
    width: 100%;
    min-width: 450px;
    height: 50px;
    border-bottom: 1px solid;
    border-top: 1px solid;
    background-color: #f7f7f7;
}

.footnav {
    width: 100%;
    height: 100%;
     background-color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    /* font-weight: bold; */
    margin: 0 auto;
    margin: 0 20px;
}


.footnav>div {
    width: 1px;
    height: 15px;
    border-left: 1px solid;
}

.footnav>li {
    font-size: 0.9rem;
    color: #c1c1c1;
    text-align: center;
}

.footnav>li>a {
    color: black;
    text-decoration: none;
}

.footnav>li>a:hover {
    color: #3EE9B9;
    background-color: #f7f7f7;
}

/* 드롭다운 스타일 */
.dropdown {
    position: relative;
}

.dropdown>.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid rgb(227, 225, 225);
    border-radius: 5px;
    padding: 5px 0;
    list-style: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 10;
    /* 드롭다운이 다른 요소 위에 보이도록 z-index 추가 */
}

.dropdown>.dropdown-menu>li {
    height: 30px;
    padding: 5px 20px;
}

.dropdown>.dropdown-menu>li>a {
    text-decoration: none;
    color: black;
    white-space: nowrap;
}

.dropdown>.dropdown-menu>li>a:hover {
    color: #3EE9B9;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.footnav>li:nth-child(9) {
    font-weight: 700;
}

.footnav>li:nth-child(11) {
    font-weight: 700;
}

.footnav>li:nth-child(13) {
    font-weight: 700;
}

.footmainwrap {
    width: 100%;
    height: auto;
    /* background-color: green; */
}

.footmain {
    margin: 0 auto;
    /* background-color: yellow; */
    width: 80%;
    height: auto;
    display: flex;
    gap: 50px;
}

.footsection {
    width: 300px;
    height: 220px;
    padding-top: 60px;
    /* border: 1px solid; */
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    /* align-items: start; */

    /* white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; */
}

.footsection>h2 {
    font-size: 25px;
    width: 100%;
    /* background-color: red; */
    text-align: center;
}

.footsection>p {
    text-align: center;
    width: 100%;
    /* background-color: blue; */
    color: rgb(88, 88, 88);
    font-size: 15px;

}


.footbar {
    width: 100%;
    height: auto;
    margin-top: 40px;
    /* background-color: blue; */
    color: rgb(88, 88, 88);
    ;
}

.footbarwrap {
    width: 80%;
    height: 100%;
    /* background-color: #3EE9B9; */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 12px;
}

@media (max-width:1080px) {
    .footnavwrap {
        height: 80px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .footnav {
        height: 70%;
        white-space: nowrap;
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        /* padding:20px 0; */
        row-gap: 10px;
    }

    .footmain {
        display: grid;
        grid-template-columns: repeat(2, 1fr);

    }

}

@media (max-width:960px) {
    .footnav {
        grid-template-columns: repeat(10, 1fr);
    }
}

@media (max-width:824px) {
    .footnav {
        grid-template-columns: repeat(8, 1fr);
    }
}

@media (max-width:722px) {
    .footnavwrap {
        height: 150px;
        margin-bottom: 50px;
    }

    .footnav {
        grid-template-columns: repeat(6, 1fr);
        row-gap: 3px;
    }

    .footmain {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 0;
    }

    .footsection {
        padding: 20px 0;
        height: auto;
        margin: 0 auto;
    }

}

@media (max-width:515px) {
    .footnav {
        grid-template-columns: repeat(4, 1fr);
        row-gap: 10px;
    }
}


/* aside + mainwrapper 공통 css */

/* aside_L css */
#aside_L {
    width: 14%;
    min-width: 242px;
    height: 1200px;
    background: #fff;
    border: 2px solid #e6e6e6;
    border-radius: 16px;
}

.side_nav {
    width: 100%;
    height: 100%;
    /* border: 1px solid; */
    /* height: 330px; */
    position: relative;
}

.slt_wrap {
    border-bottom: 2px solid #e6e6e6;
    width: 100%;
    height: 40px;

    display: flex;
    justify-content: center;
    align-items: center;
}

#followscr>ul {
    width: 90%;
    height: 216px;
    margin: 30px auto 10px;
    padding: 10px 0;
    border: 2px solid #e6e6e6;
    /* background-color: #f6f6f6; */
    border-radius: 16px;

    display: flex;
    flex-direction: column;
    gap: 6px;
}

.side_item {
    border: 1px solid #bbc4d5;
    border-radius: 10px;
    background-color: #f1f1f1;
    width: 90%;
    height: 40px;
    margin: 0 auto;
    display: flex;
    justify-content: start;
    align-items: center;
    padding-left: 20px;
    font-size: 14px;
    margin-top: 2px;
    margin-bottom: 2px;
}

.side_item.active {
    border: 1px solid #3EE9B9;
    background: #eafffa;
    color: #0369a1;
}

.side_note {
    font-size: 12px;
    color: #2c4b77;
    width: 90%;
    margin: 0 auto;
}

.side-item:hover {
    cursor: pointer;
}

.si_free:hover {
    transition: 0.1s;
    border: 2px solid #b2b8c6;
    box-shadow: 0 2px 3px 3px rgba(0, 0, 0, 0.1);
}

.si_free:active {
    transition: 0.1s;
    border: 2px solid #3EE9B9;
    box-shadow: 0 2px 3px 3px rgba(0, 0, 0, 0.05);
    color: #0369a1;
}

.si_notice:hover {
    transition: 0.1s;
    border: 2px solid #b2b8c6;
    box-shadow: 0 2px 3px 3px rgba(0, 0, 0, 0.1);
}

.si_notice:active {
    transition: 0.1s;
    border: 2px solid #3EE9B9;
    box-shadow: 0 2px 3px 3px rgba(0, 0, 0, 0.05);
    color: #0369a1;
}

.si_CL:hover {
    transition: 0.1s;
    border: 2px solid #b2b8c6;
    box-shadow: 0 2px 3px 3px rgba(0, 0, 0, 0.1);
}

.si_CL:active {
    transition: 0.1s;
    border: 2px solid #3EE9B9;
    box-shadow: 0 2px 3px 3px rgba(0, 0, 0, 0.05);
    color: #0369a1;
}

.si_IS:hover {
    transition: 0.1s;
    border: 2px solid #b2b8c6;
    box-shadow: 0 2px 3px 3px rgba(0, 0, 0, 0.1);
}

.si_IS:active {
    transition: 0.1s;
    border: 2px solid #3EE9B9;
    box-shadow: 0 2px 3px 3px rgba(0, 0, 0, 0.05);
    color: #0369a1;
}

#followscr {
    /* border: 1px solid; */
    width: 100%;
    height: 270px;
    top: 40;
    position: absolute;
}


/* ========================================================= */
/* aside_R css (ChatPage 디자인 적용 - ProfileCard.css 내용 병합) */
/* ========================================================= */

#followscr2 {
    width: 100%;
    position: absolute;
    top: 0px;
}

/* 1. 프로필 카드 전체 컨테이너 */
.profile_card {
    width: 100%;
    background-color: #fff;
    border: 1px solid rgba(0,0,0,0.05); /* 아주 연한 테두리 */
    border-radius: 24px; /* 둥근 모서리 강화 */
    padding: 24px 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05); /* 부드러운 그림자 */
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0 auto;
}

/* 2. 유저 정보 영역 (이미지 + 이름) */
.p_header {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.p_user {
    display: flex;
    align-items: center;
    gap: 16px; /* 이미지와 이름 사이 간격 */
}

/* 프로필 이미지 (민트 그라데이션) */
.p_img {
    width: 72px; /* 크기 키움 */
    height: 72px;
    border-radius: 50%;

    /* [핵심] ChatPage와 동일한 민트 그라데이션 */
    background: linear-gradient(135deg, #6ee7b7 0%, #34d399 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); /* 초록빛 그림자 */

    color: white;
    font-size: 28px;
    font-weight: 700;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;

    /* 이미지 들어갈 때 설정 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 이름 및 상태 텍스트 */
.p_name {
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
}

#pName {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.5px;
}

/* 상태 라벨 (회색 캡슐 모양) */
.p_state_label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #F3F4F6;
    padding: 4px 10px;
    border-radius: 20px;
    width: fit-content;
}

/* 상태 점 */
.p_status_dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.p_status_dot.online {
    background-color: #10B981; /* 선명한 초록색 */
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.p_status_dot.offline {
    background-color: #9CA3AF;
}

#pStateText {
    font-size: 12px;
    font-weight: 600;
    color: #4B5563;
    line-height: 1;
}

/* 3. 상태 메시지 박스 */
.p_message_box {
    background-color: #F8FAFC; /* 아주 연한 회색 배경 */
    border-radius: 16px;
    padding: 16px;
    text-align: center;
}

.p_message {
    font-size: 13px;
    color: #4B5563;
    line-height: 1.6;
    word-break: break-word;
    font-style: italic; /* 인용구 느낌 */
}

/* 4. 하단 버튼 영역 */
.p_actions {
    margin-top: 5px;
    width: 100%;
}

.p_btn {
    width: 100%;
    height: 44px;
    background-color: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;

    font-size: 14px;
    font-weight: 700;
    color: #1F2937;

    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.p_btn:hover {
    background-color: #F9FAFB;
    border-color: #D1D5DB;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.p_btn:active {
    transform: translateY(0);
}

.meta {
    font-size: 11px;
    color: #9CA3AF;
    margin-top: 12px;
    text-align: center;
}


/* 메인 영역 프레임, 타이틀까지 */
#main {
    width: 70%;
    min-width: 920px;
    height: auto;
    background-color: transparent;

    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0 auto;

}


.mainComponent{
    width: 100%;
    height:auto;
    max-height: 1200px;
    background-color: #fff;
    border: 2px solid #e6e6e6;
    border-radius: 16px;
    padding: 16px 16px 50px;

    display: flex;
    flex-direction: column;
    gap: 20px;

}

/* BOARD TOP */
.board_card {
    width: 96%;
    height: auto;
    background-color: rgb(245,245,245);
    /*background: #111327;*/
    border: 2px solid #e6e6e6;
    border-radius: 16px;
    margin: 0 auto;
    box-shadow: 3px 5px 10px 6px rgba(0, 0, 0, 0.1);
    padding: 16px;
}

.commu_title {
    width: 100%;
    height: 70px;
    /* background-color: red; */
    display: flex;
    justify-content: center;
    align-items: center;

}

.commu_title>h1 {
    font-size: 1.8rem;
    font-weight: 800;
}