@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;
}

/* 메인 네비게이션 */
.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;
}

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

.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);
}

/* 상단이동 버튼 */
.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;
}
