﻿@charset "utf-8";

/* ============================================================
   /css/mobile.css
   모바일 반응형
   ============================================================ */

@media (max-width: 900px) {

    .container {
        padding: 0 12px;
    }

    .site-header-top {
        display: none;
    }

    .site-header-main .container {
        grid-template-columns: 40px minmax(0, 1fr) auto;
        gap: 10px;
        min-height: 60px;
    }

    .mobile-menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .site-logo {
        font-size: 21px;
    }

    .site-search {
        display: none;
    }

    .header-userbox .btn {
        min-height: 32px;
        padding: 0 10px;
    }

    .header-user-actions {
        gap: 8px;
    }

    .header-circle-link {
        width: 36px;
        height: 36px;
    }

    .header-profile-avatar {
        font-size: 15px;
    }

    .header-bell-icon,
    .header-bell-icon svg {
        width: 16px;
        height: 16px;
    }

    .header-notification-badge {
        top: -3px;
        right: -2px;
        min-width: 16px;
        height: 16px;
        padding: 0 3px;
        font-size: 9px;
        line-height: 12px;
    }

    .site-nav {
        display: none;
    }

    .recent-gallery-bar .container {
        min-height: 36px;
    }

    .site-main {
        padding-top: 14px;
    }

    .board-table {
        display: none;
    }

    .board-list-mobile {
        display: block;
        border-top: 2px solid #44516b;
    }

    .gallery-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .board-bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .board-search {
        width: 100%;
    }

    .board-search select {
        width: 95px;
    }

    .board-search input {
        min-width: 0;
        flex: 1;
    }

    .post-view-title {
        padding-left: 4px;
        padding-right: 4px;
        font-size: 18px;
    }

    .post-view-meta {
        padding-left: 4px;
        padding-right: 4px;
    }

    .post-view-content {
        padding-left: 4px;
        padding-right: 4px;
    }

    .mobile-drawer {
        position: fixed;
        top: 0;
        left: -290px;
        z-index: 1001;
        display: block;
        width: 280px;
        height: 100%;
        padding: 18px;
        background: #fff;
        box-shadow: 4px 0 14px rgba(0, 0, 0, 0.15);
        transition: left 0.2s ease;
    }

    .mobile-drawer.open {
        left: 0;
    }

    .mobile-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 16px;
        padding-bottom: 12px;
        border-bottom: 1px solid #e4e7ec;
    }

    .mobile-drawer-menu a {
        display: block;
        padding: 11px 4px;
        border-bottom: 1px solid #f0f1f4;
        font-size: 15px;
    }

    .overlay {
        position: fixed;
        inset: 0;
        z-index: 1000;
        background: rgba(0, 0, 0, 0.45);
    }

    .overlay.show {
        display: block;
    }
}


/* STEP32 - mobile image logo / profile icon */
@media (max-width: 820px) {

    .site-logo.has-image {
        max-width: 142px;
        height: 36px;
    }

    .site-logo.has-image img {
        max-width: 142px;
        max-height: 34px;
    }

    .header-profile-icon,
    .header-profile-icon svg {
        width: 17px;
        height: 17px;
    }
}


.mobile-drawer-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    text-decoration: none;
}

.mobile-drawer-brand img {
    display: block;
    width: auto;
    max-width: 150px;
    height: auto;
    max-height: 34px;
    object-fit: contain;
}
