@charset "UTF-8";

/**
 * 망고 사이트 전역 스타일 (정리 버전)
 */

/* ==========================================
 * 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;
}

/* ==========================================
 * 2. 레이아웃
 * ========================================== */
.main-container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 0 10px;
    text-align: left;
}

/* ==========================================
 * 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;
}

.page-intro {
    margin: 14px 20px;
    color: #3D3D3D;
}

/* ==========================================
 * 5. 즐겨찾기
 * ========================================== */
.favorites-box {
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #c9c9c9;
    background: #fffdf2;
    font-size: 14px;
}

.favorites-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e4dfbf;
}

.favorites-header strong {
    color: #333;
}

.favorites-count {
    color: #666;
    font-size: 13px;
}

.favorites-actions {
    display: flex;
    gap: 5px;
    margin-left: auto;
}

.favorites-actions button,
.favorite-remove {
    padding: 3px 8px;
    border: 1px solid #999;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-size: 13px;
}

.favorites-actions button:hover,
.favorite-remove:hover {
    background: #f0f0f0;
}

.favorites-actions button:disabled {
    color: #aaa;
    cursor: default;
    background: #f5f5f5;
}

.favorites-copy-button {
    display: none;
}

.favorites-list {
    margin: 0 0 0 20px;
    padding-left: 20px;
}

.favorites-list li {
    margin: 2px 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

.favorites-list a {
    color: red;
}

.favorite-remove {
    margin-left: 6px;
}

.favorites-empty {
    margin: 0;
    color: #777;
}

.favorite-checkbox {
    width: 15px;
    height: 15px;
    margin: 0 5px 0 0;
    cursor: pointer;
    vertical-align: -2px;
}

.favorite-checkbox:focus {
    outline: 1px dotted #666;
}

/* ==========================================
 * 6. 사이트 목록 (온라인/오프라인)
 * ========================================== */
.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;
}

.offline-warning {
    display: inline-block;
    margin-right: 3px;
    color: #ff6666;
    font-size: 17px;
    line-height: 1;
    vertical-align: -1px;
}

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

.rating-link {
    display: inline-block;
    margin-left: 4px;
    padding: 0 4px;
    border: 1px solid #c9c9c9;
    background: #fffdf2;
    color: #555 !important;
    font-size: 12px;
    line-height: 1.45;
    vertical-align: 1px;
    white-space: nowrap;
}

.rating-link-wrap {
    display: inline;
}

.rating-link:hover {
    border-color: #999;
    background: #fff7d8;
    color: #333 !important;
    text-decoration: none;
}

.rating-summary-star {
    color: #c7c7c7;
    font-size: 14px;
    line-height: 1.45;
}

.rating-summary-star.is-active,
.rating-star-label.is-active {
    color: #219741;
}

.rating-summary-count {
    color: #555;
    font-size: 14px;
    line-height: 1.45;
}

/* ==========================================
 * Site ratings
 * ========================================== */
.rating-panel {
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #c9c9c9;
    background: #fff;
    font-size: 14px;
    line-height: 1.7;
}

.rating-site-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.rating-score-summary {
    color: #666;
    font-size: 13px;
}

.rating-site-desc {
    color: #666;
    margin-top: 4px;
}

.rating-back-link {
    margin-top: 4px;
    font-size: 13px;
}

.rating-section-title {
    font-weight: bold;
    margin-bottom: 6px;
}

.rating-section-title span {
    color: #777;
    font-weight: normal;
}

.rating-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 8px;
}

.rating-star-label {
    position: relative;
    color: #c7c7c7;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.rating-star-label input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rating-review-label {
    display: block;
    margin: 6px 0 4px;
    color: #555;
    font-size: 13px;
}

.rating-review-label span {
    color: #888;
}

.rating-panel textarea {
    width: 100%;
    padding: 7px 9px;
    border: 1px solid #999;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
}

.rating-submit {
    margin-top: 8px;
    padding: 6px 14px;
    border: 1px solid #999;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-size: 14px;
}

.rating-submit:hover {
    background: #f0f0f0;
}

.rating-notice,
.rating-error {
    margin: 10px 0;
    padding: 8px 10px;
    border: 1px solid #b7e4c7;
    background: #f0fff4;
    color: #2e7d4f;
    font-size: 13px;
}

.rating-error {
    border-color: #f0c0c0;
    background: #fff0f0;
    color: #c0392b;
}

.rating-empty {
    margin: 0;
    color: #888;
}

.review-item {
    padding: 8px 0;
    border-top: 1px solid #eee;
}

.review-item:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.review-meta {
    color: #777;
    font-size: 13px;
}

.review-content {
    color: #333;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* ==========================================
 * 7. 카테고리 헤더
 * ========================================== */
.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-button {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    line-height: 1;
}

.category-toggle-button:focus {
    outline: 1px dotted #333;
    outline-offset: 2px;
}

.toggle-label {
    display: block;
    min-width: 48px;
    color: #ffffff;
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 0;
    text-align: right;
    white-space: nowrap;
}

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

/* Keep every link in the HTML for crawlers while deferring below-fold paint. */
.public-home .category-content {
    content-visibility: auto;
    contain-intrinsic-size: auto 700px;
}

/* ==========================================
 * 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;
}

.footer-copyright a {
    color: #666;
}

/* ==========================================
 * 9. 맨 위로 버튼
 * ========================================== */
.back-to-top-button {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9998;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 2px solid #999;
    border-radius: 4px;
    background: #fff;
    color: #ff0000;
    font-size: 24px;
    font-weight: bold;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    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 {
    border-color: #ff6b6b;
    background: #fff8f8;
    color: #d60000;
}

/* ==========================================
 * 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;
}

.logo-wrapper {
    display: inline-block;
    width: 170px;
}

.logo-wrapper img {
    width: 100%;
    height: auto;
}

.logo-wrapper a {
    cursor: pointer;
}

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

/* ==========================================
 * 12. 반응형
 * ========================================== */
@media screen and (max-width: 768px) {
    .main-container {
        padding: 0 5px;
    }

    .logo-wrapper {
        width: 145px;
    }

    .nav-menu {
        gap: 4px;
    }

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

    .search-box {
        padding: 8px;
    }

    .search-box input[type="text"] {
        max-width: 150px;
    }

    .favorites-actions {
        width: 100%;
        margin-left: 0;
    }

    .favorites-copy-button {
        display: inline-block;
    }

    .favorites-export-button {
        display: none;
    }

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

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

    .main-container {
        table-layout: fixed;
    }

    .nav-menu {
        gap: 4px;
        padding: 5px 0;
    }

    .nav-menu a {
        padding: 5px 8px;
        font-size: 13px;
    }

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

    .vivo li {
        font-size: 16px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .death li {
        font-size: 16px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .recommend-links li {
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
    }

    .site-num,
    .site-num-offline {
        font-size: 16px;
    }

    .site-desc {
        font-size: 16px;
    }

    .rating-link-wrap {
        display: block;
        margin: 2px 0 0 24px;
        line-height: 1.4;
    }

    .rating-link {
        margin-left: 0;
        padding: 0 3px;
        border-color: #d8d8d8;
        background: #fff;
        color: #666 !important;
        font-size: 12px;
        line-height: 1.35;
    }

    .favorite-checkbox {
        width: 16px;
        height: 16px;
    }

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