/* ============================================
 * HollowLight — Tag Styles
 * Tag Sphere (/tags/) + Single Tag (/tags/:name/)
 * ZZZ InterKnot Forum Aesthetic
 * ============================================ */

/* ─────────────────────────────────
 * § Tag Sphere Page (/tags/)
 * ───────────────────────────────── */

.tags-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 40px 80px;
}

.tags-page-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--hl-text-muted, #7e7e7e);
  margin-bottom: 48px;
  font-weight: 500;
}

.tags-page-title span {
  color: var(--hl-accent, #fbfe00);
  font-weight: 700;
}

/* Sphere container */
.tag-sphere-wrap {
  position: relative;
  width: min(540px, 92vw);
  height: min(540px, 92vw);
  margin: 0 auto 40px;
  background: radial-gradient(circle at 50% 50%, rgba(251, 254, 0, 0.025), transparent 65%);
  border-radius: 50%;
}

/* Decorative orbit ring */
.tag-sphere-wrap::before {
  content: '';
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1px solid rgba(251, 254, 0, 0.04);
  pointer-events: none;
}

.tag-sphere-wrap::after {
  content: '';
  position: absolute;
  inset: 25%;
  border-radius: 50%;
  border: 1px solid rgba(251, 254, 0, 0.025);
  pointer-events: none;
}

.tag-sphere {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Individual sphere tag */
.tag-sphere-item {
  position: absolute;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  user-select: none;
  transform: translate(-50%, -50%);
  transition: text-shadow 0.2s;
}

.tag-sphere-item:hover {
  text-decoration: none;
}

.tag-sphere-count {
  font-size: 0.65em;
  opacity: 0.55;
  margin-left: 2px;
  vertical-align: super;
}

/* ─────────────────────────────────
 * § Single Tag Page (/tags/:name/)
 * ───────────────────────────────── */

.tag-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 40px 80px;
}

.tag-header {
  margin-bottom: 40px;
}

.tag-name {
  font-size: 42px;
  font-weight: 900;
  color: var(--hl-accent, #fbfe00);
  line-height: 1.1;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.tag-article-count {
  font-size: 14px;
  color: var(--hl-text-muted, #7e7e7e);
}

.tag-article-count span {
  color: var(--hl-accent, #fbfe00);
  font-weight: 600;
}

/* Article list */
.tag-articles {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Card — horizontal, ZZZ corner cut */
.tag-article-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px;
  background: var(--hl-card, #1c1c1c);
  border-radius: 16px 16px 0 16px;
  position: relative;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
  border: 1px solid transparent;
}

.tag-article-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 14px 14px;
  border-color: transparent transparent var(--hl-black, #000) transparent;
  pointer-events: none;
}

.tag-article-card:hover {
  background: var(--hl-card-hover, #222);
  border-color: rgba(251, 254, 0, 0.15);
  transform: translateX(4px);
}

/* Thumbnail */
.tag-article-thumb {
  width: 140px;
  height: 90px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
}

.tag-article-thumb-placeholder {
  width: 140px;
  height: 90px;
  border-radius: 10px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.1);
  font-size: 24px;
}

/* Info */
.tag-article-info {
  flex: 1;
  min-width: 0;
}

.tag-article-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-article-card:hover .tag-article-title {
  color: var(--hl-accent, #fbfe00);
}

.tag-article-date {
  font-size: 13px;
  color: var(--hl-text-muted, #7e7e7e);
  font-variant-numeric: tabular-nums;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .tags-wrap,
  .tag-wrap {
    padding: 32px 20px 60px;
  }

  .tag-name {
    font-size: 32px;
  }

  .tag-article-card {
    padding: 12px;
    gap: 14px;
  }

  .tag-article-thumb,
  .tag-article-thumb-placeholder {
    width: 100px;
    height: 68px;
  }

  .tag-article-title {
    font-size: 15px;
  }

  .tag-sphere-wrap {
    margin-bottom: 24px;
  }
}
