/* ===============================
   Base
================================ */
body {
  background-color: #0a0014;
  color: #f5f5f5;
  font-family: sans-serif;
  transition: color 0.3s, background-color 0.3s;
}

::selection {
  background: #ec4899;
  color: #000;
}

section {
  max-width: 1280px;
  margin: auto;
  padding: 1.5rem 1rem;
}

@media (min-width: 640px) {
  section { padding: 2.5rem 1rem; }
}

/* ===============================
   Container
================================ */
.custom-box {
  border-radius: 1rem;
  border: 1px solid rgba(34,211,238,0.4);
  background: rgba(15,12,41,0.8);
  backdrop-filter: blur(24px);
  box-shadow: 0 0 30px rgba(0,255,255,0.25);
  padding: 1rem;
}

@media (min-width: 640px) {
  .custom-box { padding: 2rem; }
}

/* ===============================
   Banner
================================ */
.banner {
  position: relative;
  height: clamp(18rem, 40vw, 520px);
  overflow: hidden;
  border-radius: 1.5rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 0 25px rgba(255,0,255,0.4);
}

.banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.25);
}

.banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 1.5rem;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.85),
    rgba(255,255,255,0.6)
  );
}

.dark .banner-overlay {
  background: linear-gradient(
    to bottom,
    rgba(10,0,20,0.75),
    rgba(10,0,20,0.95)
  );
}

.banner-title {
  font-size: clamp(1.8rem, 4vw, 3.75rem);
  font-weight: 800;
  color: #111827;
  text-shadow: 0 0 20px rgba(0,255,255,0.6);
}

.dark .banner-title {
  color: #e5faff;
}

.banner-subtext {
  margin-top: 1rem;
  max-width: 42rem;
  font-size: clamp(0.9rem, 2vw, 1.25rem);
  color: #374151;
}

.dark .banner-subtext {
  color: #c7f9ff;
}

.banner-btn {
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: bold;
  background: linear-gradient(to right,#22d3ee,#ec4899);
  color: #000;
  box-shadow: 0 0 15px #ff00ff;
  transition: all 0.3s ease;
}

.banner-btn:hover {
  filter: brightness(1.1);
}

/* ===============================
   Headings
================================ */
.section-heading,
.recommended-heading {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 3rem 0 1.5rem;
  color: #22d3ee;
  text-shadow: 0 0 10px #00ffff;
}

.recommended-heading {
  color: #f472b6;
  text-shadow: 0 0 10px #ff00ff;
}

/* ===============================
   Novel Grid
================================ */
.novel-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .novel-grid { grid-template-columns: repeat(2,1fr); }
}
@media (min-width: 1024px) {
  .novel-grid { grid-template-columns: repeat(4,1fr); }
}

/* ===============================
   Novel Card
================================ */
.novel-card {
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(17,17,34,0.75);
  border: 1px solid rgba(0,255,255,0.25);
  box-shadow: 0 0 15px rgba(0,255,255,0.3);
  transition: all 0.3s ease;
}

.novel-card:hover {
  box-shadow: 0 0 25px rgba(0,255,255,0.6);
}

.novel-image {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.novel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.novel-card:hover .novel-img {
  transform: scale(1.05);
}

.novel-status {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 0.375rem;
  background: rgba(17,24,39,0.8);
  color: #22d3ee;
}

/* ===============================
   Novel Content
================================ */
.novel-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.novel-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #22d3ee;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.novel-author {
  font-size: 0.875rem;
  color: #f472b6;
}

.novel-chapter,
.novel-updated {
  font-size: 0.75rem;
  color: #a5f3fc;
}

/* ===============================
   Progress
================================ */
.progress-bar {
  margin-top: 0.75rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: #1f2937;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(to right,#22d3ee,#ec4899);
}

/* ===============================
   Button
================================ */
.novel-btn {
  margin-top: auto;
  padding: 0.5rem 1rem;
  text-align: center;
  font-weight: 600;
  border-radius: 9999px;
  background: linear-gradient(to right,#06b6d4,#ec4899);
  color: #000;
  box-shadow: 0 0 10px rgba(0,255,255,0.6);
  transition: all 0.3s ease;
}

.novel-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

/* ===============================
   Pagination
================================ */
.pagination {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.pagination a,
.pagination span {
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  font-weight: 600;
  background: #e5e7eb;
  color: #111827;
}

.pagination-current {
  background: linear-gradient(to right,#22d3ee,#ec4899);
  color: #000;
}
