/* Reset & Variabel Dark Mode Minimalis (Gaya TheManga) */
:root {
  --bg-main: #0f0f12;
  --bg-card: #18181d;
  --bg-hover: #22222a;
  --text-primary: #f3f4f6;
  --text-muted: #9ca3af;
  --accent: #6366f1; /* Warna aksen utama */
  --donate: #be1e2d; /* Warna aksen Trakteer/Ko-fi */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Navbar Sticky & Ringan */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 15, 18, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #27272a;
  padding: 12px 0;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
}

.logo span {
  color: var(--accent);
}

.search-box input {
  background: var(--bg-card);
  border: 1px solid #2e2e38;
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: 8px;
  width: 240px;
  outline: none;
}

.search-box input:focus {
  border-color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
}

.btn-donate {
  background: var(--donate);
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
}

/* Grid Komik Voratoon Style (Mobile-First) */
.latest-section {
  margin: 28px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.view-all {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
}

.manga-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

/* Kartu Horizontal agar Cover + 3 Chapter langsung terbaca rapi di HP & Desktop */
.manga-card {
  background: var(--bg-card);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  gap: 14px;
  padding: 12px;
  border: 1px solid #232329;
}

.cover-wrapper {
  position: relative;
  width: 105px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}

.cover-wrapper img {
  width: 100%;
  height: 148px;
  object-fit: cover;
  display: block;
}

.badge-type {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.manga-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.manga-title a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.chapter-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.chapter-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-main);
  padding: 5px 10px;
  border-radius: 6px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.8rem;
  transition: background 0.15s;
}

.chapter-list a:hover {
  background: var(--bg-hover);
}

.chapter-list time {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.tag-new {
  background: var(--accent);
  color: #fff;
  font-style: normal;
  font-size: 0.6rem;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 4px;
  font-weight: 700;
}
