@charset "utf-8";

/* [기본 초기화 보정] */
#social-layout-wrapper {
    display: flex;
    justify-content: center;
    min-height: 100vh;
}
#social-content {
    flex-grow: 1;
    max-width: 600px; /* PC 중앙 컨텐츠 크기 */
    width: 100%;
    margin-left: 0; /* PC 사이드바 공간은 flex로 처리 */
    background: #fff;
    min-height: 100vh;
    border-right: 1px solid #eee;
    border-left: 1px solid #eee;
}

/* =========================================
   [PC] #social-header (좌측 사이드바)
   ========================================= */
#social-header.pc-sidebar {
    width: 250px;
    height: 100vh;
    position: sticky;
    top: 0;
    z-index: 998;
    background: #fff;
    border-right: 1px solid #eee;
    padding: 20px;
    display: block; /* 모바일에서 none 처리 예정 */
}

.sidebar-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.logo_area {
    margin-bottom: 30px;
    padding-left: 10px;
}
.logo_area img {
    max-height: 40px;
}

/* 네비게이션 메뉴 */
.nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.nav-menu li {
    margin-bottom: 10px;
}
.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 500;
    color: #333;
    transition: background 0.2s;
    text-decoration: none;
}
.nav-item:hover {
    background-color: #f3f3f3;
}
.nav-item i {
    width: 30px;
    font-size: 20px;
    text-align: center;
    margin-right: 15px;
}
.nav-item .badge {
    background: #ff4b4b;
    color: #fff;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
}

/* 사이드바 하단 */
.sidebar-footer {
    margin-top: auto;
}
.more-btn {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    font-size: 16px;
    color: #555;
    text-decoration: none;
}
.more-btn i {
    width: 30px;
    margin-right: 15px;
}


/* =========================================
   [Mobile] 공통 숨김 처리
   ========================================= */
.mobile-header,
.mobile-bottom-nav {
    display: none;
}


/* =========================================
   [Media Query] 1024px 이하 (태블릿/모바일)
   ========================================= */
@media (max-width: 1024px) {
    
    /* PC 요소 숨김 */
    #social-header.pc-sidebar {
        display: none;
    }
    
    #social-layout-wrapper {
        display: block; /* Flex 해제 */
    }

    #social-content {
        max-width: 100%;
        border: none;
        margin-top: 70px; /* 헤더 높이 */
        margin-bottom: 60px; /* 하단바 높이 */
    }

    /* 1. 모바일 상단 헤더 */
    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 70px;
        background: #fff;
        border-bottom: 1px solid #eee;
        position: fixed;
        top: 0; left: 0; right: 0;
        z-index: 1000;
        padding: 0 15px;
    }
    .mobile-header .text-logo {
        font-weight: bold;
        font-size: 18px;
    }
    .mh-right .mh-profile-btn img { width: 40px; height: 40px; border-radius: 50%; }
    .mh-right .fa-circle-user {
        font-size: 24px;
        color: #ddd;
    }
    .mh-login-btn {
        font-size: 20px;
        font-weight: bold;
        color: var(--rb-main-color);
    }

    /* 프로필 컨테이너 및 드롭다운 스타일 */
    .mh-profile-container {
        position: relative; /* 드롭다운 배치의 기준 */
        display: flex;
        align-items: center;
    }

    .mh-dropdown-menu {
        display: none; /* 기본 숨김 */
        position: absolute;
        top: 45px; /* 헤더 높이에 맞춰 조정 */
        right: 0;
        background: #fff;
        min-width: 140px;
        border: 1px solid #eee;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        z-index: 1001;
        overflow: hidden;
    }

    /* 토글 시 보여주기 */
    .mh-dropdown-menu.show {
        display: block;
    }

    .mh-dropdown-menu a {
        display: block;
        padding: 15px 20px;
        color: #333;
        font-size: 15px;
        text-decoration: none;
        border-bottom: 1px solid #f8f8f8;
        transition: background 0.2s;
    }

    .mh-dropdown-menu a:last-child {
        border-bottom: none;
        color: #ff4b4b; /* 로그아웃 강조 */
    }

    .mh-dropdown-menu a:active {
        background-color: #f5f5f5;
    }

    .mh-dropdown-menu a i {
        margin-right: 8px;
        width: 18px;
        text-align: center;
    }

    /* 2. 모바일 하단바 */
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
        height: 60px;
        background: #fff;
        border-top: 1px solid #eee;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        z-index: 1000;
        padding-bottom: env(safe-area-inset-bottom); /* 아이폰 하단 바 대응 */
    }
    .mn-item {
        color: #333;
        font-size: 22px;
        padding: 10px;
        position: relative;
    }
    /* 중요 버튼 강조 (예: +버튼) */
    .mn-item.main-action {
        background: #333;
        color: #fff;
        border-radius: 50%;
        width: 40px; height: 40px;
        display: flex; align-items: center; justify-content: center;
        font-size: 18px;
    }
    .mn-item .dot {
        position: absolute;
        top: 10px; right: 8px;
        width: 5px; height: 5px;
        background: red;
        border-radius: 50%;
    }
}



.contents_wrap > .index {
  width: 100%;
  min-width: 100%;
  padding: 20px;
}

.contents_wrap > .sub {
  width: 100%;
  min-width: 100%;
  padding: 20px;
}

#container_title {
  display: none;
}

#rb-control-btn {
  left: unset !important;
  right: 20px !important;
}


.flex_box[data-layout="main-head-widget"] {
    margin-bottom: 0 !important;
}


/* 배지 기본 컨테이너 */
.pf-user-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    margin-left: 6px;
    vertical-align: middle;
}

/* 남성: 파란색 테마 */
.pf-badge--male {
    background-color: #e3f2fd;
    color: #1976d2;
}
.pf-badge--male .pf-badge-icon {
    /* 아이콘 색상을 진한 파란색으로 변경 */
    filter: invert(34%) sepia(85%) saturate(1518%) hue-rotate(190deg) brightness(95%) contrast(92%);
}

/* 여성: 핑크색 테마 */
.pf-badge--female {
    background-color: #fce4ec;
    color: #d81b60;
}
.pf-badge--female .pf-badge-icon {
    /* 아이콘 색상을 진한 핑크색으로 변경 */
    filter: invert(24%) sepia(89%) saturate(2410%) hue-rotate(320deg) brightness(91%) contrast(96%);
}

/* 아이콘 크기 */
.pf-badge-icon {
    width: 14px;
    height: 14px;
    display: block;
}

/* 나이 텍스트 */
.pf-badge-age {
    font-size: 12px;
    display: inline-block;
}

/* 성별 아이콘 공통 스타일 */
.pf-gender-icon {
    width: 1.2em;
    height: 1.2em;
    vertical-align: middle;
    display: inline-block;
}

/* 남성: 파란색 계열 */
.pf-gender--male {
    /* 예: 푸른색 필터 적용 (SVG가 검은색일 때) */
    filter: invert(42%) sepia(93%) saturate(1352%) hue-rotate(190deg) brightness(100%) contrast(105%);
}

/* 여성: 핑크/빨간색 계열 */
.pf-gender--female {
    /* 예: 분홍색 필터 적용 (SVG가 검은색일 때) */
    filter: invert(42%) sepia(93%) saturate(1352%) hue-rotate(320deg) brightness(100%) contrast(105%);
}