﻿@charset "utf-8";

/* ============================================================
   /css/layout.css
   공통 레이아웃
   ============================================================ */

.site-header {
    border-bottom: 1px solid #e2e5eb;
    background: #fff;
}

.site-header-top {
    border-bottom: 1px solid #edf0f4;
    background: #fafbfc;
}

.site-header-top .container {
    display: flex;
    justify-content: flex-end;
    min-height: 34px;
    align-items: center;
}

.top-links {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #666;
    font-size: 12px;
}

.site-header-main .container {
    display: grid;
    grid-template-columns: 220px minmax(300px, 1fr) 260px;
    align-items: center;
    gap: 24px;
    min-height: 82px;
}

.site-logo {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -1px;
    color: #234fba;
}

.site-search {
    position: relative;
}

.site-search-form {
    display: flex;
    width: 100%;
    height: 42px;
    border: 2px solid #2f64d6;
    border-radius: 5px;
    overflow: hidden;
}

.site-search-form input {
    min-width: 0;
    flex: 1;
    padding: 0 12px;
    border: 0;
    outline: none;
    font-size: 14px;
}

.site-search-form button {
    width: 56px;
    border: 0;
    background: #2f64d6;
    color: #fff;
    font-weight: 700;
}

.header-userbox {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.header-user-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-circle-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(38, 57, 109, 0.14);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.header-circle-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(38, 57, 109, 0.18);
    text-decoration: none;
    opacity: 0.95;
}

.header-profile-link {
    background: linear-gradient(135deg, #1fc15e 0%, #12a44a 100%);
    color: #fff;
}

.header-profile-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.header-notification-link {
    background: linear-gradient(135deg, #377cff 0%, #2f64d6 100%);
    color: #fff;
}

.header-bell-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.header-bell-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.header-notification-badge {
    position: absolute;
    top: -4px;
    right: -3px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #ff5a5f;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 14px;
    text-align: center;
    box-sizing: border-box;
}

.site-nav {
    border-top: 1px solid #edf0f4;
    background: #fff;
}

.site-nav .container {
    display: flex;
    align-items: center;
    min-height: 44px;
}

.main-menu {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 15px;
    font-weight: 600;
}

.main-menu a {
    display: block;
    padding: 12px 0;
}

.mobile-menu-button {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid #d8dce5;
    border-radius: 4px;
    background: #fff;
}

.recent-gallery-bar {
    border-bottom: 1px solid #e6e9ef;
    background: #f7f9fc;
}

.recent-gallery-bar .container {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 38px;
    overflow: hidden;
}

.recent-label {
    flex: 0 0 auto;
    color: #555;
    font-weight: 700;
    font-size: 12px;
}

.recent-list {
    display: flex;
    min-width: 0;
    gap: 12px;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}

.recent-list::-webkit-scrollbar {
    display: none;
}

.recent-list a {
    color: #555;
    font-size: 12px;
}

.site-main {
    min-height: 600px;
    padding: 20px 0 40px;
}

.site-footer {
    margin-top: 40px;
    border-top: 1px solid #dfe3ea;
    background: #f8f9fb;
}

.footer-menu {
    border-bottom: 1px solid #e3e6ec;
}

.footer-menu .container {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    min-height: 42px;
    align-items: center;
    color: #555;
    font-size: 12px;
}

.footer-info {
    padding: 14px 16px 20px;
    color: #777;
    font-size: 12px;
    line-height: 1.7;
}

.mobile-drawer {
    display: none;
}

.overlay {
    display: none;
}


/* ============================================================
   STEP32 - IMAGE LOGO / MY PAGE PERSON ICON
   ============================================================ */

.site-logo.has-image {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    max-width: 220px;
    height: 44px;
    line-height: 1;
}

.site-logo.has-image img {
    display: block;
    width: auto;
    max-width: 220px;
    height: auto;
    max-height: 42px;
    object-fit: contain;
}

.header-profile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #fff;
}

.header-profile-icon svg {
    display: block;
    width: 20px;
    height: 20px;
}


/* ============================================================
   FOOTER MOBILE FIX 2026-10-12
   실제 flex 컨테이너(.footer-menu .container)에 적용
   ============================================================ */

@media (max-width: 760px) {

    .footer-menu {
        overflow: hidden;
    }

    .footer-menu .container {
        display: flex;
        width: 100%;
        max-width: none;
        min-height: 42px;
        align-items: center;
        flex-wrap: nowrap;
        gap: 16px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 16px;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .footer-menu .container::-webkit-scrollbar {
        display: none;
    }

    .footer-menu .container a {
        flex: 0 0 auto;
    }

    .footer-info {
        padding: 12px 16px 16px;
        font-size: 11px;
        line-height: 1.65;
    }
}


/* ============================================================
   MOBILE FOOTER DESIGN V2
   푸터 메뉴 + 사이트정보를 모바일 카드형으로 정리
   ============================================================ */

@media (max-width: 760px) {

    .site-footer {
        margin-top: 28px;
        padding-bottom: 12px;
        border-top: 1px solid #e3e7ec;
        background: #f5f7fa;
    }

    .footer-menu {
        overflow: hidden;
        border-bottom: 0;
        background: #fff;
    }

    .footer-menu .container {
        display: flex;
        width: 100%;
        max-width: none;
        min-height: auto;
        align-items: center;
        flex-wrap: nowrap;
        gap: 7px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 10px 14px;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .footer-menu .container::-webkit-scrollbar {
        display: none;
    }

    .footer-menu .container a {
        display: inline-flex;
        flex: 0 0 auto;
        min-height: 30px;
        align-items: center;
        justify-content: center;
        padding: 0 10px;
        border: 1px solid #e1e6ec;
        border-radius: 999px;
        background: #fafbfd;
        color: #566371;
        font-size: 10px;
        font-weight: 600;
    }

    .footer-menu .container a:active {
        background: #eef4fb;
        color: #2f659f;
    }

    .footer-info {
        width: calc(100% - 28px);
        max-width: none;
        margin: 10px auto 0;
        padding: 16px 15px 16px;
        border: 1px solid #e1e6ec;
        border-radius: 10px;
        background: #fff;
        color: #76818d;
        font-size: 10px;
        line-height: 1.55;
    }

    .footer-info > div {
        margin-top: 3px;
    }

    .footer-info > div:first-child {
        margin-top: 0;
        margin-bottom: 7px;
    }

    .footer-info strong {
        color: #3f4b58;
        font-size: 11px;
        font-weight: 800;
    }

    .footer-info > div:last-child {
        margin-top: 9px;
        padding-top: 8px;
        padding-bottom: 2px;
        border-top: 1px solid #edf0f3;
        color: #97a0aa;
        font-size: 9px;
    }
}


/* ============================================================
   MOBILE FOOTER SPACING V4
   mobile.css의 .container padding 덮어쓰기 방지
   ============================================================ */

@media (max-width: 760px) {

    .site-footer .footer-info {
        width: calc(100% - 28px);
        max-width: none;
        margin: 10px auto 0;
        padding: 18px 15px 18px;
    }

    .site-footer .footer-info > div:first-child {
        margin-top: 0;
        margin-bottom: 7px;
    }

    .site-footer .footer-info > div:last-child {
        margin-top: 9px;
        padding-top: 8px;
        padding-bottom: 4px;
    }
}

