/* ====== Root Variables ====== */
:root {
  --primary: #F0B90B;
  --bg: #0d0d0d;
  --panel: #141414;
  --muted: #bfbfbf;
}

/* ====== Global ====== */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background-color: var(--bg);
  color: #e8e8e8;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

/* ====== HERO SECTION ====== */
.hero {
  display: flex;
  gap: 2rem;
  padding: 2.5rem 1rem;
  flex-wrap: wrap;
}

/* kiri text - 45% */
.hero-left {
  flex: 1 1 45%;
  min-width: 250px;
  padding: 2rem;
  border-radius: 12px;
}

.hero-left h1 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.hero-left p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.cta-btn {
  display: inline-block;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--primary), #e6a800);
  color: #000;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(240,185,11,0.3);
}

/* kanan new novel - 45% */
.hero-right {
  flex: 1 1 45%;
  min-width: 250px;
  padding: 1.25rem;
  background: linear-gradient(180deg, #161616, #0f0f0f);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.featured {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  text-align: center;
}

.featured img {
  width: 100%;
  max-width: 500px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 0.5rem;
}

.featured h2 {
  color: var(--primary);
  font-size: 1.1rem;
  margin: 0;
}

.featured h3 {
  color: var(--muted);
  font-size: 1rem;
  margin: 0;
}

/* ====== GRID SECTION ====== */
.grid-section {
  padding: 2rem 1rem;
}

.grid-section h2 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.novel-card {
  background: linear-gradient(180deg, #131313, #0e0e0e);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.03);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s;
  min-height: 280px;
}

.novel-card:hover {
  transform: translateY(-3px);
}

.novel-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.novel-body {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.novel-title {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1000px) {
  .hero {
    flex-direction: column;
  }
  .hero-left, .hero-right {
    flex: 1 1 100%;
  }
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid-container {
    grid-template-columns: 1fr;
  }
  .hero-left h1 {
    font-size: 1.5rem;
  }
  .hero {
    padding: 1rem;
  }
}

/* ====== Utility ====== */
.center { text-align: center; }
.muted { color: var(--muted); }
.loading-box {
  padding: 1rem;
  background: linear-gradient(180deg,#0f0f0f,#0b0b0b);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.02);
  color: var(--muted);
}
