/* ============================================================
   허브 페이지 전용 스타일
   ------------------------------------------------------------
   weniv.co.kr ContentsCard 패턴 차용:
   - border-radius 2rem(32px), border 없음
   - box-shadow: 2px 2px 20px rgba(0,0,0,.08)
   - 상단 thumbnail 영역(aspect-ratio 380/204) + 하단 contents
   - hover 시 살짝 떠오름
============================================================ */

.hub-page {
  background: var(--bg-soft);
}

.hub-main {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 72px 24px 96px;
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  margin-bottom: 56px;
}
.hero h1 {
  font-size: clamp(30px, 4.8vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  line-height: 1.25;
  color: var(--text);
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero p {
  font-size: 16px;
  color: var(--text-soft);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ---------- Book grid ---------- */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  margin-bottom: 56px;
}

.book-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.book-card:not(.disabled):hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.10);
  border-color: var(--card-accent, var(--accent));
}
.book-card.disabled { opacity: 0.6; }

/* ---------- Thumbnail (illustration 자리) ---------- */
.card-thumb {
  position: relative;
  aspect-ratio: 380 / 200;
  background: var(--card-accent-soft, var(--accent-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 25%, color-mix(in srgb, var(--card-accent) 18%, transparent) 0%, transparent 45%),
    radial-gradient(circle at 80% 80%, color-mix(in srgb, var(--card-accent) 22%, transparent) 0%, transparent 50%);
}
.card-thumb-icon {
  position: relative;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 800;
  font-size: clamp(36px, 4.5vw, 52px);
  color: var(--card-accent, var(--accent));
  letter-spacing: -0.04em;
  line-height: 1.05;
  padding: 0 12px;
  text-align: center;
}

.card-status {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 11px;
  padding: 5px 11px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--bg-elev);
  color: var(--text-mute);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.card-status.status-released {
  background: #15bf70;
  color: #fff;
}
.card-status.status-practice {
  background: var(--bg-elev);
  color: var(--accent-strong);
}
.card-status.status-soon {
  background: var(--bg-elev);
  color: var(--text-mute);
}

/* ---------- Contents ---------- */
.card-body {
  padding: 26px 26px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: var(--bg-elev);
}
.card-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.35;
}
.card-tagline {
  font-size: 13.5px;
  color: var(--text-soft);
  font-weight: 500;
  margin: 0 0 14px;
  line-height: 1.55;
}
.card-desc {
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.7;
  margin: 0 0 22px;
  flex: 1;
}

.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}
.card-actions a {
  flex: 1;
  text-align: center;
  font-size: 13px;
  padding: 11px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-soft);
  transition: all 0.15s ease;
}
.card-actions a:hover {
  border-color: var(--card-accent, var(--accent));
  color: var(--card-accent, var(--accent));
}
.card-actions a.primary {
  background: var(--card-accent, var(--accent));
  color: #fff;
  border-color: var(--card-accent, var(--accent));
}
.card-actions a.primary:hover {
  filter: brightness(1.08);
  color: #fff;
}
.card-actions a[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.45;
}

/* ---------- Site footer (weniv.co.kr Footer 패턴) ---------- */
.site-footer {
  background: var(--bg-elev);
  border-top: 1px solid var(--border-soft);
  padding: 56px 24px 48px;
}
.site-footer-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.site-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.site-footer-logo {
  height: 26px;
  width: auto;
  display: block;
}
.site-footer-tagline {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-mute);
  line-height: 1.7;
  max-width: 320px;
}

.site-footer-links h2 {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.site-footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.site-footer-links a {
  font-size: 13.5px;
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}
.site-footer-links a:hover {
  color: var(--accent);
}

.site-footer-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-mute);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.site-footer-copy p { margin: 0; }
.site-footer-meta { color: var(--text-soft); font-weight: 500; }

@media (max-width: 720px) {
  .site-footer { padding: 40px 20px 36px; }
  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .site-footer-copy { text-align: left; }
}

@media (max-width: 600px) {
  .hub-main { padding: 40px 16px 56px; }
  .hero { margin-bottom: 36px; }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 14.5px; }
  .book-grid { gap: 20px; }
  .book-card { border-radius: 20px; }
  .card-body { padding: 22px 22px 20px; }
  .card-title { font-size: 19px; }
}
