/*
Theme Name: Novel Kamu
Theme URI: https://novelis.fun/
Author: Mulu
Description: Tema WordPress khusus web novel
Version: 1.0
*/

/* ===== 1. RESET DAN DASAR ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: sans-serif;
  line-height: 1.6;
  background: #100800; /* Dark brown background */
  color: #39ff14; /* Green neon text */
}

/* ===== 2. HEADER DAN MENU ===== */
header {
  background-color: #3a2a1a; /* Dark brown header */
  color: #39ff14; /* Green neon text */
  padding: 1rem;
}
a {
  color: #39ff14 !important; /* Green neon for links */
  text-shadow: 0 0 3px #39ff14; /* Green glow effect */
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 1.5rem;
}
.nav-menu {
  display: none;
  flex-direction: column;
  background: #2a1a0a;
  position: absolute;
  top: 70px;
  right: 0;
  width: 200px;
  padding: 1rem;
}
.nav-menu a {
  color: #39ff14;
  text-decoration: none;
}
.nav-menu.active {
  display: flex;
}

/* ===== 3. HAMBURGER MENU UNTUK MOBILE ===== */
.hamburger {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.hamburger span {
  height: 3px;
  width: 25px;
  background: #39ff14; /* Green neon */
  margin: 4px 0;
}

/* ===== 4. RESPONSIVE MENU UNTUK LAYAR BESAR ===== */
@media (min-width: 768px) {
  .nav-menu {
    display: flex;
    flex-direction: row;
    position: static;
    background: none;
    width: auto;
    padding: 0;
  }
  .hamburger {
    display: none;
  }
}

/* ===== 5. KONTEN DAN LAYOUT UMUM ===== */
main {
  padding: 1rem;
}
.page-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}
footer {
  background: #3a2a1a; /* Dark brown footer */
  color: #39ff14; /* Green neon text */
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

/* ===== 6. GRID DAN LAYOUT ===== */
.layout-2col {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}
.left-col {
  flex: 2;
  min-width: 300px;
}
.right-col {
  flex: 1;
  min-width: 250px;
}

/* ===== 7. DAFTAR CHAPTER ===== */
.chapter-list a {
  display: block;
  padding: 8px;
  border-bottom: 1px solid #2a1a0a;
  text-decoration: none;
  color: #39ff14;
}
.chapter-list a:hover {
  background: #2a1a0a;
}
.chapter-list p {
  font-size: 13px;
  line-height: 1.2;
  color: #39ff14;
  margin-top: 7px;
}

/* ===== 8. PREVIEW CHAPTER ===== */
.chapter-preview {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 6px;
  border: 1px solid #39ff14;
  border-radius: 8px;
  margin-bottom: 8px;
  background-color: #2a1a0a; /* Dark brown 85 */
  box-shadow: 0 0 10px #39ff14; /* Green neon glow */
}
.chapter-cover {
  width: 80px;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
}
.chapter-snippet {
  flex: 1;
  margin: 0;
  font-size: 35px;
  line-height: 1.3;
  color: #39ff14 !important;
}
@media (min-width: 768px) {
  .chapter-preview {
    padding: 12px;
    gap: 12px;
    margin-bottom: 16px;
  }
  .chapter-snippet {
    font-size: 20px;
    line-height: 1.5;
  }
}

/* ===== 9. GENRE DAN LIST NOVEL ===== */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.genre-grid a {
  display: block;
  background: #2a1a0a !important; /* Dark brown 85 */
  padding: 10px;
  text-align: center;
  border-radius: 5px;
  color: #39ff14 !important;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 0 10px #39ff14; /* Green neon glow */
}
.genre-grid a:hover {
  background: #3a2a1a !important;
}
@media (min-width: 768px) {
  .genre-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.novel-list a {
  display: block;
  padding: 6px 8px;
  border-bottom: 1px solid #2a1a0a;
  text-decoration: none;
  color: #39ff14;
}
.novel-list a:hover {
  background: #2a1a0a;
}

/* ===== 10. HURUF INDEX ===== */
.letter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(25px, 1fr));
  gap: 5px;
  margin-bottom: 20px;
}
.letter-grid a {
  display: block;
  text-align: center;
  padding: 6px;
  background: #2a1a0a !important; /* Dark brown 85 */
  text-decoration: none;
  color: #39ff14 !important;
  border-radius: 3px;
  font-weight: bold;
  box-shadow: 0 0 2px #39ff14; /* Green neon glow */
}
.letter-grid a:hover {
  background: #3a2a1a !important;
}

