/* 우주점빵 서브 페이지 공통 스타일 (랜딩 index.html 팔레트와 동일) */
:root {
  --bg: #12121d;
  --bg-lowest: #0d0d17;
  --surface: #1f1f2a;
  --surface-high: #292934;
  --surface-highest: #34343f;
  --text: #e4e1f0;
  --text-muted: #cbc3d7;
  --outline: #958ea0;
  --outline-variant: #494454;
  --primary: #d0bcff;
  --primary-container: #a078ff;
  --on-primary: #3c0091;
  --secondary: #7bd0ff;
  --tertiary: #d5c867;
  --radius: 0.75rem;
  --gutter: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg-lowest);
  color: var(--text);
  font-family: 'Inter', 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 18, 29, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}
.site-header .inner {
  max-width: 1200px; margin: 0 auto; height: 64px;
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand { flex-shrink: 0; }
.brand b { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 18px; white-space: nowrap; }
.brand small { font-size: 10px; letter-spacing: 0.18em; color: var(--secondary); }
.site-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  padding: 6px 12px; border-radius: 999px; white-space: nowrap;
  font-size: 13px; color: var(--text-muted);
}
.site-nav a:hover { color: var(--text); background: var(--surface-high); }
.site-nav a[aria-current="page"] { background: var(--primary-container); color: #fff; }
.header-right { display: flex; align-items: center; gap: 10px; min-width: 0; }

/* KO | EN 전환 */
.lang-switch {
  display: inline-flex; padding: 3px; border-radius: 999px; flex-shrink: 0;
  background: var(--surface-high); border: 1px solid rgba(73, 68, 84, 0.4);
}
.lang-switch button {
  border: 0; background: transparent; color: var(--text-muted); cursor: pointer;
  padding: 2px 10px; border-radius: 999px; font: inherit; font-size: 12px; font-weight: 600;
}
.lang-switch button[aria-pressed="true"] { background: var(--primary-container); color: #fff; }

/* 별빛 배경 (랜딩 첫 화면 분위기) */
.cosmos { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.cosmos canvas { position: absolute; inset: 0; }
.cosmos .glow { position: absolute; border-radius: 50%; filter: blur(130px); }
.cosmos .g1 { width: 720px; height: 720px; top: -320px; left: 50%; transform: translateX(-50%); background: rgba(160, 120, 255, 0.22); }
.cosmos .g2 { width: 500px; height: 500px; top: 35%; left: -220px; background: rgba(0, 166, 224, 0.14); }
.cosmos .g3 { width: 580px; height: 580px; bottom: -200px; right: -160px; background: rgba(185, 173, 79, 0.10); }

/* Layout */
.page { max-width: 1200px; margin: 0 auto; padding: 40px var(--gutter) 64px; }
.page-head { margin-bottom: 32px; }
.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--primary);
}
.page-head h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(26px, 5vw, 40px); line-height: 1.2; margin: 6px 0 8px;
}
.page-head p { color: var(--text-muted); margin: 0; max-width: 640px; }

.grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.card {
  display: flex; flex-direction: column;
  background: rgba(31, 31, 42, 0.78); border-radius: var(--radius);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  overflow: hidden; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform .2s, box-shadow .2s;
}
a.card:hover, .card.is-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 32px rgba(208, 188, 255, 0.2);
}
.card .thumb {
  position: relative; aspect-ratio: 16 / 9; background: var(--surface-high);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .thumb .emoji { font-size: 56px; }
.card .body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { margin: 0; font-size: 17px; }
.card p { margin: 0; font-size: 13px; color: var(--text-muted); }
.card .meta { margin-top: auto; padding-top: 8px; font-size: 12px; color: var(--outline); }

.badge {
  display: inline-block; padding: 2px 8px; border-radius: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  background: var(--surface-highest); color: var(--tertiary);
}
.badge.soon { color: var(--outline); }
.card.disabled { opacity: 0.55; }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: 10px; border: 0; cursor: pointer;
  background: var(--surface-highest); color: var(--primary);
  font: inherit; font-size: 14px; font-weight: 500;
}
.btn:hover { background: var(--primary); color: var(--on-primary); }
.btn.primary { background: var(--primary-container); color: #fff; }
.btn[aria-disabled="true"] { opacity: 0.4; pointer-events: none; }

.empty {
  padding: 48px 16px; text-align: center; color: var(--outline);
  border: 1px dashed var(--outline-variant); border-radius: var(--radius);
}
.grid > .empty { grid-column: 1 / -1; }

.site-footer {
  border-top: 1px solid rgba(73, 68, 84, 0.4);
  padding: 24px var(--gutter); text-align: center;
  font-size: 12px; color: var(--outline);
}

@media (max-width: 600px) {
  .brand small { display: none; }
  /* 모바일: 1줄 = 로고 + KO|EN, 2줄 = 메뉴 */
  .site-header .inner { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 8px; row-gap: 6px; }
  .header-right { display: contents; }
  .lang-switch { margin-left: auto; }
  .site-nav { order: 3; width: 100%; justify-content: space-between; }
  .site-nav a { padding: 6px 10px; }
  .page { padding-top: 28px; }
}
