/* ================================================
   🌗 THEME VARIABLES (Dark & Light Mode Compatible)
   ================================================ */
:root {
  /* 🌙 Default = Dark Mode */
  --ng-bg: #0f0f10;
  --ng-card: rgba(255,255,255,0.05);
  --ng-row: rgba(255,255,255,0.08);
  --ng-accent: #00b7ff;
  --ng-text: #e6eef8;
  --ng-muted: rgba(230,238,248,0.6);
  --ng-border: rgba(255,255,255,0.15);
}

body.light-mode {
  /* ☀️ Light Mode */
  --ng-bg: #f8f9fb;
  --ng-card: rgba(0,0,0,0.05);
  --ng-row: rgba(0,0,0,0.06);
  --ng-accent: #007bff;
  --ng-text: #0a0a0a;
  --ng-muted: rgba(0,0,0,0.6);
  --ng-border: rgba(0,0,0,0.12);
}


/* ================================================
   LATEST UPDATES (Grid & List Style)
   ================================================ */
.ng-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  padding: 10px;
}

.ng-list-item {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  background: var(--ng-card);
  border: 1px solid var(--ng-border);
  overflow: hidden;
  transition: all 0.2s ease;
}

.ng-list-item:hover {
  transform: translateY(-2px);
  background: var(--ng-row);
}

/* Thumbnail */
.ng-list-thumb {
  position: relative;
}
.ng-list-thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  background: #ccc;
}

.ng-badge-up {
  position: absolute;
  top: 6px;
  left: 6px;
  background: #ff4444;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 6px;
}

/* Info section */
.ng-list-info {
  padding: 8px;
  text-align: center;
}

/* Judul 2 baris */
.ng-list-info h3 {
  font-size: 0.9rem;
  color: var(--ng-text);
  margin: 6px 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.6em;
}

/* Chapter List */
.ng-chapter-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ng-chapter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--ng-row);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.85rem;
  color: var(--ng-text);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.ng-chapter-row:hover {
  background: var(--ng-accent);
  color: #000;
}

.ng-chapter-title {
  flex: 1;
  text-align: left;
}

.ng-chapter-time {
  font-size: 0.8rem;
  color: var(--ng-muted);
}

/* 📜 List view */
.ng-list.list-view {
  display: flex;
  flex-direction: column;
}

.ng-list.list-view .ng-list-item {
  flex-direction: row;
  align-items: flex-start;
  padding: 8px;
}

.ng-list.list-view .ng-list-thumb {
  width: 100px;
  height: 135px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 8px;
}

.ng-list.list-view .ng-list-info {
  flex: 1;
  text-align: left;
  padding: 0 12px;
}

.ng-list.list-view .ng-chapter-list {
  gap: 4px;
}

/* 📱 Responsive */
@media (max-width: 600px) {
  .ng-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .ng-list-thumb img {
    height: 180px;
  }
}


/* ================================================
   PAGINATION — Neoglass Glow Style
   ================================================ */
.ng-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 30px auto 20px;
  flex-wrap: wrap;
  padding: 8px 0;
}

.ng-page-btn,
.ng-page-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--ng-card);
  border: 1px solid var(--ng-border);
  color: var(--ng-text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ng-page-btn:hover {
  background: var(--ng-accent);
  color: #000;
  box-shadow: 0 0 8px var(--ng-accent);
}

.ng-page-btn.active {
  background: var(--ng-accent);
  color: #000;
  font-weight: 600;
  box-shadow: 0 0 10px var(--ng-accent);
  border-color: var(--ng-accent);
}

.ng-page-dots {
  color: var(--ng-muted);
  cursor: default;
  border: none;
  background: transparent;
}

/* Prev / Next special */
.ng-page-btn.prev,
.ng-page-btn.next {
  padding: 0 14px;
  font-weight: 500;
}

.ng-page-btn.prev:hover,
.ng-page-btn.next:hover {
  background: var(--ng-accent);
  color: #000;
}

/* 📱 Responsive pagination */
@media (max-width: 600px) {
  .ng-page-btn {
    min-width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
  .ng-page-btn.prev,
  .ng-page-btn.next {
    padding: 0 10px;
  }
}
