/* ══════════════════════════════════════════
   INDEX PAGE — ManhwaVoid Design System
══════════════════════════════════════════ */

/* Override body font with Noto Sans for better character coverage */
body {
  font-family: 'Noto Sans', 'Noto Sans JP', var(--font-body), sans-serif;
}

.home { padding-bottom: 0; padding-top: var(--nav-h); }

/* ── NAVBAR OVERRIDES ─────────────────── */
.nav { padding: 0 16px; gap: 12px; }

.nav-logo-wrap {
  display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0;
  text-decoration: none; color: inherit;
}
.nav-logo-img {
  width: 34px; height: 34px; border-radius: 8px; overflow: hidden;
  flex-shrink: 0; border: 1px solid rgba(255,255,255,0.1);
  background: var(--surface3);
  display: flex; align-items: center; justify-content: center;
}
.nav-logo-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.nav-logo-img svg { width: 20px; height: 20px; }
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 800; letter-spacing: 0.01em;
  line-height: 1; white-space: nowrap;
}
.nav-logo-text .word-manhwa { color: #EDEDED; }
.nav-logo-text .word-verse {
  color: #818CF8;
  background: linear-gradient(135deg, #818CF8, #A78BFA);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── CONTINUE READING ─────────────────── */
.cr-wrap { padding: 14px 16px 0; animation: crSlideIn .42s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes crSlideIn {
  from { opacity:0; transform:translateY(-10px); }
  to   { opacity:1; transform:translateY(0); }
}
.cr-card {
  display: flex; align-items: stretch; gap: 0;
  border-radius: 14px; overflow: hidden;
  background: rgba(129,140,248,0.05);
  border: 1px solid rgba(129,140,248,0.2);
  cursor: pointer; position: relative; min-height: 90px;
  transition: border-color .2s, transform .16s;
}
.cr-card:hover  { border-color: rgba(129,140,248,.42); transform: translateY(-1px); }
.cr-card:active { transform: scale(.98); opacity: .88; }
.cr-bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.cr-bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: blur(28px) brightness(.1) saturate(1.6);
  transform: scale(1.15);
}
.cr-thumb {
  position: relative; z-index: 1;
  flex-shrink: 0; width: 60px; align-self: stretch; overflow: hidden;
}
.cr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cr-thumb-placeholder {
  width: 100%; height: 100%; background: var(--surface3);
  display: flex; align-items: center; justify-content: center;
}
.cr-body {
  position: relative; z-index: 1;
  flex: 1; min-width: 0; padding: 12px 14px;
  display: flex; flex-direction: column; justify-content: center;
}
.cr-label {
  font-size: 8px; font-weight: 800; letter-spacing: .15em;
  text-transform: uppercase; color: #818CF8; margin-bottom: 4px;
  display: flex; align-items: center; gap: 5px;
}
.cr-label::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: #818CF8; animation: crPulse 1.8s ease infinite;
}
@keyframes crPulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.4; transform:scale(.7); }
}
.cr-title {
  font-family: var(--font-display); font-size: 13.5px; font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px;
}
.cr-ch {
  font-size: 11px; color: rgba(255,255,255,.45);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 7px;
}
.cr-bar { height: 2px; background: rgba(255,255,255,.08); border-radius: 2px; overflow: hidden; }
.cr-fill { height: 100%; background: #818CF8; border-radius: 2px; transition: width .5s ease; }
.cr-play {
  position: relative; z-index: 1;
  width: 40px; height: 40px; border-radius: 50%;
  background: #818CF8; border: none; flex-shrink: 0;
  margin: auto 14px auto 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(129,140,248,.4);
  transition: transform .16s, box-shadow .16s;
}
.cr-play:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(129,140,248,.6); }
.cr-play svg { width: 14px; height: 14px; fill: #fff; margin-left: 2px; }

/* ── SECTION HEADERS ──────────────────── */
.hsec { margin: 24px 0 0; }
.hsec-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; margin-bottom: 14px;
}
.hsec-title {
  font-family: var(--font-display); font-size: 11.5px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.hsec-title::before {
  content: ''; display: inline-block; width: 3px; height: 14px;
  background: var(--primary); border-radius: 2px;
}
.hsec-more {
  font-size: 11px; font-weight: 600; color: var(--primary);
  opacity: .8; transition: opacity .15s;
}
.hsec-more:hover { opacity: 1; }

/* ── HERO SLIDER ──────────────────────── */
.hero-wrap {
  position: relative; margin: 14px 0 0; overflow: hidden;
  height: clamp(240px, 46vw, 380px);
}
@media (min-width: 600px) { .hero-wrap { height: clamp(300px, 40vw, 460px); } }

.hero-track { position: relative; width: 100%; height: 100%; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; z-index: 1;
  pointer-events: none; transition: opacity .6s ease;
}
.hero-slide.is-active { opacity: 1; z-index: 2; pointer-events: all; }

.hslide-bg { position: absolute; inset: 0; overflow: hidden; }
.hslide-bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: blur(22px) brightness(.18) saturate(2);
  transform: scale(1.1);
}
.hero-slide.is-active .hslide-bg img {
  animation: kBurns 7s ease-out forwards;
}
@keyframes kBurns {
  from { transform: scale(1.1); }
  to   { transform: scale(1.19); }
}
.hslide-vgn {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to right,  rgba(6,6,6,.82) 0%, transparent 55%),
    linear-gradient(to top,    rgba(6,6,6,.95) 0%, transparent 55%),
    linear-gradient(to bottom, rgba(6,6,6,.4)  0%, transparent 28%);
}
.hslide-body {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: flex-end;
  padding: 0 18px 54px; gap: 16px;
}
.hslide-cover {
  flex-shrink: 0;
  width: clamp(80px, 20vw, 120px); height: clamp(118px, 30vw, 180px);
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.8);
  border: 1px solid rgba(255,255,255,.08);
  opacity: 0;
}
.hero-slide.is-active .hslide-cover { animation: coverIn .5s .05s cubic-bezier(.34,1.3,.64,1) both; }
@keyframes coverIn {
  from { opacity:0; transform:translateY(20px); }
  to   { opacity:1; transform:translateY(-5px); }
}
.hslide-cover img { width: 100%; height: 100%; object-fit: cover; }

