@charset "utf-8";
/*-------------------------------------------------------*/
/* 국밥닷넷 커스텀 스타일
/*-------------------------------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

/* 기본 리셋 및 폰트 */
* {
    box-sizing: border-box;
}

body {
    font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}

a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #dc3545;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.sr-only, .sound_only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/*-------------------------------------------------------*/
/* 헤더 스타일
/*-------------------------------------------------------*/
.gukbap-header {
    background: #343a40;
    margin-bottom: 20px;
}

/* 상단 바 */
.top-bar {
    background: #2d3238;
    padding: 8px 0;
    font-size: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    color: rgba(255,255,255,0.6);
}

.top-bar-right {
    display: flex;
    gap: 15px;
}

.top-bar-right a {
    color: rgba(255,255,255,0.7);
    font-size: 12px;
}

.top-bar-right a:hover {
    color: #fff;
}

.top-bar-right a i {
    margin-right: 3px;
}

/* 메인 헤더 */
.main-header {
    padding: 20px 0;
}

.header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: block;
}

.logo img {
    max-height: 50px;
}

.header-search {
    flex: 0 0 300px;
}

.search-box {
    display: flex;
    background: rgba(255,255,255,0.1);
    border-radius: 25px;
    overflow: hidden;
}

.search-box input[type="text"] {
    flex: 1;
    border: none;
    padding: 10px 20px;
    background: transparent;
    color: #fff;
    font-size: 13px;
    outline: none;
}

.search-box input[type="text"]::placeholder {
    color: rgba(255,255,255,0.5);
}

.search-box button {
    border: none;
    background: #dc3545;
    color: #fff;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-box button:hover {
    background: #c82333;
}

.search-scope {
    flex: 0 0 70px;
    border: none;
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
    padding: 10px 8px;
    font-size: 12px;
    cursor: pointer;
    outline: none;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.search-scope option {
    background: #343a40;
    color: #fff;
}

/* 메인 네비게이션 */
.main-nav {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    display: block;
    padding: 15px 25px;
    color: rgba(255,255,255,0.85);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-menu li a:hover,
.nav-menu li.active a {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.nav-menu li a i {
    margin-right: 5px;
}

/* 로그인 메시지 숨김 */
#hd_login_msg {
    display: none;
}

/*-------------------------------------------------------*/
/* 메인 콘텐츠 레이아웃
/*-------------------------------------------------------*/
#wrapper {
    min-width: 0 !important;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px 20px;
}

.gukbap-main {
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.main-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.main-left {
    flex: 1;
    min-width: 0;
}

.main-side {
    flex: 0 0 280px;
    width: 280px;
}

/* 위젯 행 */
.widget-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: stretch;
}

.widget-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.widget-col > .gukbap-widget,
.widget-col > section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.widget-col .widget-content,
.widget-col .latest-list {
    flex: 1;
}

.widget-full {
    margin-bottom: 20px;
}

/* 사이드 위젯 */
.side-widget {
    margin-bottom: 15px;
}

.side-widget:last-child {
    margin-bottom: 0;
}

.side-widget .widget-title {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 12px 15px;
    background: linear-gradient(135deg, #343a40 0%, #495057 100%);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    border-radius: 8px 8px 0 0;
    border-bottom: 3px solid #dc3545;
}

.side-widget .widget-title i {
    margin-right: 8px;
    color: #ffc107;
}

.side-widget .widget-body {
    background: #fff;
    padding: 15px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* 방문자 현황 */
.visit-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.visit-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

.visit-list li:last-child {
    border-bottom: none;
}

.visit-label {
    color: #666;
}

.visit-count {
    font-weight: 600;
    color: #dc3545;
}

/* 접속자 */
.connect-count {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #343a40;
}

/* 인기검색어 */
.popular-widget .widget-body ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.popular-widget .widget-body li {
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

.popular-widget .widget-body li:last-child {
    border-bottom: none;
}

.popular-widget .widget-body a {
    color: #333;
}

.popular-widget .widget-body a:hover {
    color: #dc3545;
}

/* 인기검색어 기본 스킨 재정의 */
#popular {
    margin: 0;
}

#popular > div {
    padding: 0;
}

#popular h2 {
    display: none;
}

#popular .popular_inner {
    margin: 0;
}

#popular ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#popular li {
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

