/* ===========================
   SMOP LAB — Monochrome
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700&display=swap');

:root {
  --navy:     #0a1628;
  --navy-mid: #0f2040;
  --ink:      #1e293b;
  --gray-700: #334155;
  --gray-600: #475569;
  --gray-400: #94a3b8;
  --gray-300: #cbd5e1;
  --gray-200: #e2e8f0;
  --gray-100: #f1f5f9;
  --gray-50:  #f8fafc;
  --white:    #ffffff;

  --font-heading: 'Noto Sans KR', sans-serif;
  --font-body:    'Noto Sans KR', sans-serif;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 20px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.12);

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-full: 9999px;

  --ease: cubic-bezier(.4,0,.2,1);
  --transition: .2s var(--ease);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: #ffffff;
  line-height: 1.75;
  font-size: 1.1rem;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── NAVBAR ───────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 2rem; height: 68px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.nav-logo-img { height: 52px; width: auto; display: block; flex-shrink: 0; min-width: unset; }
.nav-links { display: flex; gap: .1rem; }
.nav-links a {
  font-family: var(--font-heading);
  font-size: .95rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray-500);
  padding: .45rem .9rem;
  border-bottom: 3px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a.active { color: var(--navy); border-bottom-color: #7c2d12; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: var(--transition); border-radius: 2px; }

/* ── FOOTER ───────────────────────── */
footer { background: #F4F5F4; padding: 3.5rem 2rem 2rem; }
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem; padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--gray-200);
}
.footer-brand { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; color: var(--navy); margin-bottom: .5rem; }
.footer-tagline { font-size: .88rem; color: var(--gray-600); line-height: 1.7; margin-bottom: 1rem; }
.footer-info { font-size: .85rem; color: var(--gray-600); line-height: 1.9; }
.footer-info a:hover { color: var(--navy); }
.footer-col h4 { color: var(--gray-400); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col li { margin-bottom: .45rem; }
.footer-col a { font-size: .88rem; color: var(--gray-600); transition: color var(--transition); }
.footer-col a:hover { color: var(--navy); }
.footer-copy { max-width: 1200px; margin: 1.5rem auto 0; font-size: .8rem; color: var(--gray-400); }

/* ── SECTION ──────────────────────── */
section { padding: 6rem 2rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 700; color: var(--navy);
  line-height: 1.15; letter-spacing: -.2px; margin-bottom: .75rem;
}

/* ── BUTTONS ──────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-body); font-weight: 600;
  font-size: .95rem; border-radius: var(--radius-xs);
  padding: .7rem 1.5rem; cursor: pointer;
  border: none; transition: all var(--transition); white-space: nowrap;
}
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--gray-300); }
.btn-outline:hover { background: var(--gray-100); border-color: var(--navy); }

/* ── CARD ─────────────────────────── */
.card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-md); padding: 1.85rem;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--gray-300); }

/* ── TAGS ─────────────────────────── */
.tag {
  display: inline-flex; align-items: center;
  font-size: .72rem; font-weight: 600; letter-spacing: .02em;
  padding: .22rem .65rem; border-radius: var(--radius-full);
  background: var(--gray-100); color: var(--gray-600);
  border: 1px solid var(--gray-200); white-space: nowrap;
}
/* 모든 컬러 태그를 동일하게 */
.tag-blue, .tag-teal, .tag-green, .tag-purple, .tag-orange { background: var(--gray-100); color: var(--gray-600); border-color: var(--gray-200); }

