@charset "UTF-8";

@import url('./_fonts.css');
@import url('./_resets.css');
@import url('./_commons.css');
@import url('./_admin.css');


/* 모든 페이지 공통요소 */
body {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;

    main {
        flex: 1;
        padding-left: 20px;
        padding-right: 20px;
    }

    footer {
        border-top: 2px solid #0D1938;
        margin-left: 20px;
        margin-right: 20px;
        padding: 20px 0;
        color: #555;
        font-size: 14px;
        text-align: center;
        margin-top: 40px;
        position: relative;
    }

    section {
        text-align: center;
        font-family: 'NanumSquareNeo', sans-serif;

        >h2 {
            font-size: 24px;
            font-weight: 400;
            color: #2e2e2e;
            padding-top: 30px;
            margin-bottom: 5px;
        }

        >p {
            margin-bottom: 10px;
            color: #666;
            word-break: keep-all;
        }
    }
}

/* 헤더 영역 */
.header-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;

    h1 {
        a {
            display: flex;
            align-items: center;
            border-radius: 10px;
            padding: 5px 10px;

            img {
                width: 120px;
            }
        }
    }

    .header-btn {
        display: flex;

        div {
            width: 40px;
            height: 40px;
            position: relative;

            a {
                display: inline-block;
                width: 100%;
                height: 100%;
                text-align: center;
                border-radius: 10px;
                background-color: transparent;
                background-repeat: no-repeat;
                background-position: center;
                background-size: 24px 24px;
                transition: background-color 400ms ease;

                span {
                    width: 80px;
                    height: 30px;
                    position: absolute;
                    left: -50px;
                    top: 54px;
                    border: 2px solid #0D1938;
                    display: inline-block;
                    background: #fff;
                    color: #0D1938;
                    font-weight: 600;
                    opacity: 0;
                    visibility: hidden;
                    transition: all 0.25s ease;
                }

                span::before {
                    content: '';
                    position: absolute;
                    bottom: 27px;
                    left: 62px;
                    border-width: 8px;
                    border-style: solid;
                    border-color: transparent transparent #0D1938 transparent;
                    opacity: 1;
                }
            }

            a:hover {
                span {
                    top: 45px;
                    opacity: 1;
                    visibility: visible;
                    background: #fff;
                }
            }

            .plus {
                background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%230D1938' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719'/><path d='M8 12h8'/><path d='M12 8v8'/></svg>");
            }

            .email {
                background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%230D1938' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M22 13V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h8'/><path d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/><path d='M19 16v6'/><path d='M16 19h6'/></svg>");

            }
        }
    }
}

