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

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

:root {
  --orange: #FF6B35;
  --yellow: #FFD23F;
  --green:  #06D6A0;
  --blue:   #118AB2;
  --pink:   #EF476F;
  --dark:   #1a1a2e;
  --mid:    #16213e;
  --light:  #f8f6f0;
  --white:  #ffffff;
  --muted:  #666666;
  --card-r: 16px;
  --sm-r:   8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans KR', sans-serif;
  background: var(--light);
  color: var(--dark);
  min-height: 100vh;
}

/* ── SHARED HEADER ── */
header {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px;
  border-bottom: 2px solid var(--yellow);
  font-size: 11px;
  color: #aaa;
}

.header-date { color: var(--yellow); font-weight: 500; }

.nav-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.nav-pill {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, opacity 0.15s;
  font-family: 'Noto Sans KR', sans-serif;
  text-decoration: none;
  display: inline-block;
}
.nav-pill:hover { transform: scale(1.06); opacity: 0.85; }
.np-orange { background: var(--orange); color: #fff; }
.np-green  { background: var(--green);  color: #fff; }
.np-blue   { background: var(--blue);   color: #fff; }
.np-pink   { background: var(--pink);   color: #fff; }

.masthead {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 16px 20px 14px;
}

.logo-block { flex: 1; }
.logo-link { text-decoration: none; display: inline-block; }

.logo-flag {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.logo-main {
  font-family: 'Black Han Sans', sans-serif;
  font-size: clamp(28px, 8vw, 52px);
  color: #fff;
  line-height: 1;
  letter-spacing: -1px;
}
.logo-main span { color: var(--yellow); }
.logo-sub { font-size: 11px; color: #aaa; margin-top: 4px; letter-spacing: 2px; }

.header-right { text-align: right; }

.issue-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--dark);
  font-size: 11px;
  font-weight: 900;
  padding: 5px 12px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 22px;
  padding: 6px 14px;
}
.search-wrap input {
  background: none;
  border: none;
  color: #fff;
  font-size: 12px;
  width: 150px;
  outline: none;
  font-family: 'Noto Sans KR', sans-serif;
}
.search-wrap input::placeholder { color: #888; }

.ticker-bar {
  background: var(--orange);
  padding: 7px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}
.ticker-label {
  background: #fff;
  color: var(--orange);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  letter-spacing: 1px;
  flex-shrink: 0;
}
.ticker-track { overflow: hidden; flex: 1; }
.ticker-text {
  display: inline-block;
  white-space: nowrap;
  font-size: 12px;
  color: #fff;
  font-weight: 500;
  animation: ticker 28s linear infinite;
}
@keyframes ticker {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ── BOTTOM NAV ── */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--dark);
  display: flex;
  justify-content: space-around;
  padding: 8px 0 14px;
  border-top: 2px solid rgba(255,255,255,0.08);
  z-index: 200;
}
.bnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  padding: 4px 12px;
  border-radius: var(--sm-r);
  transition: background 0.15s;
  text-decoration: none;
}
.bnav-item:hover { background: rgba(255,255,255,0.06); }
.bnav-icon  { font-size: 20px; }
.bnav-label { font-size: 9px; color: #888; font-weight: 500; }
.bnav-item.active .bnav-label { color: var(--yellow); }
.bnav-dot {
  width: 4px; height: 4px;
  background: var(--yellow);
  border-radius: 50%;
  display: none;
}
.bnav-item.active .bnav-dot { display: block; }

/* ── FAB ── */
.fab {
  position: fixed;
  bottom: 76px; right: 18px;
  width: 52px; height: 52px;
  background: var(--orange);
  border: none;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.2s;
  z-index: 300;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(255,107,53,0.35);
}
.fab:hover { transform: scale(1.1) rotate(12deg); }

/* ── REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 480px) {
  .nav-pills { display: none; }
  .search-wrap input { width: 100px; }
  .header-right .issue-badge { display: none; }
}
