/* VS서북 - 2026 Trendy Design */

:root{
  --bg:#eef1f6;
  --surface:#ffffff;
  --surface2:#e4e8f0;
  --line:rgba(15,23,42,.07);
  --text:#0f172a;
  --muted:#64748b;
  --accent:#6366f1;
  --accent2:#8b5cf6;
  --good:#16a34a;
  --warn:#d97706;
  --bad:#dc2626;
  --shadow:0 1px 3px rgba(15,23,42,.05), 0 8px 28px rgba(15,23,42,.08);
  --radius:18px;
  --radius2:14px;
  --font:"Pretendard Variable",Pretendard,-apple-system,BlinkMacSystemFont,system-ui,Roboto,"Noto Sans KR","Malgun Gothic",sans-serif;
  --mono:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:none; }

.container{ width:min(1200px, calc(100% - 40px)); margin:0 auto; }

/* ── Header (dark gradient) ── */
/* 통합 플랫폼 헤더(#sbnPlatformHeader)는 제외 — unified-header.css 가 담당 */
header:not(#sbnPlatformHeader){
  position:static;
  top:auto;
  z-index:30;
  background:linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #312e81 100%);
  backdrop-filter:none;
  border-bottom:none;
  padding:14px 0;
  box-shadow:0 4px 20px rgba(15,23,42,.15);
}