/* ── PAGE HEADER ──────────────────── */
.page-header {
  background: var(--white);
  padding: 4rem 2rem 3rem;
  border-bottom: 1px solid var(--gray-200);
}
.page-header-inner { max-width: 1200px; margin: 0 auto; }
.page-header .label { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gray-400); margin-bottom: 1rem; }
.page-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 700; line-height: 1.1; color: #215F9A;
}
.page-header p { margin-top: .75rem; font-size: 1rem; color: var(--gray-500); max-width: 560px; line-height: 1.75; }
.page-header p:empty { display: none; }   /* 설명문이 비어 있으면 빈 줄이 생기지 않도록 */
.breadcrumb { display: flex; align-items: center; gap: .4rem; font-size: .78rem; color: var(--gray-300); margin-bottom: 1.25rem; }
.breadcrumb a { color: var(--gray-400); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb span { color: var(--gray-200); }

/* ── POPUP ────────────────────────────
   공지 팝업(구석) · 축하 팝업(가운데) 공용 스타일.
   내용은 data/notice.js · data/celebration.js 에서 수정하세요. */

/* 공통 요소 */
.pop-x {
  position: absolute; top: .6rem; right: .7rem;
  width: 28px; height: 28px; border: none; background: none;
  color: var(--gray-400); font-size: .95rem; cursor: pointer; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.pop-x:hover { background: var(--gray-100); color: var(--navy); }
.pop-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 1.2rem; padding-top: .8rem; border-top: 1px solid var(--gray-200);
}
.pop-today { display: flex; align-items: center; gap: .4rem; font-size: .82rem; color: var(--gray-500); cursor: pointer; }
.pop-today input { cursor: pointer; }
.pop-close {
  border: none; background: var(--navy); color: #fff;
  font-family: var(--font-body); font-size: .85rem; font-weight: 600;
  padding: .5rem 1.25rem; border-radius: var(--radius-xs); cursor: pointer;
  transition: background var(--transition);
}
.pop-close:hover { background: var(--ink); }

/* ① 공지 팝업 — 화면 구석에 떠 있음 (배경을 가리지 않음) */
.pop-corner {
  position: fixed; bottom: 24px; z-index: 9990;
  width: 330px; background: var(--white);
  border-radius: 8px; border-top: 4px solid #80350E;
  box-shadow: 0 12px 40px rgba(0,0,0,.22);
  padding: 1.6rem 1.4rem 1rem;
}
.pop-corner-left  { left: 24px; }
.pop-corner-right { right: 24px; }
.pop-label { font-size: .68rem; font-weight: 700; letter-spacing: .14em; color: #80350E; }
.pop-corner .pop-title {
  font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem;
  color: var(--navy); margin-top: .35rem; line-height: 1.45;
}
.pop-body { font-size: .88rem; color: var(--gray-600); line-height: 1.8; margin-top: .6rem; }
.pop-link {
  display: inline-block; margin-top: 1rem;
  font-size: .85rem; font-weight: 600; color: #80350E;
  border: 1.5px solid #80350E; border-radius: var(--radius-xs);
  padding: .45rem 1.1rem; transition: all var(--transition);
}
.pop-link:hover { background: #80350E; color: #fff; }

/* ② 축하 팝업 — 화면 가운데, 배경 어둡게 */
.pop-dim {
  position: fixed; inset: 0; z-index: 9995;
  background: rgba(10,18,32,.6);
  display: flex; align-items: center; justify-content: center; padding: 1.25rem;
}
.pop-card {
  position: relative; background: var(--white);
  width: 100%; max-width: 430px; max-height: 88vh; overflow-y: auto;
  border-radius: 12px; box-shadow: 0 24px 70px rgba(0,0,0,.35);
}
.pop-card-top {
  background: linear-gradient(135deg, #215F9A, #16406e);
  color: #fff; text-align: center; padding: 1.8rem 1.5rem 1.4rem;
}
.pop-card .pop-x { color: rgba(255,255,255,.8); }
.pop-card .pop-x:hover { background: rgba(255,255,255,.2); color: #fff; }
.pop-emoji { font-size: 2rem; line-height: 1; }
.pop-card-title { font-family: var(--font-heading); font-weight: 700; font-size: 1.35rem; margin-top: .6rem; }
.pop-card-sub { font-size: .85rem; color: rgba(255,255,255,.8); margin-top: .3rem; }
.pop-card-body { padding: 1.5rem; }
.pop-people { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.pop-person { text-align: center; }
.pop-person img {
  width: 72px; height: 90px; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--gray-200);
}
.pop-person-noimg {
  width: 72px; height: 90px; border-radius: 8px;
  background: var(--gray-100); border: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--gray-400);
}
.pop-person-name { font-weight: 700; font-size: .95rem; color: var(--navy); margin-top: .5rem; }
.pop-person-degree { font-size: .78rem; color: var(--gray-500); margin-top: .1rem; }
.pop-message { text-align: center; font-size: .9rem; color: var(--gray-600); line-height: 1.8; margin-top: 1.2rem; }
.pop-card .pop-foot { margin: 0 1.5rem 1.1rem; }

/* ③ 이미지 팝업 — 직접 만든 현수막 이미지를 그대로 표시 */
.pop-banner {
  position: relative; background: var(--white);
  width: 100%; border-radius: 10px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.pop-banner-img { display: block; width: 100%; height: auto; }
.pop-banner .pop-foot { margin: 0 1.1rem; padding: .7rem 0; }
.pop-banner .pop-x {
  background: rgba(255,255,255,.9); color: var(--gray-500);
  box-shadow: 0 1px 6px rgba(0,0,0,.2);
}
.pop-banner .pop-x:hover { background: #fff; color: var(--navy); }
.pop-banner-corner {
  position: fixed; right: 24px; bottom: 24px; z-index: 9990;
}

@media (max-width: 480px) {
  .pop-corner { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .pop-banner-corner { left: 12px; right: 12px; bottom: 12px; }
  .pop-card-title { font-size: 1.2rem; }
  .pop-foot { flex-direction: column-reverse; align-items: stretch; gap: .7rem; }
  .pop-close { width: 100%; }
  .pop-today { justify-content: center; }
}

/* ── RESPONSIVE ───────────────────── */
@media (max-width: 960px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section-title { font-size: 1.6rem; }
  section { padding: 4rem 1.25rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .nav-links {
    display: none; flex-direction: column;
    position: fixed; top: 68px; left: 0; right: 0;
    background: var(--white); padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}
