/* ── Reset ── */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: #0e141b;
  color: #c7d5e0;
  font-family: -apple-system, BlinkMacSystemFont, 'Pretendard',
  'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #171a21;
  border-bottom: 1px solid #2a3f5a;
}
.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin: 0;
  color: #fff;
}
.site-nav { display: flex; gap: 4px; }
.nav-link {
  font-size: 13px;
  padding: 8px 14px;
  color: #b8c4d0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-link:hover { color: #fff; }
.nav-link.active {
  color: #fff;
  border-bottom-color: #66c0f4;
}

/* ── Container ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

/* ── Hero ── */
.hero {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #2a3f5a;
}
.hero-title {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 6px;
  color: #fff;
}
.hero-sub {
  font-size: 13px;
  color: #8f98a0;
  margin: 0;
}

/* ── Grid ── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

/* ── Card ── */
.card {
  position: relative;
  display: block;
  background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
  border: 1px solid #2a3f5a;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  cursor: pointer;
}
.card:hover {
  transform: translateY(-2px);
  border-color: #66c0f4;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* 썸네일 영역 */
.card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1b2838 0%, #2a475e 60%, #3a6a8a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(102, 192, 244, 0.18), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(102, 192, 244, 0.08), transparent 60%);
}
.card-initial {
  position: relative;
  font-size: 44px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.04em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

/* 하단 정보 바 */
.card-body {
  padding: 12px 14px 14px;
  background: #16202d;
  border-top: 1px solid #2a3f5a;
}
.card-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-url {
  display: block;
  font-size: 11px;
  color: #8f98a0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 배지 */
.card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 7px;
  background: rgba(0, 0, 0, 0.55);
  color: #66c0f4;
  border: 1px solid rgba(102, 192, 244, 0.5);
}

/* 스켈레톤 */
.card.skeleton {
  pointer-events: none;
  border-color: #2a3f5a;
}
.card.skeleton .card-thumb {
  background: linear-gradient(90deg, #1b2838 25%, #22344a 50%, #1b2838 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
.card.skeleton .card-body { background: #16202d; }
.card.skeleton .sk-line {
  height: 10px;
  background: #22344a;
  margin-bottom: 6px;
}
.card.skeleton .sk-line.short { width: 55%; }
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Empty ── */
.empty {
  text-align: center;
  color: #8f98a0;
  font-size: 13px;
  padding: 64px 0;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid #2a3f5a;
  padding: 24px;
  text-align: center;
  font-size: 11px;
  color: #5c6b7a;
}

/* 카드 썸네일 이미지 */
.card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.card:hover .card-img {
  transform: scale(1.04);
}
