/* ===========================
   Base
   =========================== */

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #222;
  background-color: #fafafa;
}

.site-content .content-wrapper {
  width: 80%;
  max-width: 960px;
  margin: 2rem auto;
}

/* ===========================
   Navigation Bar
   =========================== */

.site-header {
  background-color: #2196F3;
  color: #fff;
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 80%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0.75rem 0;
}

/* Left title */
.site-title {
  font-weight: 600;
  text-decoration: none;
  color: #fff;
}

.site-title:hover {
  color: #f37e21;
}

/* Hamburger button (mobile only) */
.nav-toggle {
  font-size: 2rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  display: block;
}

/* Menu container */
.nav-menu {
  display: none;
  flex-direction: column;
  width: 100%;
  background-color: #2196F3;
  padding-top: 1rem;
}

/* Menu links */
.nav-link {
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 0;
  text-align: right;
  font-size: 1.2rem;
  font-weight: 500;
}

.nav-link:hover {
  color: #f37e21;
}

/* When menu is open */
.nav-menu.open {
  display: flex;
}

/* Desktop view */
@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    display: flex !important;
    flex-direction: row;
    gap: 1.5rem;
    background: none;
    width: auto;
    padding: 0;
  }

  .nav-link {
    padding: 0;
    font-size: 1rem;
  }
}

/* ===========================
   Title + Subtitle Styling
   =========================== */

.page-header,
.post-header {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-title,
.post-title {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.page-subtitle,
.post-subtitle {
  font-size: 1.4rem;
  font-weight: normal;
  color: #555;
  margin-top: 0;
  margin-bottom: 20px;
}

/* Half-width horizontal rule */
.page-divider,
.post-divider {
  width: 50%;
  margin: 0 auto;
  border: 0;
  border-top: 1px solid #ccc;
}

/* ===========================
   Book Header (Image + Info)
   =========================== */

.book-header,
.book-header1 {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.book-header img {
  width: 188px;
  height: auto;
  float: left;
}

.book-header1 img {
  width: 300px;
  height: auto;
  float: left;
}

.book-info {
  flex: 1;
}

.book-info p {
  margin: 0 0 10px 0;
}

/* Mobile-friendly collapse */
@media (max-width: 768px) {
  .book-header,
  .book-header1 {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .book-header img,
  .book-header1 img {
    float: none;
    margin-bottom: 15px;
  }

  .book-info {
    text-align: left;
  }
}

/* ===========================
   Footer
   =========================== */

.site-footer {
  text-align: center;
  padding: 1.5rem 0;
  background-color: #eee;
  margin-top: 3rem;
}

/* ===========================
   Post Excerpts
   =========================== */

.post-excerpt h2 {
  margin-bottom: 0.25rem;
}

.post-meta {
  font-size: 0.9rem;
  color: #666;
}

/* ===========================
   Pagination
   =========================== */

.index-pagination,
.post-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
}

.index-pagination a,
.post-pagination a {
  text-decoration: none;
  color: #2196F3;
}

.index-pagination a:hover,
.post-pagination a:hover {
  color: #f37e21;
}

/* ===========================
   Archives
   =========================== */

.archive-by-year h3 {
  margin-top: 1.5rem;
}

/* ===========================
   Responsive Layout
   =========================== */

@media (max-width: 768px) {
  .nav-bar,
  .site-content .content-wrapper {
    width: 90%;
  }
}

/* ===========================
   Progress Bars & Box Notes
   =========================== */

.status { width: 100%; }
.status p { margin: 0.25em; }
.stats { text-align: center; }
.statusbar { border: 1px solid #2196F3; margin-bottom: 2em; }
.statusfill { background-color: #2196F3; height: 10px; }

.box-note {
  background-color: #eee;
  border-left: 6px solid #2196F3;
  padding: 10px;
  margin-bottom: 15px;
}