.hslide-info { flex: 1; min-width: 0; opacity: 0; }
.hero-slide.is-active .hslide-info { animation: infoIn .48s .18s ease both; }
@keyframes infoIn {
  from { opacity:0; transform:translateX(10px); }
  to   { opacity:1; transform:translateX(0); }
}
.hslide-src {
  display: inline-block; font-size: 7.5px; font-weight: 800;
  padding: 2px 7px; border-radius: 4px; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: 9px;
}
.hslide-src--fx { background: rgba(255,212,0,.92); color: #000; }
.hslide-src--as { background: rgba(129,140,248,.92); color: #fff; }

.hslide-title {
  font-family: var(--font-display);
  font-size: clamp(14px, 3.8vw, 21px); font-weight: 800; color: #fff;
  line-height: 1.22; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
}
.hslide-meta { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.hslide-ch {
  font-size: 10px; color: var(--primary); font-weight: 700;
  background: rgba(255,212,0,.1); border: 1px solid rgba(255,212,0,.28);
  padding: 3px 8px; border-radius: 5px;
}
.hslide-time {
  font-size: 10px; color: rgba(255,255,255,.45); font-weight: 400;
  padding: 3px 8px; border-radius: 5px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
}
.hslide-read {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 22px; background: var(--primary); color: #000;
  font-size: 12px; font-weight: 800; font-family: var(--font-display);
  border-radius: 9px; cursor: pointer; letter-spacing: .02em; border: none;
  box-shadow: 0 4px 20px rgba(255,212,0,.32);
  transition: transform .14s, box-shadow .14s;
}
.hslide-read:hover  { transform: scale(1.04); box-shadow: 0 6px 28px rgba(255,212,0,.5); }
.hslide-read:active { transform: scale(.96); }
.hslide-read svg { width: 11px; height: 11px; }

.hero-footer {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 10;
  display: flex; flex-direction: column; align-items: center; gap: 7px; padding-bottom: 8px;
}
.hero-dots { display: flex; gap: 5px; align-items: center; }
.hdot {
  height: 4px; border-radius: 3px; background: rgba(255,255,255,.22);
  transition: all .38s cubic-bezier(.34,1.56,.64,1); cursor: pointer;
}
.hdot.active { width: 20px; background: var(--primary); }
.hdot:not(.active) { width: 4px; }
.hero-pgbar { width: calc(100% - 28px); height: 2px; background: rgba(255,255,255,.06); border-radius: 1px; overflow: hidden; }
.hero-pgbar-fill { height: 100%; width: 0%; background: var(--primary); border-radius: 1px; transition: width .07s linear; }

/* Hero skeleton */
.hero-skel {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; padding: 0 18px 54px; gap: 16px;
  background: linear-gradient(90deg,var(--surface) 0%,var(--surface3) 40%,var(--surface2) 60%,var(--surface) 100%);
  background-size: 300% 100%; animation: shimmer 1.55s ease infinite;
}
.hero-skel-cover {
  flex-shrink: 0; width: clamp(80px,20vw,120px); height: clamp(118px,30vw,180px);
  border-radius: 10px; background: rgba(255,255,255,.05); transform: translateY(-5px);
}
.hero-skel-info { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.hero-skel-line { border-radius: 4px; background: rgba(255,255,255,.05); }

/* ── LATEST UPDATES GRID ──────────────── */
.lu-grid {
  display: grid; gap: 12px; padding: 0 16px;
  grid-template-columns: repeat(3, 1fr);
}
@media (min-width: 480px)  { .lu-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 768px)  { .lu-grid { grid-template-columns: repeat(5, 1fr); gap: 14px; } }
@media (min-width: 1024px) { .lu-grid { grid-template-columns: repeat(6, 1fr); } }

.lu-card {
  cursor: pointer; border-radius: 10px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  opacity: 0; transform: translateY(14px);
  transition: opacity .32s ease, transform .32s ease, border-color .18s;
}
.lu-card.visible { opacity: 1; transform: translateY(0); }
.lu-card:hover   { border-color: rgba(255,212,0,.25); transform: translateY(-2px) !important; }
.lu-card:active  { transform: scale(.96) !important; opacity: .85; }

/* Cover with 2:3 aspect ratio for clean manga look */
.lu-card-cover {
  aspect-ratio: 2 / 3;
  overflow: hidden; position: relative;
}
.lu-card-cover img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .32s ease;
}
.lu-card:hover .lu-card-cover img { transform: scale(1.06); }

.lu-card-src {
  position: absolute; top: 5px; right: 5px; font-size: 7px; font-weight: 800;
  padding: 2px 5px; border-radius: 3px; letter-spacing: .08em; text-transform: uppercase;
}
.lu-card-src--fx { background: rgba(255,212,0,.9); color: #000; }
.lu-card-src--as { background: rgba(129,140,248,.9); color: #fff; }

.lu-card-body { padding: 7px 8px 9px; }
.lu-card-title {
  font-family: 'Noto Sans', sans-serif;
  font-size: 10.5px; font-weight: 600; color: var(--text);
  line-height: 1.38;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 4px;
}
@media (min-width: 768px) { .lu-card-title { font-size: 11.5px; } }

.lu-card-ch {
  font-size: 9.5px; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap; row-gap: 2px;
}
.lu-card-ch-num {
  color: var(--primary); font-weight: 700; font-size: 9px;
}
.lu-card-ch-time { color: var(--text-muted); }

/* Skeleton cards */
.lu-skel {
  border-radius: 10px; overflow: hidden; background: var(--surface);
  border: 1px solid var(--border);
}
.lu-skel-cover {
  aspect-ratio: 2/3;
  background: linear-gradient(90deg,var(--surface) 0%,var(--surface3) 40%,var(--surface2) 60%,var(--surface) 100%);
  background-size: 300% 100%; animation: shimmer 1.55s ease infinite;
}
.lu-skel-body { padding: 7px 8px 9px; }
.lu-skel-line {
  border-radius: 3px; height: 9px; margin-bottom: 5px;
  background: linear-gradient(90deg,var(--surface) 0%,var(--surface3) 40%,var(--surface2) 60%,var(--surface) 100%);
  background-size: 300% 100%; animation: shimmer 1.55s ease infinite;
}

/* ── PAGINATION ───────────────────────── */
.lu-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 22px 16px 10px;
}
.pg-btn {
  min-width: 36px; height: 36px; border-radius: 10px;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text-sub); font-size: 12.5px; font-weight: 600;
  font-family: var(--font-display); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .18s ease; padding: 0 10px;
}
.pg-btn:hover { background: var(--surface3); border-color: var(--border2); color: var(--text); }
.pg-btn.active {
  background: #818CF8; border-color: #818CF8; color: #fff;
  box-shadow: 0 3px 14px rgba(129,140,248,.38);
}
.pg-btn:disabled { opacity: .3; pointer-events: none; cursor: default; }
.pg-btn.pg-arrow { font-size: 16px; color: var(--text-sub); }
.pg-btn.pg-arrow:not(:disabled):hover { color: var(--primary); }

/* ── FOOTER ───────────────────────────── */
.site-footer {
  margin-top: 40px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 960px; margin: 0 auto;
  padding: 32px 20px 20px;
}
.footer-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 28px;
}
.footer-brand { max-width: 240px; }
.footer-logo {
  display: flex; align-items: center; gap: 9px; margin-bottom: 10px;
}
.footer-logo-icon {
  width: 30px; height: 30px; border-radius: 7px; overflow: hidden;
  background: var(--surface3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.footer-logo-icon img { width: 100%; height: 100%; object-fit: cover; }
.footer-logo-icon svg { width: 17px; height: 17px; }
.footer-logo-text {
  font-family: var(--font-display); font-size: 15px; font-weight: 800;
}
.footer-logo-text .word-manhwa { color: var(--text); }
.footer-logo-text .word-verse {
  background: linear-gradient(135deg, #818CF8, #A78BFA);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-tagline {
  font-size: 12px; color: var(--text-muted); line-height: 1.6;
}

.footer-links { display: flex; gap: 32px; flex-wrap: wrap; }
.footer-col {}
.footer-col-title {
  font-size: 9.5px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 12px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col a {
  font-size: 13px; color: var(--text-sub);
  transition: color .15s;
}
.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}
.footer-copy {
  font-size: 11.5px; color: var(--text-muted);
}
.footer-disclaimer {
  font-size: 10.5px; color: var(--text-muted); opacity: .6;
  max-width: 460px; line-height: 1.5;
}

/* ── DESKTOP CAP ──────────────────────── */
@media (min-width: 1024px) {
  .home { max-width: 1200px; margin: 0 auto; }
  .hero-wrap { border-radius: 16px; margin: 14px 16px 0; }
}
