
/* ================================================
   🌗 THEME VARIABLES (Dark & Light Mode Compatible)
   ================================================ */
:root {
  --ng-bg: #0f0f10;
  --ng-card: rgba(255,255,255,0.04);
  --ng-accent: #00b7ff;
  --ng-text: #e6eef8;
}

body.light-mode {
  --ng-bg: #ffffff;
  --ng-card: rgba(0,0,0,0.05);
  --ng-accent: #007bff;
  --ng-text: #000000;
}


/* ================================================
   Neoglass Chapter Reader Style v2 (floating mode)
   ================================================ */

body.neoglass-root.chapter-mode {
  overflow-x: hidden;
  background: var(--ng-bg, #0c0c0c);
  margin: 0;
  padding: 0;
}

/* Floating Title Bar */
.ng-chapter-title {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 15, 16, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ng-text, #fff);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 10px 16px;
  text-align: center;
  z-index: 100;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.ng-chapter-title.hidden {
  transform: translateY(-100%);
  opacity: 0;
}

/* Reader content */
.ng-chapter {
  margin-top: 60px;
  margin-bottom: 100px;
}

.ng-chapter-images {
  display: flex;
  flex-direction: column;
}

.ng-chapter-image img {
  width: 100%;
  display: block;
  border: none;
  margin: 0;
  padding: 0;
}

/* Floating footer */
.ng-chapter-footer {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 20, 22, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  z-index: 200;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.ng-chapter-footer.hidden {
  transform: translate(-50%, 100%);
  opacity: 0;
}

/* Floating circular buttons */
.ng-fab {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ddd;
  text-decoration: none;
  font-size: 20px;
  transition: all 0.25s ease;
}

.ng-fab:hover {
  background: var(--ng-accent, #00b7ff);
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .ng-chapter-title {
    font-size: 1rem;
  }

  .ng-chapter-footer {
    gap: 10px;
    bottom: 15px;
  }

  .ng-fab {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

/* Animations */
@keyframes fadeUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.ng-chapter-footer {
  animation: fadeUp 0.4s ease-out;
}