.topbar{ display:flex; flex-wrap:wrap; gap:12px 14px; align-items:center; justify-content:space-between; }
.brand{ display:flex; gap:12px; align-items:center; min-width:220px; }
.brandLogo{
  width:40px; height:40px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.1);
  display:grid; place-items:center;
  font-weight:950;
  overflow:hidden;
  user-select:none;
  box-shadow:0 2px 8px rgba(0,0,0,.15);
  color:#fff;
}
.brandLogo img{ width:100%; height:100%; object-fit:cover; display:block; }
.brandTitle{ display:grid; gap:2px; }
.brandTitle h1{ margin:0; font-size:17px; letter-spacing:-.02em; line-height:1.2; font-weight:800; color:#fff; }
.brandTitle p{ margin:0; font-size:12px; color:rgba(255,255,255,.5); line-height:1.45; }

.navRow{ display:flex; flex-wrap:wrap; gap:4px; align-items:center; justify-content:flex-end; }
.navLink{
  padding:8px 14px;
  border:none;
  border-radius:10px;
  background:transparent;
  font-size:13px;
  cursor:pointer;
  user-select:none;
  transition:all .15s ease;
  font-weight:500;
  color:rgba(255,255,255,.55);
}
.navLink:hover{ background:rgba(255,255,255,.08); color:#fff; }
.navLink:active{ transform:scale(.98); }
.navLink.active{
  background:var(--accent);
  font-weight:600;
  color:#fff;
}

/* ── Site switch dropdown ── */
.site-switch{ position:relative; }
.site-switch-btn{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:8px 14px;
  border-radius:10px;
  border:none;
  background:transparent;
  color:rgba(255,255,255,.55);
  font:inherit;
  font-size:13px;
  font-weight:500;
  cursor:pointer;
  transition:background .15s, color .15s;
}
.site-switch-btn:hover{ color:#fff; background:rgba(255,255,255,.08); }
.site-switch-menu{
  display:none;
  position:absolute;
  right:0;
  top:calc(100% + 8px);
  min-width:190px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#fff;
  box-shadow:0 12px 40px rgba(0,0,0,.12);
  padding:6px;
  z-index:100;
}
.site-switch.open .site-switch-menu{ display:block; }
.site-switch-menu a,
.site-switch-menu span{
  display:block;
  padding:10px 14px;
  border-radius:10px;
  font-size:14px;
  font-weight:500;
  color:var(--text);
  transition:background .12s;
}
.site-switch-menu a:hover{ background:var(--surface2); }
.site-switch-menu .current{ color:var(--muted); cursor:default; }

/* ── Main ── */
main{ padding:28px 0 40px; }

/* ── Panel ── */
.panel{
  border:none;
  border-radius:var(--radius);
  background:var(--surface);
  box-shadow:0 1px 3px rgba(15,23,42,.05), 0 8px 32px rgba(15,23,42,.08);
  overflow:hidden;
  transition:box-shadow .25s, transform .25s;
}
.panel:hover{
  box-shadow:0 4px 12px rgba(15,23,42,.06), 0 16px 44px rgba(15,23,42,.1);
  transform:translateY(-1px);
}
.panelHeader{
  padding:18px 24px 16px;
  border-bottom:1px solid var(--line);
  background:linear-gradient(135deg, rgba(99,102,241,.04) 0%, rgba(139,92,246,.03) 100%);
  display:flex;
  flex-wrap:wrap;
  gap:8px 10px;
  align-items:center;
  justify-content:space-between;
}
.panelHeader h2{ margin:0; font-size:14px; letter-spacing:-.01em; font-weight:700; display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.panelHeader .meta{ font-size:12px; color:var(--muted); display:flex; flex-wrap:wrap; gap:6px 10px; align-items:center; justify-content:flex-end; }
.panelBody{ padding:20px 24px 24px; }

/* ── Badge / Tag ── */
.badge{
  font-size:11px;
  padding:4px 10px;
  border-radius:20px;
  border:none;
  background:var(--surface2);
  color:var(--text);
  white-space:nowrap;
  user-select:none;
  font-weight:600;
}
.badge.accent{ background:rgba(99,102,241,.08); color:var(--accent); }
.badge.accent2{ background:rgba(139,92,246,.08); color:var(--accent2); }
.badge.good{ background:rgba(22,163,74,.08); color:var(--good); }
.badge.warn{ background:rgba(217,119,6,.08); color:var(--warn); }
.badge.bad{ background:rgba(220,38,38,.08); color:var(--bad); }

.tags{ display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.tag{
  font-size:11px;
  padding:4px 10px;
  border-radius:20px;
  border:none;
  background:var(--surface2);
  color:var(--text);
  white-space:nowrap;
  user-select:none;
  font-weight:500;
}
.tag.meta{ color:var(--muted); }
.kbd{ font-family:var(--mono); }

/* ── Buttons ── */
.btn{
  padding:9px 18px;
  border:none;
  border-radius:10px;
  background:var(--surface2);
  font-size:13px;
  cursor:pointer;
  user-select:none;
  transition:all .15s ease;
  color:var(--text);
  font-weight:500;
  font-family:var(--font);
}
.btn:hover{ background:#e4e4e7; }
.btn:active{ transform:scale(.98); }
.btn.primary{
  background:linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  font-weight:600;
  color:#fff;
}
.btn.primary:hover{ background:linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); box-shadow:0 4px 16px rgba(99,102,241,.3); }
.btn.good{
  background:rgba(22,163,74,.08);
  font-weight:600;
  color:var(--good);
}
.btn.good:hover{ background:rgba(22,163,74,.14); }
.btn.bad{
  background:rgba(220,38,38,.08);
  font-weight:600;
  color:var(--bad);
}
.btn.bad:hover{ background:rgba(220,38,38,.14); }
.btn.ghost{ background:transparent; }
.btn.ghost:hover{ background:var(--surface2); }
.btn.small{ padding:6px 12px; font-size:12px; }
.btn[disabled]{ opacity:.4; cursor:not-allowed; pointer-events:none; }

/* ── Note ── */
.note{
  border:none;
  border-radius:var(--radius2);
  padding:16px;
  background:var(--surface2);
  font-size:13px;
  color:var(--muted);
  line-height:1.65;
}
.note b{ color:var(--text); font-weight:700; }

.divider{ height:1px; background:var(--line); margin:16px 0; }
.rowFlex{ display:flex; flex-wrap:wrap; gap:10px; align-items:center; justify-content:space-between; }
.statLine{ font-size:12px; color:var(--muted); display:flex; flex-wrap:wrap; gap:8px 10px; align-items:center; }
.mono{ font-family:var(--mono); }

/* ── Grid ── */
.grid2{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width:980px){ .grid2{ grid-template-columns:1fr; } }

/* ── Form fields ── */
.field{ display:grid; gap:6px; }
.field label{ font-size:12px; color:var(--muted); font-weight:600; }
.input, .select, .textarea{
  width:100%;
  border:1px solid var(--line);
  border-radius:10px;
  padding:10px 14px;
  background:var(--surface);
  color:var(--text);
  outline:none;
  font-size:14px;
  font-family:var(--font);
  transition:border-color .2s ease, box-shadow .2s ease;
}
.input:focus, .select:focus, .textarea:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(99,102,241,.15);
}
.input::placeholder, .textarea::placeholder{ color:var(--muted); opacity:.6; }
.textarea{ min-height:92px; resize:vertical; }
.help{ font-size:12px; color:var(--muted); line-height:1.6; }

/* ── Footer ── */
footer{
  border-top:none;
  margin-top:20px;
  padding:32px 0 40px;
  color:rgba(255,255,255,.55);
  font-size:13px;
  line-height:1.65;
  background:linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #312e81 100%);
}
.footerGrid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:14px; }
@media (max-width:980px){ .footerGrid{ grid-template-columns:repeat(2, 1fr); } }
@media (max-width:760px){ .footerGrid{ grid-template-columns:1fr; } }
footer h4{ margin:0 0 8px; font-size:14px; color:#fff; font-weight:700; }
footer a{ color:rgba(255,255,255,.7); }
footer a:hover{ color:#fff; }

/* ── Modal ── */
.backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.3);
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  z-index:50;
  backdrop-filter:blur(4px);
}
.backdrop.show{ display:flex; }
.modal{
  width:min(560px, 100%);
  border-radius:var(--radius);
  border:1px solid var(--line);
  background:var(--surface);
  box-shadow:0 24px 60px rgba(0,0,0,.14);
  overflow:hidden;
}
.modalHeader{
  padding:18px 20px 16px;
  border-bottom:1px solid var(--line);
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  background:var(--surface2);
}
.modalHeader h3{ margin:0; font-size:15px; font-weight:700; }
.modalBody{ padding:20px; font-size:14px; color:var(--muted); line-height:1.65; }
.modalBody b{ color:var(--text); }
.modalActions{ padding:14px 20px 18px; border-top:1px solid var(--line); display:flex; justify-content:flex-end; gap:8px; }

/* ── Toast ── */
.toast{
  position:fixed;
  left:50%;
  bottom:24px;
  transform:translateX(-50%) translateY(10px);
  padding:12px 20px;
  border-radius:14px;
  border:none;
  background:var(--text);
  color:#fff;
  box-shadow:0 8px 24px rgba(0,0,0,.15);
  font-size:14px;
  display:none;
  z-index:60;
  opacity:0;
  transition:transform .3s ease, opacity .3s ease;
}
.toast.show{ display:block; opacity:1; transform:translateX(-50%) translateY(0); }

/* ── Progress ── */
.progressBar{
  height:6px;
  border-radius:6px;
  overflow:hidden;
  background:var(--surface2);
}
.progressBar .fill{
  height:100%;
  width:0%;
  background:var(--bad);
  border-radius:6px;
  transition:width .4s ease;
}

/* ── Version ── */
.version-tag, .version-footer{
  font-size:11px;
  color:var(--muted);
  opacity:.4;
  font-family:var(--mono);
  letter-spacing:.03em;
}
.version-footer{
  text-align:center;
  padding:18px 0 22px;
}

/* ── Responsive ── */
@media (max-width:640px){
  .navRow{ gap:2px; }
  .navLink{ padding:6px 10px; font-size:12px; }
}
