/**
 * 망고 사이트 전역 스타일
 * Mango Site Global Styles
 * 
 * 목차:
 * 1. 기본 리셋 및 타이포그래피
 * 2. 레이아웃
 * 3. 네비게이션 메뉴
 * 4. 검색 영역
 * 5. 사이트 목록 (온라인/오프라인)
 * 6. 카테고리 헤더
 * 7. 즐겨찾기 영역
 * 8. 공지사항 및 푸터
 * 9. Modal (사이트 등록)
 * 10. 검색 페이지 전용
 * 11. 인기 순위 페이지 전용
 * 12. 사이트 상세 페이지 전용
 * 13. 사이트 제출 페이지 전용
 * 14. 유틸리티 클래스
 * 15. 반응형 디자인
 */

/* ==========================================
 * 1. 기본 리셋 및 타이포그래피
 * ========================================== */
* {
    box-sizing: border-box;
}

body, table, tr, td, form {
    margin: 0;
    padding: 0;
    font-family: "굴림", Gulim, Arial, sans-serif;
    font-size: 13px;
    color: #3D3D3D;
    line-height: 190%;
    letter-spacing: 0.1px;
}

img {
    border: none;
}

strong {
    font-weight: bold;
}

a {
    text-decoration: none;
    color: #0068E3;
}

a:hover {
    text-decoration: underline;
}

/* 제목 스타일 */
H1 {
    font-weight: bold;
    color: #BFBFBF;
    font-size: 12px;
    text-align: center;
}

H3 {
    margin: 0;
    padding: 0;
    color: #0000cc;
    font-weight: normal;
}

H3 a {
    color: #0000cc;
    font-size: 1.2em;
    font-weight: normal;
}

/* ==========================================
 * 2. 레이아웃
 * ========================================== */
#body {
    width: 1000px;
    margin: auto;
}

.main-container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 0 10px;
    text-align: left;
}

/* 레거시 클래스 */
.whatjun {
    list-style: none;
    margin: 0;
    padding: 0;
}

.garojun {
    padding-left: 20px;
    padding-bottom: 20px;
    padding-top: 20px;
    border: 0;
    float: left;
}

/* 이미지 정렬 */
a img.alignright, .tright, .floatright, img.alignright, img.right {
    float: right;
    margin: 0 0 1em 1em;
}

a img.alignleft, .tleft, .floatleft, img.alignleft, img.left {
    float: left;
    margin: 0 1em 1em 0;
}

a img.aligncenter, img.aligncenter, img.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.tel {
    color: #0042FF;
}

/* ==========================================
 * 3. 네비게이션 메뉴 (버튼 스타일)
 * ========================================== */
.nav-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* 가운데 정렬 */
    gap: 5px;
    margin-bottom: 10px;
    padding: 8px 0;
}

.nav-menu a {
    display: inline-block;
    padding: 6px 12px;
    background: #fff;
    color: #333;
    text-decoration: none;
    border: 1px solid #999;
    font-size: 13px;
    white-space: nowrap;
    transition: all 0.2s;
}

.nav-menu a:hover {
    background: #f0f0f0;
    border-color: #666;
    text-decoration: none;
}

.nav-menu a:active {
    background: #e0e0e0;
}

/* ==========================================
 * 4. 검색 영역
 * ========================================== */
.search-box {
    background: #f5f5f5;
    padding: 10px;
    border: 1px solid #ccc;
    margin-bottom: 10px;
}

.search-box form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.search-box .search-label {
    color: #333;
    font-size: 13px;
    flex-shrink: 0;
}

.search-box input[type="text"] {
    flex: 1;
    min-width: 100px;
    max-width: 200px;
    padding: 6px 10px;
    border: 1px solid #999;
    font-size: 14px;
}

