/* Creation & Novel Archive (/novels/) styles */

.novel-shelf-card,
.novel-hero {
  display: flex;
  gap: 24px;
  padding: 22px;
  margin-bottom: 24px;
  border-radius: 12px;
  background: var(--card-bg);
  border: 1px solid rgba(128, 128, 128, 0.16);
  box-shadow: var(--card-box-shadow);
  align-items: flex-start;
}

.novel-cover {
  flex: 0 0 180px;
  width: 180px;
  height: 240px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}

.novel-meta-body {
  flex: 1;
  min-width: 0;
}

.novel-title {
  margin: 0 0 10px 0 !important;
  font-size: 1.45em;
  line-height: 1.35;
}

.novel-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.novel-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.82em;
  background: rgba(73, 177, 245, 0.14);
  color: var(--default-bg-color, #49b1f5);
  border: 1px solid rgba(73, 177, 245, 0.28);
}

.novel-synopsis {
  margin: 0 0 16px 0;
  color: var(--font-color);
  opacity: 0.88;
  line-height: 1.75;
  font-size: 0.96em;
}

.novel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.novel-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.92em;
  font-weight: 600;
  text-decoration: none !important;
  background: var(--btn-bg, #49b1f5);
  color: var(--btn-color, #fff) !important;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.novel-btn:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.novel-btn.secondary {
  background: transparent;
  color: var(--font-color) !important;
  border: 1px solid rgba(128, 128, 128, 0.3);
}

.novel-arc-group {
  margin: 26px 0 18px 0;
}

.novel-arc-title {
  font-size: 1.15em;
  font-weight: 700;
  margin: 0 0 12px 0;
  padding-left: 10px;
  border-left: 4px solid var(--default-bg-color, #49b1f5);
}

.novel-toc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.novel-vol-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(128, 128, 128, 0.18);
  background: var(--blockquote-bg, rgba(128, 128, 128, 0.05));
  text-decoration: none !important;
  color: var(--font-color) !important;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.novel-vol-card:hover {
  border-color: var(--default-bg-color, #49b1f5);
  transform: translateY(-2px);
  box-shadow: var(--card-box-shadow);
}

.novel-vol-label {
  font-size: 0.8em;
  color: var(--default-bg-color, #49b1f5);
  font-weight: 600;
  margin-bottom: 4px;
}

.novel-vol-name {
  font-size: 1.04em;
  font-weight: 700;
  margin-bottom: 6px;
}

.novel-vol-meta {
  font-size: 0.82em;
  opacity: 0.72;
}

.novel-chapter-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  margin: 12px 0 24px 0;
  border-radius: 10px;
  border: 1px solid rgba(128, 128, 128, 0.18);
  background: var(--blockquote-bg, rgba(128, 128, 128, 0.05));
  font-size: 0.92em;
}

.novel-chapter-nav .nav-prev {
  text-align: left;
  justify-self: start;
}

.novel-chapter-nav .nav-center {
  text-align: center;
  justify-self: center;
}

.novel-chapter-nav .nav-next {
  text-align: right;
  justify-self: end;
}

.novel-chapter-nav a {
  text-decoration: none !important;
  font-weight: 600;
  color: var(--default-bg-color, #49b1f5);
}

.novel-chapter-nav a:hover {
  text-decoration: underline !important;
}

.novel-chapter-nav .nav-disabled {
  opacity: 0.45;
}

.type-novel #article-container {
  font-size: 1.03em;
  line-height: 1.95;
}

.type-novel #article-container p {
  margin-bottom: 1.05em;
}

.type-novel #article-container h2 {
  margin-top: 2.1em;
  margin-bottom: 0.9em;
  padding-bottom: 0.35em;
  border-bottom: 1px solid rgba(128, 128, 128, 0.22);
}

@media screen and (max-width: 768px) {
  .novel-shelf-card,
  .novel-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .novel-badges,
  .novel-actions {
    justify-content: center;
  }

  .novel-toc-grid {
    grid-template-columns: 1fr;
  }

  .novel-chapter-nav {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .novel-chapter-nav .nav-prev,
  .novel-chapter-nav .nav-center,
  .novel-chapter-nav .nav-next {
    justify-self: center;
    text-align: center;
  }
}
