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

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


/* ================================================
   🧩 Neoglass Home Genres + Manga Carousel (v3.1 FINAL)
   ================================================ */

.ng-genre-collection {
  padding: 10px 0 25px;
}

/* ===============================
   Scrollable Genre Chips
   =============================== */
.ng-genre-scroll {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding: 8px 10px 16px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--ng-accent) transparent;
}

/* Chrome scrollbar */
.ng-genre-scroll::-webkit-scrollbar {
  height: 6px;
}
.ng-genre-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.ng-genre-scroll::-webkit-scrollbar-thumb {
  background-color: var(--ng-accent);
  border-radius: 3px;
}

/* Genre chip */
.ng-genre-chip {
  flex: 0 0 auto;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--ng-border);
  background: var(--ng-card);
  color: var(--ng-text);
  font-size: 0.85rem;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.ng-genre-chip:hover {
  background: var(--ng-row);
}

.ng-genre-chip.active {
  background: var(--ng-accent);
  color: #000;
  border-color: var(--ng-accent);
  box-shadow: 0 0 8px var(--ng-accent);
}

/* ===============================
   Manga Carousel Cards
   =============================== */
.ng-genre-cards {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 6px 10px 20px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--ng-accent) transparent;
}

/* Chrome scrollbar */
.ng-genre-cards::-webkit-scrollbar {
  height: 6px;
}
.ng-genre-cards::-webkit-scrollbar-track {
  background: transparent;
}
.ng-genre-cards::-webkit-scrollbar-thumb {
  background-color: var(--ng-accent);
  border-radius: 3px;
}

/* Card base */
.ng-card {
  flex: 0 0 140px;
  text-decoration: none;
  color: var(--ng-text);
  background: var(--ng-card);
  border: 1px solid var(--ng-border);
  border-radius: 10px;
  overflow: hidden;
  scroll-snap-align: start;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.ng-card:hover {
  transform: translateY(-3px);
  background: var(--ng-row);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Cover image */
.ng-card-cover {
  width: 100%;
  height: 190px;
  background-size: cover;
  background-position: center;
  background-color: #222;
  transition: transform 0.3s ease;
}

.ng-card:hover .ng-card-cover {
  transform: scale(1.03);
}

/* Card content */
.ng-card-body {
  padding: 6px 8px 10px;
  text-align: center;
}

.ng-card-title {
  font-size: 0.9rem;
  margin: 0;
  color: var(--ng-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===============================
   Footer “View All”
   =============================== */
.ng-genre-footer {
  text-align: center;
  padding: 8px;
}

.ng-genre-footer .ng-view-all {
  font-size: 0.9rem;
  color: var(--ng-accent);
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s;
}

.ng-genre-footer .ng-view-all:hover {
  text-decoration: underline;
  color: var(--ng-accent);
}

/* ===============================
   Loading Placeholder
   =============================== */
.loading {
  text-align: center;
  color: var(--ng-muted);
  padding: 12px 0;
  font-size: 0.9rem;
}

/* ===============================
   Responsive Adjustments
   =============================== */
@media (max-width: 600px) {
  .ng-card { flex: 0 0 120px; }
  .ng-card-cover { height: 170px; }
  .ng-card-title { font-size: 0.85rem; }
}