.search-box button {
    flex-shrink: 0;
    padding: 6px 15px;
    border: 1px solid #999;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

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

/* ==========================================
 * 5. 사이트 목록 (온라인/오프라인)
 * ========================================== */
/* 온라인 사이트 목록 */
.vivo {
    margin-left: -15px;
    list-style: none;
    padding-left: 0;
}

.vivo li {
    margin-left: 15px;
    word-break: break-word;
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
}

.vivo a {
    color: red;
    font-size: 15px;
    display: inline !important;
    word-break: break-word;
}

/* 오프라인 사이트 목록 */
.death {
    color: #a0a0a0;
    margin-left: -15px;
    list-style: none;
    padding-left: 0;
}

.death li {
    margin-left: 15px;
    word-break: break-word;
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
}

.death img {
    position: absolute;
    visibility: hidden;
}

.death a {
    color: #5f5f5f;
    font-size: 15px;
    display: inline !important;
    word-break: break-word;
}

/* 사이트 항목 요소 */
.site-num {
    color: #666;
    margin-right: 3px;
}

.site-num-offline {
    color: #999;
    margin-right: 3px;
}

.site-desc,
.vivo .site-desc,
.vivo a.site-desc {
    color: #666 !important;
    text-decoration: none;
}

.site-badge {
    font-weight: bold;
    color: blue;
}

.site-checked {
    color: #999999;
}

/* 즐겨찾기 체크박스 */
.favorite-checkbox {
    margin-right: 3px;
    vertical-align: middle;
    cursor: pointer;
}

/* 사이트 등록 링크 */
.site-submit-link {
    color: #0000cc;
    cursor: pointer;
}

/* ==========================================
 * 6. 카테고리 헤더
 * ========================================== */
.category-header {
    width: 100%;
    border: 0;
    padding: 0;
    border-spacing: 0;
}

.category-header td {
    padding: 5px 10px;
}

.category-title {
    color: #ffffff;
    font-size: 16px;
}

/* 분류 제목 링크 (분류 디렉토리 페이지로 이동) */
.category-title-link {
    text-decoration: none;
}

.category-title-link:hover {
    text-decoration: underline;
}

.category-title-link .category-title {
    color: #ffffff;
}

.category-toggle {
    float: right;
    margin-left: 10px;
}

.category-toggle a {
    cursor: pointer;
}

.toggle-icon {
    vertical-align: middle;
}

.category-content {
    /* 카테고리 컨텐츠 영역 - JS로 접기/펼치기 */
}

.update-date {
    color: gray;
}

/* ==========================================
 * 7. 즐겨찾기 영역
 * ========================================== */
.favorites-header {
    background-color: #a0a1a1;
    width: 100%;
    border: 0;
    padding: 0;
    border-spacing: 0;
}

.favorites-header td {
    padding: 5px 10px;
}

.favorites-title {
    color: #ffffff;
    font-size: 16px;
}

.favorites-toggle {
    float: right;
    margin-left: 10px;
}

.favorites-toggle a {
    cursor: pointer;
}

.favorites-toggle-icon {
    vertical-align: middle;
}

#favoritesContent {
    /* 즐겨찾기 내용 영역 */
}

/* 비로그인 상태 폼 */
.favorites-login-box {
    background: #f5f5f5;
    padding: 15px;
    text-align: center;
}

.favorites-login-box p {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 15px;
}

.favorites-login-box input[type="password"] {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 3px;
    width: 200px;
    text-align: center;
    font-size: 15px;
}

.favorites-login-box button {
    padding: 8px 20px;
    background: #a0a1a1;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 15px;
    margin-left: 10px;
}

/* 로그인 상태 목록 */
#favoritesList {
    /* JavaScript에서 동적으로 채워짐 */
}

.favorites-loading {
    text-align: center;
    color: #999;
    padding: 20px;
}

.favorites-logout {
    text-align: right;
    margin-top: 5px;
}

.favorites-logout a {
    color: #000;
    font-size: 13px;
}

/* 즐겨찾기 삭제 버튼 */
.fav-remove {
    color: #c00;
    cursor: pointer;
    margin-right: 3px;
    font-weight: bold;
}

/* 즐겨찾기 빈 상태 */
.favorites-empty {
    text-align: center;
    color: #999;
    padding: 20px;
}

/* 즐겨찾기 목록 */
.favorites-list {
    margin-left: -15px;
    list-style: none;
    padding-left: 0;
}

.favorites-list li {
    margin-left: 15px;
}

/* 오프라인 즐겨찾기 항목 */
.fav-item-offline {
    color: #999;
    text-decoration: line-through;
}

.fav-offline-tag {
    color: red;
}

/* 즐겨찾기 순번 */
.fav-num {
    color: #666;
    margin-right: 3px;
}

/* 즐겨찾기 설명 */
.fav-desc {
    color: #666;
}

/* ==========================================
 * 8. 공지사항 및 푸터
 * ========================================== */
.notice-box {
    background-color: #CBCBE7;
    padding: 10px;
}

.notice-box .notice-title {
    text-align: center;
    font-weight: bold;
}

.notice-box ol {
    margin: 10px 0 0 20px;
    padding: 0;
}

.notice-box li {
    margin-bottom: 5px;
}

.footer-copyright {
    text-align: center;
    margin: 20px 0;
}

/* 퀵버튼 영역 */
.quick-buttons {
    text-align: center;
    margin: 10px 0;
}

