@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #07111f;
  --panel: #0f1728;
  --panel-2: #131f33;
  --surface: #18253b;
  --line: rgba(148, 163, 184, 0.18);
  --text: #edf5ff;
  --muted: #bfd0e4;
  --accent: #8b5cf6;
  --accent-2: #22d3ee;
  --success: #34d399;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  color: var(--text);
  cursor: crosshair;
  user-select: none;
  background:
    radial-gradient(
      circle at top right,
      rgba(0, 243, 255, 0.05),
      transparent 70%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(255, 0, 255, 0.04),
      transparent 45%
    ),
    linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 0, 255, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, #04070d 0%, #07111f 45%, #02050a 100%);
  background-size:
    auto,
    auto,
    100% 26px,
    26px 100%,
    auto;
  text-shadow: 0 0 2px rgba(0, 243, 255, 0.08);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(0, 243, 255, 0.12) 1px,
    transparent 1.2px
  );
  background-size: 18px 18px;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    transparent 20%,
    transparent 80%,
    rgba(0, 243, 255, 0.02)
  );
  pointer-events: none;
  z-index: 0;
}

.site-shell,
.hero-header,
.main-nav,
.main-container {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  display: block;
}

.site-shell {
  width: min(1500px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.hero-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 18px;
}

.eyebrow,
.section-tag {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.78rem;
  color: var(--accent-2);
}

h1,
h2,
h3 {
  font-family: "Orbitron", sans-serif;
  letter-spacing: 1px;
  text-shadow: 0 0 5px rgba(0, 243, 255, 0.5);
}

h1 {
  margin: 8px 0 10px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.02;
}

.lead {
  max-width: 680px;
  color: #edf5ff;
  font-size: 0.98rem;
  line-height: 1.6;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
}

.button--primary {
  background: linear-gradient(135deg, var(--accent), #6366f1);
  color: #fff;
  box-shadow: 0 16px 35px rgba(139, 92, 246, 0.25);
}

.main-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.nav-link {
  text-decoration: none;
  color: var(--text);
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 600;
}

.nav-link.active,
.nav-link:hover {
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.25),
    rgba(34, 211, 238, 0.15)
  );
  border-color: rgba(139, 92, 246, 0.5);
}

.main-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}

.content-column,
.sidebar-column {
  min-width: 0;
}

.content-column,
.sidebar-column {
  display: grid;
  gap: 18px;
}

.panel {
  background: rgba(25, 25, 35, 0.72);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  background-image: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0)
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 243, 255, 0.3);
  border-radius: 14px;
  padding: 18px;
  box-shadow:
    0 0 5px rgba(0, 243, 255, 0.2),
    0 0 20px rgba(0, 243, 255, 0.1),
    inset 0 0 5px rgba(0, 243, 255, 0.1),
    0 14px 30px rgba(7, 11, 19, 0.35);
  position: relative;
  overflow: hidden;
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 243, 255, 0.04),
    transparent 25%,
    transparent 75%,
    rgba(255, 0, 255, 0.04)
  );
  pointer-events: none;
}

.panel--highlight {
  background:
    linear-gradient(145deg, rgba(34, 211, 238, 0.12), rgba(139, 92, 246, 0.15)),
    var(--panel);
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 12px;
}

.panel-heading h2,
.panel h2 {
  margin: 4px 0 0;
  font-size: 1.35rem;
}

.panel p {
  color: #eaf4ff;
  line-height: 1.6;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(52, 211, 153, 0.12);
  color: #bbf7d0;
  border: 1px solid rgba(52, 211, 153, 0.22);
  font-size: 0.9rem;
}

.cards-grid {
  display: grid;
  gap: 14px;
}

.cards-grid--updates {
  grid-template-columns: repeat(3, 1fr);
}

.cards-grid--novelas {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: stretch;
  gap: 20px;
}

.novel-card {
  align-items: stretch;
}

.update-card,
.novel-card {
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, rgba(16, 24, 41, 0.92), rgba(7, 11, 19, 0.98));
  border: 1px solid rgba(0, 243, 255, 0.28);
  border-radius: 18px;
  padding: 8px;
  min-height: 100%;
  clip-path: polygon(
    8px 0,
    100% 0,
    100% calc(100% - 8px),
    calc(100% - 8px) 100%,
    0 100%,
    0 8px
  );
  box-shadow: 0 0 12px rgba(0, 243, 255, 0.12);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.update-card:hover,
.novel-card:hover,
.panel:hover {
  border-color: #ff00ff;
  box-shadow:
    0 0 18px rgba(255, 0, 255, 0.35),
    0 0 30px rgba(0, 243, 255, 0.12),
    0 10px 24px rgba(0, 0, 0, 0.35);
  transform: translateY(-5px);
}

button:hover,
.nav-link:hover,
.button:hover {
  transform: translateY(-1px);
  transition: transform 0.2s ease;
}

