/* ========================================
   공통 스타일
   SITE_WIDTH, MOBILE_BREAKPOINT → config.php
   ======================================== */

:root {
    --site-width: 980px;
    --mobile-bp: 768px;
    --color-primary: #1a4d62;
    --color-primary-dark: #123a4a;
    --color-text: #333;
    --color-text-light: #666;
    --color-bg: #f5f5f5;
    --color-white: #fff;
    --color-footer-bg: #3a3f47;
    --color-footer-text: #ccc;
    --font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans KR', sans-serif;
    --header-height: 60px;
    --radius: 12px;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* 컨테이너 — 너비 변경 시 :root --site-width 만 수정 */
.container {
    width: 100%;
    max-width: var(--site-width);
    margin: 0 auto;
    padding: 0 20px;
}

.main-content {
    flex: 1;
}

/* ========================================
   헤더
   ======================================== */
.site-header {
    background: var(--color-white);
    border-bottom: 1px solid #e8e8e8;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.site-logo a {
    display: flex;
    align-items: center;
}

.site-logo-img {
    display: block;
    height: 38px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.header-utils {
    display: flex;
    align-items: center;
    gap: 16px;
}

.manager-login {
    font-size: 0.875rem;
    color: var(--color-text-light);
    transition: color 0.2s;
}

.manager-login:hover {
    color: var(--color-primary);
}

.btn-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    padding: 4px;
}

.btn-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.btn-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.btn-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.btn-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
    display: none;
    background: var(--color-white);
    border-top: 1px solid #e8e8e8;
}

.mobile-nav.open {
    display: block;
}

.mobile-nav ul li a {
    display: block;
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
}

.mobile-nav ul li a:hover {
    background: #f9f9f9;
    color: var(--color-primary);
}

/* ========================================
   푸터
   ======================================== */
.site-footer {
    background: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: 36px 0 40px;
    margin-top: 40px;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 20px;
}

.footer-brand {
    font-size: 1.1rem;
    color: var(--color-white);
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--color-footer-text);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-info p {
    font-size: 0.8rem;
    line-height: 1.8;
    color: #aaa;
}

/* ========================================
   반응형 — 768px 이하 모바일
   ======================================== */
@media (max-width: 768px) {
    .btn-menu-toggle {
        display: flex;
    }

    .manager-login {
        display: none;
    }

    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .footer-links {
        gap: 16px;
    }

    .footer-info p {
        font-size: 0.75rem;
        word-break: keep-all;
    }
}