/* ===== 11. JUDUL ===== */
h1 {
  font-size: 24px;
  line-height: 1.3;
  margin-bottom: 15px;
  text-align: center;
  color: #39ff14;
}
@media (min-width: 768px) {
  h1 {
    font-size: 20px;
  }
}

/* ===== 12. NAVIGASI CHAPTER ===== */
.chapter-nav, .chapter-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
  padding: 0 10px;
}
.chapter-nav a,
.chapter-controls button {
  padding: 8px 12px;
  background-color: #2a1a0a !important; /* Dark brown 85 */
  color: #39ff14 !important;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  flex: 1 1 auto;
  min-width: 60px;
  transition: background 0.3s ease;
  box-shadow: 0 0 6px #39ff14; /* Green neon glow */
}
.chapter-nav a:hover {
  background-color: #3a2a1a !important;
}
@media (min-width: 768px) {
  .chapter-nav a,
  .chapter-controls button {
    font-size: 16px;
    padding: 10px 16px;
    min-width: auto;
  }
}

/* ===== 13. GAMBAR SAMPUL ===== */
.gambar-sampul {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  height: auto;
}

/* ===== 14. GRID CHAPTER ===== */
.chapter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(75px, 1fr));
  gap: 5px;
  margin-top: 10px;
}
.chapter-grid a {
  display: block;
  background: #2a1a0a !important; /* Dark brown 85 */
  padding: 14px 0;
  text-align: center;
  font-weight: bold;
  font-size: 16px;
  border-radius: 6px;
  text-decoration: none;
  color: #39ff14 !important;
  transition: background 0.2s ease;
  box-shadow: 0 0 6px #39ff14; /* Green neon glow */
}
.chapter-grid a:hover {
  background: #3a2a1a !important;
}
@media (min-width: 768px) {
  .chapter-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
  .chapter-grid a {
    font-size: 20px;
    padding: 24px 0;
  }
}

/* ===== 15. SEARCH ===== */
.header-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.search-toggle {
  cursor: pointer;
  font-size: 1.2rem;
  color: #39ff14;
}
.search-form {
  display: none;
  position: absolute;
  right: 10px;
  top: 65px;
}
.search-form input {
  width: 160px;
  padding: 6px 10px;
  font-size: 1rem;
  border-radius: 4px;
  border: 1px solid #39ff14;
  background: #2a1a0a;
  color: #39ff14;
}
.search-form.active {
  display: block;
}
@media (min-width: 768px) {
  .search-form {
    right: 60px;
    top: 20px;
  }
}

/* Pagination Styles */
.pagination-wrap {
    margin: 30px 0;
    text-align: center;
}

.pagination {
    display: inline-block;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination li {
    display: inline;
    margin: 0 2px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 5px 12px;
    text-decoration: none;
    border: 1px solid #39ff14;
    color: #39ff14;
    background: #2a1a0a;
}

.pagination a:hover {
    background-color: #3a2a1a;
}

.pagination .current {
    background-color: #39ff14;
    color: #2a1a0a;
    border-color: #39ff14;
}

/* Table Styles */
.chapter-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.chapter-table th,
.chapter-table td {
    padding: 10px;
    border: 1px solid #39ff14;
    text-align: left;
    color: #39ff14;
    background: #2a1a0a;
}

.chapter-table th {
    background-color: #3a2a1a;
}