.skeleton-card {
  pointer-events: none;
}

.is-hidden {
  display: none !important;
}

.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(0, 243, 255, 0.08);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 243, 255, 0.18),
    transparent
  );
  transform: translateX(-100%);
  animation: shimmer 1.1s infinite;
}

.skeleton-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  min-height: 110px;
  height: 140px;
  margin-bottom: 8px;
}

.skeleton-line {
  height: 10px;
  margin-bottom: 6px;
}

.skeleton-line.short {
  width: 60%;
}
.skeleton-line.tiny {
  width: 35%;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

.cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  min-height: 110px;
  height: 140px;
  border-radius: 12px;
  margin: 0 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.cards-grid--novelas .cover {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 3 / 4;
  min-height: 170px;
  height: 210px;
}

.cards-grid--novelas .novel-card {
  flex: 0 1 180px;
  width: 180px;
  max-width: 180px;
  margin: 0;
  padding: 10px;
}

.cover--sunset {
  background: linear-gradient(135deg, #fb7185, #8b5cf6);
}
.cover--night {
  background: linear-gradient(135deg, #1f2937, #0f172a);
}
.cover--forest {
  background: linear-gradient(135deg, #10b981, #0f766e);
}
.cover--aurora {
  background: linear-gradient(135deg, #38bdf8, #818cf8);
}
.cover--rose {
  background: linear-gradient(135deg, #f472b6, #a78bfa);
}
.cover--ember {
  background: linear-gradient(135deg, #fb923c, #ef4444);
}
.cover--midnight {
  background: linear-gradient(135deg, #111827, #312e81);
}

.update-card h3,
.novel-card h3 {
  margin: 0 0 4px;
  font-size: 0.98rem;
}

.update-card p,
.novel-card p {
  margin: 0 0 6px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #eff6ff;
}

.meta-list {
  margin: 0;
  padding-left: 16px;
  color: var(--muted);
  font-size: 0.88rem;
}

.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.search-box,
select {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 15, 25, 0.92);
  color: var(--text);
  padding: 10px 12px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 240px;
}

.search-box input {
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  width: 100%;
}

select {
  min-width: 150px;
}

.slider {
  display: grid;
}

.slide {
  display: none;
  gap: 10px;
}

.slide.active {
  display: grid;
}

.slide-visual {
  border-radius: 16px;
  height: 140px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background-size: cover;
  background-position: center;
}

.slide-visual--one {
  background: linear-gradient(
    135deg,
    rgba(56, 189, 248, 0.85),
    rgba(139, 92, 246, 0.7)
  );
}
.slide-visual--two {
  background: linear-gradient(
    135deg,
    rgba(52, 211, 153, 0.9),
    rgba(14, 165, 233, 0.75)
  );
}
.slide-visual--three {
  background: linear-gradient(
    135deg,
    rgba(251, 146, 60, 0.92),
    rgba(244, 63, 94, 0.75)
  );
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 10px 0 12px;
}

.stat-pill {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 243, 255, 0.22);
  background: rgba(10, 15, 24, 0.7);
  box-shadow: inset 0 0 8px rgba(0, 243, 255, 0.08);
}

.stat-pill strong {
  font-family: "Orbitron", sans-serif;
  color: #7cf7ff;
  font-size: 1.1rem;
}

.stat-pill span {
  color: #d9ebff;
  font-size: 0.88rem;
}

.slider-controls {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.dot.active {
  background: var(--accent-2);
}

@media (max-width: 1280px) {
  .main-container {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

@media (max-width: 1120px) {
  .main-container {
    grid-template-columns: 1fr;
  }

  .sidebar-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .hero-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-copy {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .lead {
    max-width: 100%;
  }

  .panel-heading,
  .panel-heading--wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .toolbar {
    width: 100%;
  }

  .search-box,
  select {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 860px) {
  .site-shell {
    width: min(100vw - 18px, 1500px);
    padding-top: 14px;
  }

  .main-nav {
    gap: 8px;
  }

  .nav-link {
    padding: 8px 12px;
    font-size: 0.95rem;
  }

  .cards-grid--updates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .cards-grid--updates,
  .cards-grid--novelas {
    grid-template-columns: 1fr;
  }

  .cards-grid--novelas {
    justify-content: stretch;
  }

  .cards-grid--novelas .novel-card {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
  }

  .toolbar {
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: min(100vw - 12px, 1500px);
    padding-bottom: 32px;
  }

  .panel,
  .update-card,
  .novel-card {
    border-radius: 16px;
  }

  h1 {
    font-size: clamp(1.7rem, 9vw, 2.2rem);
  }

  .button {
    width: 100%;
  }

  .main-nav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .nav-link {
    text-align: center;
  }

  .stat-grid {
    gap: 6px;
  }
}