.quick-buttons a {
    cursor: pointer;
}

.quick-buttons img {
    margin-right: 10px;
}

/* 사이드바 버튼 */
.sidebar-btn {
    display: block;
    padding: 4px 8px;
    margin-bottom: 3px;
    background: #fff;
    color: #000;
    text-align: center;
    text-decoration: none;
    border: 1px solid #999;
    font-size: 13px;
    white-space: nowrap;
}

.sidebar-btn:hover {
    background: #f5f5f5;
    text-decoration: none;
}

/* ==========================================
 * 9. Modal (사이트 등록)
 * ========================================== */
.submit-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.submit-modal-content {
    position: relative;
    background-color: #fff;
    margin: 3% auto;
    padding: 0;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.submit-modal-close {
    position: absolute;
    right: 15px;
    top: 10px;
    color: #666;
    font-size: 33px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    background: white;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
}

.submit-modal-close:hover {
    color: #000;
}

.submit-modal-iframe {
    width: 100%;
    height: 85vh;
    border: none;
    border-radius: 8px;
    display: block;
}

/* ==========================================
 * 10. 검색 페이지 전용
 * ========================================== */
.search-page {
    font-family: "굴림", Gulim, Arial, sans-serif;
    font-size: 13px;
    color: #3D3D3D;
    line-height: 180%;
    background: #fff;
    padding: 10px 15px;
    max-width: 900px;
    margin: 0 auto;
}

.search-page a {
    text-decoration: none;
    color: #0000cc;
}

.search-page a:hover {
    text-decoration: underline;
}

/* 검색 헤더 */
.search-header {
    text-align: center;
    padding: 10px 0 15px 0;
    border-bottom: 1px solid #ddd;
    margin-bottom: 15px;
}

.search-header img {
    max-height: 50px;
    cursor: pointer;
}

.search-form {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.search-form input[type="text"] {
    width: 200px;
    padding: 8px 12px;
    border: 1px solid #999;
    font-size: 13px;
}

.search-form button {
    padding: 8px 16px;
    border: 1px solid #999;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 13px;
}

.search-form button:hover {
    background: #e5e5e5;
}

/* 검색 결과 */
.search-title {
    font-size: 16px;
    color: #333;
    margin: 15px 0 10px 0;
    font-weight: bold;
}

.search-category-header {
    padding: 5px 10px;
    margin: 15px 0 5px 0;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
}

.search-result-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-result-list li {
    padding: 3px 0;
    margin-left: 10px;
}

.search-result-list .site-name {
    color: red;
    font-size: 15px;
}

.search-result-list .site-name:hover {
    text-decoration: underline;
}

.search-result-list .site-desc {
    color: #666;
}

.search-result-list .badge {
    color: #FF0000;
}

.search-result-list .num {
    color: #666;
    margin-right: 3px;
}

/* 메시지 박스 */
.message-box {
    padding: 25px;
    text-align: center;
    border: 1px solid #ddd;
    background: #f8f9fa;
    margin: 15px 0;
}

.message-box.warning {
    background: #fff3cd;
    border-color: #ffc107;
}

.message-box.warning p {
    color: #856404;
}

.message-box p {
    color: #666;
    margin: 0;
}

.message-box .hint {
    color: #999;
    font-size: 12px;
    margin-top: 8px;
}

/* 하단 네비게이션 */
.bottom-nav {
    text-align: center;
    margin: 25px 0;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.bottom-nav a {
    display: inline-block;
    padding: 8px 20px;
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 13px;
}

.bottom-nav a:hover {
    background: #e5e5e5;
    text-decoration: none;
}

/* ==========================================
 * 11. 인기 순위 페이지 전용
 * ========================================== */
.toplist-page-title {
    text-align: center;
    color: #333;
    margin: 20px 0;
    font-size: 20px;
}

.toplist-page-desc {
    color: gray;
    text-align: center;
    margin-bottom: 20px;
}

/* 순위 모드 탭 */
.toplist-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.toplist-tab {
    display: inline-block;
    padding: 8px 20px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s;
}

.toplist-tab:hover {
    background: #e0e0e0;
    text-decoration: none;
}

.toplist-tab.active {
    background: #333;
    color: #fff;
    border-color: #333;
}

.toplist-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin: 20px 0;
}

.toplist-table th {
    padding: 10px;
    font-size: 15px;
    font-weight: bold;
    color: #333;
    border: 1px solid #999;
    background: #f5f5f5;
}

.toplist-table td {
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ddd;
}

.toplist-table .rank-col {
    width: 10%;
    text-align: center;
    font-weight: bold;
}

.toplist-table .hits-col {
    width: 15%;
    text-align: right;
}

.toplist-table td.hits-col {
    color: #0068E3;
}

.toplist-table .name-col {
    width: 25%;
}

.toplist-table .link-col {
    width: 50%;
    text-align: left;
    word-break: break-all;
}

.toplist-table .link-col a {
    color: #0068E3;
    text-decoration: none;
}

.toplist-table .link-col a:hover {
    text-decoration: underline;
}

.toplist-empty {
    text-align: center;
    padding: 40px;
    color: #999;
}

.toplist-update {
    text-align: center;
    color: #666;
    margin: 30px 0;
}

/* ==========================================
 * 12. 사이트 상세 페이지 전용
 * ========================================== */
.detail-page {
    font-family: "굴림", Gulim, Arial, sans-serif;
    font-size: 13px;
    color: #3D3D3D;
    line-height: 170%;
    background: #fff;
    padding: 15px;
}

.detail-page a {
    text-decoration: none;
    color: #0068E3;
}

.detail-page a:hover {
    text-decoration: underline;
}

.detail-container {
    max-width: 800px;
    margin: 0 auto;
}

/* 브레드크럼 */
.breadcrumb {
    color: #666;
    font-size: 12px;
    margin-bottom: 15px;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb .current {
    color: #333;
}

/* 정보 카드 */
.detail-card {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
}

.detail-card h1 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    text-align: left;
    font-weight: bold;
}

.detail-card h1 img {
    vertical-align: middle;
}

/* 정보 테이블 */
.info-table {
    width: 100%;
}

.info-table td {
    padding: 5px 0;
    font-size: 13px;
}

.info-table .label {
    color: #666;
    width: 80px;
}

.info-table .value-online {
    color: green;
    font-weight: bold;
}

.info-table .value-visits {
    color: #0068E3;
    font-weight: bold;
}

.info-table .value-badge {
    font-weight: bold;
    color: blue;
}

.info-table .value-date {
    color: #999;
}

/* 방문 버튼 */
.visit-btn {
    display: inline-block;
    padding: 10px 25px;
    background: #FFA500;
    color: white !important;
    border-radius: 3px;
    margin-top: 10px;
}

.visit-btn:hover {
    text-decoration: none;
    background: #e69500;
}

/* 오프라인 사이트 방문 버튼 */
.visit-btn-offline {
    background: #999 !important;
    cursor: not-allowed;
}

.visit-btn-offline:hover {
    background: #888 !important;
}

/* 설명 섹션 */
.desc-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.desc-section strong {
    color: #333;
}

.desc-section p {
    margin-top: 5px;
    color: #333;
    font-size: 13px;
}

.desc-section .keywords {
    color: #666;
}

/* 네비게이션 버튼 */
.nav-btns {
    text-align: center;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-btn {
    display: inline-block;
    padding: 8px 20px;
    background: #f5f5f5;
    color: #333 !important;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 13px;
}

.nav-btn:hover {
    text-decoration: none;
    background: #eee;
}

/* ==========================================
 * 13. 사이트 제출 페이지 전용
 * ========================================== */
.submit-page {
    font-family: "굴림", Gulim, Arial, sans-serif;
    font-size: 12px;
    background: #fff;
    padding: 20px;
}

.submit-page h1 {
    text-align: center;
    margin: 10px 0 20px 0;
    font-size: 18px;
    color: #333;
}

/* 성공 메시지 */
.submit-success {
    background: #d4edda;
    color: #155724;
    padding: 20px;
    margin: 20px auto;
    max-width: 600px;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    text-align: center;
}

.submit-success h2 {
    color: #155724;
    margin-top: 0;
}

/* 에러 메시지 */
.submit-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    margin: 20px auto;
    max-width: 600px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

.submit-error ul {
    margin: 10px 0 0 20px;
}

/* 제출 폼 */
.submit-form-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f9;
}

.submit-form .form-group {
    margin-bottom: 15px;
}

.submit-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.submit-form .required {
    color: red;
}

.submit-form input[type="text"],
.submit-form input[type="url"],
.submit-form input[type="number"],
.submit-form textarea,
.submit-form select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.submit-form textarea {
    resize: vertical;
}

.submit-form small {
    color: #666;
    display: block;
    margin-top: 5px;
}

/* 캡차 */
.captcha-question {
    font-size: 15px;
    font-weight: bold;
    margin: 10px 0;
}

.captcha-input {
    width: 100px;
    padding: 8px;
    border: 1px solid #ccc;
}

/* 버튼 */
.submit-form .btn-submit {
    background: #007bff;
    color: white;
    padding: 8px 30px;
    border: 1px solid #007bff;
    border-radius: 4px;
    cursor: pointer;
}

.submit-form .btn-cancel {
    padding: 8px 30px;
    color: #666;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
}

/* 최근 보상 내역 */
.recent-payments {
    max-width: 600px;
    margin: 40px auto 20px auto;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.recent-payments h3 {
    text-align: center;
    margin-top: 0;
    color: #333;
}

.recent-payments table {
    width: 100%;
    border-collapse: collapse;
}

.recent-payments th {
    padding: 10px;
    text-align: left;
    border-bottom: 2px solid #ddd;
}

.recent-payments td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.recent-payments .amount {
    text-align: right;
    font-weight: bold;
    color: #28a745;
}

.recent-payments .date {
    text-align: center;
    color: #666;
    font-size: 12px;
}

/* ==========================================
 * 14. 유틸리티 클래스
 * ========================================== */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-gray {
    color: gray;
}

.text-red {
    color: red;
}

.text-blue {
    color: blue;
}

.text-green {
    color: green;
}

.text-bold {
    font-weight: bold;
}

.mt-10 {
    margin-top: 10px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* 커서 포인터 */
.clickable {
    cursor: pointer;
}

/* 로고 래퍼 */
.logo-wrapper {
    display: inline-block;
    width: 222px;
}

.logo-wrapper a {
    cursor: pointer;
}

/* 사이드바 셀 */
.sidebar-cell {
    padding-left: 5px;
}

/* 숨김 요소 (SEO용) */
.sr-only {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ==========================================
 * 15. 반응형 디자인
 * ========================================== */
@media screen and (max-width: 768px) {
    .main-container {
        padding: 0 5px;
    }
    
    /* 네비게이션 메뉴 - 태블릿 */
    .nav-menu {
        gap: 4px;
    }
    
    .nav-menu a {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    /* 검색 영역 - 태블릿 */
    .search-box {
        padding: 8px;
    }
    
    .search-box input[type="text"] {
        max-width: 150px;
    }
    
    .submit-modal-content {
        width: 95%;
        max-height: 95vh;
        margin: 2.5% auto;
    }
    
    .submit-modal-iframe {
        height: 90vh;
    }
    
    .toplist-table th,
    .toplist-table td {
        padding: 5px;
        font-size: 12px;
    }
    
    .nav-btns {
        flex-direction: column;
        align-items: center;
    }
    
    .search-form {
        flex-direction: column;
        align-items: center;
    }
    
    .search-form input[type="text"] {
        width: 100%;
        max-width: 250px;
    }
}

@media screen and (max-width: 480px) {
    body {
        font-size: 12px;
    }
    
    /* 네비게이션 메뉴 - 모바일 */
    .nav-menu {
        gap: 3px;
        padding: 5px 0;
    }
    
    .nav-menu a {
        padding: 5px 8px;
        font-size: 12px;
    }
    
    /* 검색 영역 - 모바일 */
    .search-box form {
        flex-wrap: wrap;
    }
    
    .search-box .search-label {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .search-box input[type="text"] {
        flex: 1;
        min-width: 0;
        max-width: none;
    }
    
    .search-box button {
        padding: 6px 12px;
    }
    
    .vivo a,
    .death a {
        font-size: 14px;
    }
    
    .category-title {
        font-size: 14px;
    }
    
    .detail-card h1 {
        font-size: 16px;
    }
}

/* ==========================================
 * 16. 카테고리 디렉토리 페이지 전용
 * ========================================== */

/* 브레드크럼 네비게이션 */
.category-breadcrumb {
    color: #666;
    font-size: 12px;
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.category-breadcrumb a {
    color: #0068E3;
}

.category-breadcrumb a:hover {
    text-decoration: underline;
}

.category-breadcrumb .current {
    color: #333;
    font-weight: bold;
}

.category-breadcrumb .site-count {
    color: #888;
    font-size: 11px;
    margin-left: 5px;
}

/* 하단 네비게이션 */
.category-nav {
    margin-top: 20px;
    padding: 15px 0;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.category-nav .nav-link {
    color: #0068E3;
    font-size: 13px;
}

.category-nav .nav-link:hover {
    text-decoration: underline;
}

/* 빈 카테고리 안내 */
.empty-category {
    padding: 40px 20px;
    text-align: center;
    color: #666;
    background: #f9f9f9;
    border: 1px dashed #ddd;
    margin: 20px 0;
}