#popular li:last-child {
    border-bottom: none;
}

/*-------------------------------------------------------*/
/* 게시판 스타일
/*-------------------------------------------------------*/
#container {
    float: none !important;
    width: 100% !important;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.bo_tit {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    padding: 15px 0;
    border-bottom: 2px solid #343a40;
    margin-bottom: 20px;
}

.tbl_head01 {
    width: 100%;
    border-collapse: collapse;
}

.tbl_head01 thead th {
    background: #343a40;
    color: #fff;
    padding: 12px;
    font-weight: 500;
    text-align: center;
    font-size: 13px;
}

.tbl_head01 tbody td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    text-align: center;
    font-size: 13px;
}

.tbl_head01 tbody td.td_subject {
    text-align: left;
}

.tbl_head01 tbody tr:hover {
    background: #f8f9fa;
}

/* 버튼 스타일 */
.btn_submit,
.btn01 {
    display: inline-block;
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn_submit:hover,
.btn01:hover {
    background: #c82333;
    color: #fff;
}

.btn_cancel,
.btn02 {
    display: inline-block;
    background: #6c757d;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
}

.btn_cancel:hover,
.btn02:hover {
    background: #5a6268;
}

/*-------------------------------------------------------*/
/* 페이지네이션
/*-------------------------------------------------------*/
.pg_wrap {
    text-align: center;
    padding: 20px 0;
}

.pg a,
.pg strong {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    font-size: 13px;
}

.pg strong,
.pg a:hover {
    background: #343a40;
    color: #fff;
    border-color: #343a40;
}

/*-------------------------------------------------------*/
/* 푸터
/*-------------------------------------------------------*/
.gukbap-footer {
    background: #343a40;
    color: rgba(255,255,255,0.7);
    padding: 25px 0;
    margin-top: 30px;
    position: relative;
    clear: both;
    width: 100%;
}

.gukbap-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.ft-inner {
    text-align: center;
}

.ft-links {
    margin-bottom: 15px;
}

.ft-links a {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    margin: 0 10px;
    transition: color 0.2s;
}

.ft-links a:hover {
    color: #fff;
}

.ft-links a strong {
    color: #ffc107;
}

.ft-copy {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

.ft-copy strong {
    color: rgba(255,255,255,0.8);
}

.ft-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 12px;
}

.ft-desc strong {
    color: #ffc107;
}

.ft-beta {
    display: inline-block;
    background: rgba(255,193,7,0.2);
    color: #ffc107;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    letter-spacing: 0.5px;
}

/* 상단이동 버튼 */
.top-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 45px;
    height: 45px;
    background: #343a40;
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s;
    z-index: 999;
}

.top-btn:hover {
    background: #dc3545;
    transform: translateY(-3px);
}

/* 기존 푸터 스타일 오버라이드 */
#ft {
    min-width: 0 !important;
    background: #343a40;
    padding: 25px 0;
    margin-top: 30px;
    clear: both;
}

#ft_wr,
#ft_link,
#ft_company,
#ft_copy,
#aside {
    display: none;
}

/*-------------------------------------------------------*/
/* 반응형
/*-------------------------------------------------------*/
@media (max-width: 991px) {
    .main-content {
        flex-direction: column;
    }

    .main-side {
        flex: none;
        width: 100%;
    }

    .widget-row {
        flex-direction: column;
    }

    .nav-menu {
        flex-wrap: wrap;
    }

    .nav-menu li a {
        padding: 12px 15px;
        font-size: 14px;
    }

    .header-search {
        flex: 0 0 200px;
    }
}

@media (max-width: 767px) {
    .header-wrap {
        flex-direction: column;
        gap: 15px;
    }

    .header-search {
        flex: none;
        width: 100%;
    }

    .top-bar .container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .nav-menu li a {
        padding: 10px 12px;
        font-size: 13px;
    }

    .ft-links a {
        display: inline-block;
        margin: 3px 8px;
    }
}