/* 검색 영역 */
.search-group {
    width: 100%;
    border: 2px solid #0D1938;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 70px;
    border-radius: 50px;
    padding: 0 10px;

    h1 {
        padding-left: 20px;

        img {
            width: 110px;
            display: block;
        }
    }

    form {
        flex: 1;

        fieldset {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        input[type="text"] {
            flex: 1;
            width: 100%;
            padding: 10px 20px;
            font-size: 20px;
            border-radius: 20px;
            outline: none;
        }

        .search-btn {
            flex: 0 0 auto;
            width: 50px;
            height: 50px;
            background-color: #0D1938;
            padding: 10px 20px;
            border-radius: 50px;
            background-repeat: no-repeat;
            background-position: center;
            background-size: 24px 24px;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' stroke='white' fill='none' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M21 21L16.65 16.65M19 11C19 15.42 15.42 19 11 19C6.58 19 3 15.42 3 11C3 6.58 6.58 3 11 3C15.42 3 19 6.58 19 11Z'/%3E%3C/svg%3E");

            &:hover {
                background-color: #12265a;
            }
        }
    }
}

/* 카테고리 영역 */
.category-group {
    ul {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        margin-top: 40px;

        @media (max-width: 768px) {
            grid-template-columns: repeat(2, 1fr);
        }

        li {
            text-align: center;
            transition: all 0.2s ease;

            a {
                display: block;
                border: 1px solid var(--color);
                border-radius: 5px;
                padding: 20px;
            }
        }

        li:hover {
            background-color: color-mix(in srgb, var(--color) 15%, white);
            border-color: color-mix(in srgb, var(--color) 80%, white);
            transform: translateY(-3px);
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
        }

        .category-icon {
            font-size: 30px;
            margin-bottom: 2px;
        }

        .category-info {
            color: #555;
            font-size: 15px;
        }
    }
}

/* 카테고리 리스트 */
.category-list {
    text-align: left;
    margin-top: 20px;
    font-size: 15px;

    ul {
        border-top: 2px solid #0D1938;
    }

    li {
        border-bottom: 1px solid #eaeaea;
        transition: all 0.2s ease;

        a {
            padding: 10px;
            display: flex;
            color: #444;
            font-weight: 500;

            .index {
                width: 40px;
            }

            .num {
                width: 150px;

            }

            .title {
                font-weight: 500;
            }

            .red {
                color: red;
            }

            .badge {
                width: 73px;
                color: #fff;
                padding: 3px 10px;
                border-radius: 4px;
                font-size: 0.75rem;
                margin-right: 16px;
                text-align: center;
            }

            .meta {
                color: #555;
                margin-left: auto;
                display: flex;
                align-items: center;

                .view {
                    display: inline-block;
                    width: 20px;
                    height: 20px;
                    display: inline-block;
                    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'><path d='M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0'/><circle cx='12' cy='12' r='3'/></svg>") no-repeat center;
                    background-size: 90% 90%;
                    margin-right: 3px;

                }

                .date {
                    display: inline-block;
                    width: 20px;
                    height: 20px;
                    display: inline-block;
                    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'><path d='M8 2v4'/><path d='M16 2v4'/><rect width='18' height='18' x='3' y='4' rx='2'/><path d='M3 10h18'/><path d='m9 16 2 2 4-4'/></svg>") no-repeat center;
                    background-size: 90% 90%;
                    margin-right: 3px;
                    margin-left: 16px;
                }
            }
        }

        :hover {
            background-color: #efefef;
        }
    }

    .no-category {
        border-top: 2px solid #0D1938;
        padding: 20px;
        border-bottom: 1px solid #ccc;
        text-align: center;
    }


    @media (max-width: 768px) {
        li a {
            flex-direction: column;
            align-items: flex-start;
            gap: 4px;
            font-weight: 700;

            .title {
                font-weight: 700;
                text-decoration: underline;
                text-underline-offset: 4px;
            }

            .meta {
                margin-left: 0;
                margin-top: 4px;
                font-size: 13px;
            }
        }
    }
}

/* 넘버 페이지 */
.number-group {
    width: 100%;
    margin: 20px auto 0;
    padding: 30px 20px;
    text-align: center;
    border-radius: 20px;
    background-color: #F1F6F9;

    .number {
        font-size: 2rem;
        font-weight: 700;
        color: #0D1938;
    }

    .sub-number {
        font-size: 1.2rem;
        color: #0D1938;
        margin-bottom: 5px;
    }

    /* 모바일에서 sub-number 폰트 크기 조정 */
    @media (max-width: 768px) {
        .sub-number {
            font-size: 1rem;
        }
    }

    .title {
        font-size: 1.1rem;
        color: #555;
        margin-bottom: 10px;
    }

    .category-badge {
        display: inline-block;
        padding: 4px 12px;
        border-radius: 999px;
        font-size: 0.9rem;
        color: #fff;
        margin-top: 5px;
    }

    .number-info {
        display: flex;
        justify-content: center;
        gap: 24px;
        margin-top: 20px;
        padding-left: 20px;

        .info-box {
            display: flex;
            flex-direction: column;
            align-items: center;
            font-size: 0.9rem;
            color: #555;

            strong {
                color: #111;
                margin-top: 2px;
            }

            .view,
            .date {
                width: 22px;
                height: 22px;
                display: inline-block;
                background-size: 90%;
                background-position: center;
                background-repeat: no-repeat;
                margin-bottom: 6px;
            }

            .view {
                background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%230D1938' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'><path d='M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0'/><circle cx='12' cy='12' r='3'/></svg>");
            }

            .date {
                background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%230D1938' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'><path d='M8 2v4'/><path d='M16 2v4'/><rect width='18' height='18' x='3' y='4' rx='2'/><path d='M3 10h18'/><path d='m9 16 2 2 4-4'/></svg>");
            }
        }
    }

    .number-desc {
        margin-top: 20px;

        p {
            word-break: keep-all;
        }
    }
}

/* 댓글 영역 */
.comment-group {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    text-align: left;
    margin-top: 20px;

    @media (max-width: 768px) {
        padding: 20px;
    }

    .comment-list {
        .no-comments {
            margin-bottom: 20px;
        }
    }


    .comment-title {
        font-size: 1.4rem;
        font-weight: 600;
        color: #0D1938;
        margin-bottom: 15px;
        margin-top: 0;
    }

    .comment-item {
        display: flex;
        gap: 12px;
        margin-bottom: 20px;
        border-bottom: 1px solid #e9ecef;
        padding-bottom: 20px;

        .comment-avatar {
            flex-shrink: 0;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: #ffffff;
            border: 2px solid #000;

            img {
                width: 100%;
                height: 100%;
            }
        }


        .comment-content {
            flex: 1;
        }

        .comment-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 3px;

            .author {
                font-weight: 700;
                color: #0D1938;
                font-size: 0.95rem;
            }

            .date {
                font-size: 0.85rem;
                color: #999;
            }
        }

        .comment-text {
            color: #333;
            line-height: 1.5;
            font-size: 0.95rem;
        }
    }

    .comment-add {

        >h4 {
            font-size: 1.1rem;
            font-weight: 600;
            color: #0D1938;
            margin-bottom: 10px;
        }

        .comment-form {

            textarea {
                width: 100%;
                min-height: 100px;
                padding: 12px;
                border: 1px solid #ddd;
                border-radius: 8px;
                font-size: 0.95rem;
                resize: vertical;
            }

            div {
                display: flex;
                gap: 8px;
                justify-content: end;

                input {
                    width: 100%;
                    border: 1px solid #ddd;
                    border-radius: 8px;
                    font-size: 0.95rem;
                    padding: 12px;
                }

                .comment-btn {
                    width: 140px;
                    height: 48px;
                    background: #0D1938;
                    color: #fff;
                    border-radius: 5px;
                    font-size: 0.9rem;
                    padding: 0 10px;
                    word-break: keep-all;
                }
            }
        }
    }
}

