@charset "UTF-8";

/**
 * 망고 사이트 전역 스타일 (정리 버전)
 * 모든 링크에서 Wayback Machine 접두어 제거 완료
 */

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

body, table, tr, td, form {
    margin: 0;
    padding: 0;
    font-family: "굴림", Gulim, Arial, sans-serif;
    font-size: 15px;
    color: #3D3D3D;
    line-height: 200%;
    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;
    color: #333;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

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

.search-result-notice,
.search-empty-result {
    margin: 10px 0;
    padding: 8px 10px;
    border: 1px solid #cfd8e3;
    background: #f7fbff;
    color: #333;
    font-size: 14px;
}

.search-empty-result {
    background: #fff8f0;
    border-color: #e5c6a3;
}

/* ==========================================
 * 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;
    padding: 3px 0;
}

.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;
    border-top: 1px dashed #ccc;
    padding-top: 5px;
    margin-top: 10px;
}

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

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

.update-date {
    color: gray;
    font-size: 13px;
    margin-bottom: 5px;
}

/* ==========================================
 * 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 {
    padding: 10px 5px;
}

.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 {
    padding: 10px 0;
}

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

.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. 맨 위로 버튼
 * ========================================== */
.back-to-top-button {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9998;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #0042FF;
    border-radius: 4px;
    background: #0068E3;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    line-height: 42px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.back-to-top-button.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top-button:hover {
    background: #0042FF;
    color: #fff;
}

/* ==========================================
 * 10. 추천 링크
 * ========================================== */
.recommend-links {
    margin: 15px 0 15px 20px;
    padding-left: 20px;
    list-style: decimal;
}

.recommend-links li {
    margin-left: 0;
    margin-bottom: 5px;
}

/* ==========================================
 * 11. 유틸리티
 * ========================================== */
.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 img {
    width: 100%;
    height: auto;
}

.logo-wrapper a {
    cursor: pointer;
}

.sidebar-cell {
    padding-left: 5px;
}

.sr-only {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ==========================================
 * 12. 반응형
 * ========================================== */
@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;
    }

    .back-to-top-button {
        right: 12px;
        bottom: 12px;
        width: 40px;
        height: 40px;
        font-size: 22px;
        line-height: 38px;
    }
}

@media screen and (max-width: 480px) {
    body {
        font-size: 13px;
    }

    .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: 15px;
    }

    .category-title {
        font-size: 15px;
    }
}
