/* === NovelNest Home Redesign Additions === */
.hero-redesigned {
  position: relative;
  padding: 80px 24px 64px;
  min-height: 480px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  overflow: hidden;
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(246, 173, 85, 0.12), transparent 45%),
              radial-gradient(circle at 20% 80%, rgba(233, 69, 96, 0.1), transparent 40%);
  pointer-events: none;
}
.hero-redesigned .hero-inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.hero-redesigned .hero-content {
  max-width: 640px;
}
.hero-kicker {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
}
.hero-redesigned .hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 18px;
}
.hero-redesigned .hero-sub {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 520px;
  margin-bottom: 28px;
}
.hero-search {
  margin-bottom: 24px;
}
.hero-search-form {
  display: flex;
  gap: 0;
  max-width: 480px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}
.hero-search-form input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text);
  padding: 14px 18px;
  font-size: .95rem;
  outline: none;
}
.hero-search-form input::placeholder {
  color: var(--text-lighter);
}
.hero-search-form button {
  border: none;
  background: var(--accent);
  color: #0f0f1a;
  font-weight: 700;
  padding: 0 22px;
  cursor: pointer;
  transition: background .2s;
}
.hero-search-form button:hover {
  background: var(--accent-dark);
}
.hero-stats {
  display: flex;
  gap: 32px;
  flex-shrink: 0;
}
.hero-stat {
  text-align: center;
  padding: 20px 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  min-width: 100px;
}
.hero-stat-num {
  display: block;
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.hero-stat-label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-top: 6px;
  display: block;
}
@media (max-width: 900px) {
  .hero-redesigned .hero-inner { flex-direction: column; align-items: flex-start; }
  .hero-stats { width: 100%; justify-content: space-between; }
  .hero-stat { flex: 1; }
}

/* Categories */
.home-section { margin-top: 48px; }
.categories-section { margin-top: 32px; }
.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 22px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: transform .2s, background .2s, border-color .2s;
}
.category-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-3px);
}
.category-icon {
  font-size: 1.8rem;
  filter: grayscale(0.2);
}
.category-name {
  font-weight: 700;
  font-size: .92rem;
}
.category-count {
  font-size: .72rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: .5px;
}
@media (max-width: 900px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Editor Picks */
.editor-section { margin-top: 56px; }
.editor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.editor-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: background .2s, border-color .2s;
}
.editor-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
}
.editor-body {
  display: flex;
  flex-direction: column;
}
.editor-badge {
  align-self: flex-start;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--accent-glow);
  color: var(--accent);
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.editor-genre {
  font-size: .75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.editor-body h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
  line-height: 1.3;
}
.editor-author {
  font-size: .8rem;
  color: var(--text-light);
  margin-bottom: 8px;
}
.editor-stars {
  font-size: .8rem;
  color: var(--accent);
  margin-bottom: 10px;
}
.editor-stars span { color: var(--text-light); margin-left: 4px; }
.editor-body p {
  font-size: .82rem;
  color: var(--text-light);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 900px) {
  .editor-grid { grid-template-columns: 1fr; }
}

/* Latest Updates */
.update-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.update-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: background .2s, border-color .2s;
}
.update-row:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
}
.update-title {
  font-weight: 700;
  font-size: .95rem;
}
.update-meta {
  font-size: .78rem;
  color: var(--text-light);
}
.update-rating {
  font-size: .78rem;
  color: var(--accent);
  margin-top: 2px;
}

/* Authors */
.author-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.author-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px border(--border);
  border-radius: 10px;
  transition: background .2s, border-color .2s;
}
.author-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
}
.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: #0f0f1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .85rem;
  flex-shrink: 0;
}
.author-info {
  display: flex;
  flex-direction: column;
}
.author-name {
  font-weight: 700;
  font-size: .9rem;
}
.author-count {
  font-size: .75rem;
  color: var(--text-light);
}

/* Two-column grid for updates + authors */
.home-grid-two {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
}
@media (max-width: 900px) {
  .home-grid-two { grid-template-columns: 1fr; }
}

/* CTA Section */
.cta-section { margin-bottom: 24px; }
.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 40px 48px;
  background: linear-gradient(135deg, rgba(246, 173, 85, 0.12), rgba(233, 69, 96, 0.08));
  border: 1px solid var(--border-light);
  border-radius: 18px;
}
.cta-text h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.cta-text p {
  color: var(--text-light);
  max-width: 460px;
  margin-bottom: 20px;
}
.cta-art {
  width: 160px;
  height: 120px;
  opacity: 0.8;
}
.cta-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@media (max-width: 700px) {
  .cta-box { flex-direction: column; text-align: center; padding: 28px; }
  .cta-text p { margin-left: auto; margin-right: auto; }
}

/* Scroll sections: more visible */
.scroll-track {
  padding-bottom: 12px;
}

/* ===== NEW COVER CLASSES (no conflict with style.min.css) ===== */

/* Small thumbnail cover — replaces .bc-cover (was 44x60 emoji placeholder) */
.cover-thumb {
  width: 80px;
  height: 110px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #1a1a2e;
  line-height: 0;  /* eliminates inline whitespace around img */
}
.cover-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
  margin: 0;
  padding: 0;
}

/* Scroll card cover — replaces .sc-cover (was 140px emoji placeholder) */
.cover-card {
  width: 100%;
  height: 180px;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  background: #1a1a2e;
  line-height: 0;
}
.cover-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
  margin: 0;
  padding: 0;
}

/* Featured hero cover — replaces .featured-card-img (was 260px emoji) */
.cover-featured {
  height: 260px;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  position: relative;
  background: #1a1a2e;
  line-height: 0;
}
.cover-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
  margin: 0;
  padding: 0;
}
.cover-featured .featured-card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  line-height: normal;
}

/* Editor pick cover — replaces .editor-cover */
.cover-editor {
  width: 120px;
  height: 160px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #1a1a2e;
  line-height: 0;
}
.cover-editor img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
  margin: 0;
  padding: 0;
}