/* 검색 페이지 */
.search-result {
    .result-count {
        background: #e9ecef;
        padding: 10px 15px;
        border-radius: 6px;
        margin-bottom: 20px;
        font-weight: 500;
        color: #0D1938;
    }

    .no-results {
        background: #e9ecef;
        text-align: center;
        padding: 10px 15px;
        border-radius: 6px;
        color: #666;
        margin-bottom: 20px;
    }
}

/* 제보하기 영역 */
.report-group {
    width: 100%;
    max-width: 400px;
    margin: 30px auto;
    background-color: #f1f1f1;
    border-radius: 20px;
    padding: 30px;

    .report-number {
        height: 50px;
        margin-bottom: 10px;
        font-size: 32px;
        font-weight: 900;
        font-family: "GmarketSans";
        overflow: hidden;
        width: 100%;
        text-align: center;
        background: transparent;
        color: #333;
    }

    .report-title {
        margin-bottom: 20px;
        width: 100%;
        height: 50px;
        text-align: center;
        border-radius: 50px;
    }

    .report-pad {
        display: grid;
        grid-template-columns: repeat(3, 80px);
        gap: 10px;
        justify-content: center;

        button {
            display: inline-block;
            width: 80px;
            height: 80px;
            border-radius: 50px;
            background-color: #ffecec;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 40px;
            outline: none;
            font-size: 24px;
            font-family: "GmarketSans";
            font-weight: normal;
            color: #fff;
            background: linear-gradient(145deg, #0A1530 0%, #0D1938 50%, #11287d 100%);
            box-shadow: -4px -4px 10px -8px rgb(0, 0, 0), 4px 4px 10px -8px rgba(0, 0, 0, .3);
        }

        button:active {
            box-shadow: -4px -4px 10px -7px rgb(255, 255, 255) inset, 4px 4px 10px -8px rgba(255, 0, 0, 0.3) inset;
        }
    }
}