/*-------------------------------------------------------*/
/* 회원 관련 스타일
/*-------------------------------------------------------*/
.login_header {
    background: linear-gradient(135deg, #343a40 0%, #495057 100%);
    color: #fff;
    padding: 15px;
    text-align: center;
    border-radius: 8px 8px 0 0;
}

.login_header h1 {
    color: #fff;
    font-size: 18px;
    margin: 0;
}

.login_form {
    background: #fff;
    padding: 30px;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.reg_form {
    background: #fff;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

/*-------------------------------------------------------*/
/* 유틸리티
/*-------------------------------------------------------*/
.text-primary {
    color: #dc3545 !important;
}

.bg-primary {
    background-color: #343a40 !important;
}

.new_icon {
    color: #dc3545;
    font-size: 10px;
    vertical-align: top;
}

/* 기존 테마 스타일 오버라이드 */
.lat {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 0;
}

.lat_title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 12px 15px;
    background: linear-gradient(135deg, #343a40 0%, #495057 100%);
    font-size: 15px;
    font-weight: 600;
    border-bottom: 3px solid #dc3545;
}

.lat_title a {
    color: #fff;
}

.lat ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lat li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
}

.lat li:last-child {
    border-bottom: none;
}

.lat li:hover {
    background: #f8f9fa;
}

.lat .lt_more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
    color: #fff;
}

/*-------------------------------------------------------*/
/* 사이트 소개 배너
/*-------------------------------------------------------*/
.site-intro-banner {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 50%, #a71d2a 100%);
    color: #fff;
    padding: 25px 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
    position: relative;
    overflow: hidden;
}

.site-intro-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.intro-content {
    position: relative;
    z-index: 1;
}

.beta-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.intro-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: -0.5px;
}

.intro-desc {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
}

/*-------------------------------------------------------*/
/* 섹션 헤더 및 배지
/*-------------------------------------------------------*/
.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #343a40;
}

.section-header.small {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: none;
}

.section-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.section-title i {
    color: #dc3545;
    margin-right: 6px;
}

.section-tooltip {
    color: #999;
    font-size: 14px;
}

.section-tooltip:hover {
    color: #666;
}

.section-more {
    margin-left: auto;
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
}

.section-more:hover {
    color: #dc3545;
}

.section-toggle {
    margin-left: auto;
    background: #f5f5f5;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.2s;
}

.section-toggle:hover {
    background: #dc3545;
    color: #fff;
}

.hot-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b, #dc3545);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.criteria-info {
    color: #999;
    font-size: 13px;
    cursor: help;
}

.criteria-info:hover {
    color: #dc3545;
}

.priority-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border-left: 4px solid #dc3545;
}

.collapsible-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.collapsible-section .section-header {
    margin-bottom: 15px;
    padding-bottom: 0;
    border-bottom: none;
}

.collapsible-section .section-content {
    transition: all 0.3s ease;
}

.empty-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #ddd;
    color: #999;
    font-size: 13px;
}

/*-------------------------------------------------------*/
/* 다크모드 지원
/*-------------------------------------------------------*/
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }

    a { color: #e0e0e0; }
    a:hover { color: #ff6b6b; }

    .site-intro-banner {
        background: linear-gradient(135deg, #c82333 0%, #a71d2a 100%);
    }

    .section-title { color: #e0e0e0; }

    .priority-section,
    .collapsible-section {
        background: #2a2a2a;
    }

    .section-toggle {
        background: #3a3a3a;
        color: #ccc;
    }

    #container,
    .lat {
        background: #2a2a2a;
    }

    .tbl_head01 tbody tr:hover,
    .lat li:hover {
        background: #333;
    }

    .side-widget .widget-body {
        background: #2a2a2a;
    }

    .visit-list li,
    .popular-widget .widget-body li,
    #popular li {
        border-bottom-color: #3a3a3a;
    }

    .empty-placeholder {
        background: #2a2a2a;
        border-color: #3a3a3a;
    }
}

/*-------------------------------------------------------*/
/* 사이드뷰(회원레이어) 완전 비활성화
/*-------------------------------------------------------*/
.sv_wrap .sv,
.sv_wrap .sv_nojs,
.sv_wrap noscript,
.sv_nojs .sv,
.sv_on,
span.sv {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

.sv_wrap .sv_member {
    cursor: default;
    pointer-events: none;
}

.sv_wrap .profile_img {
    display: none !important;
}

/* 이름만 깔끔하게 표시 */
.td_name.sv_use {
    vertical-align: middle;
}

.td_name.sv_use .sv_wrap {
    display: inline;
}

.td_name.sv_use .sv_wrap .sv_member {
    display: inline;
    color: #333;
}
