/* ============================================================
   Reset & Base
============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Safari / iOS 레이아웃 점프 Fix */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

a,
button {
  outline: none;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
  color: inherit;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "Noto Sans KR", "Segoe UI", sans-serif;
  background: #ffffff;
  color: #1b1b1b;
}

body.no-scroll {
  overflow: hidden;
}

/* ============================================================
   Layout Container
============================================================ */
.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ============================================================
   Header
============================================================ */
#site-header {
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  position: sticky;
  top: 0;
  z-index: 300;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

/* Logo */
.site-logo {
  display: flex;
  flex-direction: column;
}
.site-logo-main {
  font-weight: 700;
}
.site-logo-sub {
  font-size: 11px;
  opacity: 0.6;
}

/* ============================================================
   Menu Button (PC + Mobile 공통)
============================================================ */
.nav-toggle {
  display: flex;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle-dot {
  width: 4px;
  height: 4px;
  background: #1b1b1b;
  border-radius: 50%;
  margin: 2px 0;
}

/* ============================================================
   Drawer Menu (PC + Mobile 공통)
============================================================ */
.menu-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: 0.2s;
  z-index: 350;
}
.menu-nav-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.menu-nav {
  position: fixed;
  right: 0;
  top: 0;
  width: min(82%, 380px);
  height: 100vh;
  background: #ffffff;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 400;
  display: flex;
  flex-direction: column;
}
.menu-nav.is-open {
  transform: translateX(0);
}

.menu-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  font-size: 15px;
  font-weight: 600;
}
.menu-nav-close {
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
}

.menu-nav-body {
  padding: 24px 24px;
  overflow-y: auto;
}

/* Category */
.menu-nav-category {
  margin-bottom: 22px;
}
.menu-nav-category-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* App List */
.menu-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.menu-nav-list li a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 6px;
  background: rgba(0, 0, 0, 0.02);
  transition: background 0.18s;
}
.menu-nav-list li a:hover {
  background: rgba(0, 0, 0, 0.08);
}

/* ============================================================
   Main Contents
============================================================ */
.page-section {
  padding: 32px 0 48px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.app-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
  transition: 0.18s;
}
.app-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0,110,255,0.45);
  box-shadow: 0 6px 22px rgba(0,0,0,0.10);
}
.app-card-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
}
.app-card-desc {
  margin: 0;
  font-size: 13px;
  opacity: 0.65;
}

/* ============================================================
   Footer
============================================================ */
#site-footer {
  background: #ffffff;
  border-top: 1px solid rgba(0,0,0,0.07);
  margin-top: 40px;
}
.footer-inner {
  text-align: center;
  padding: 16px 0;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ============================================================
   Responsive
============================================================ */
@media (min-width: 768px) {
  .menu-nav {
    width: 380px;
  }
}
