/* ==========================
   GLOBAL + NAVIGATION
   ========================== */

.topnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0 10px 0;
}

.brand {
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-decoration: none;
  color: #222;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-link {
  font-weight: bold;
  text-decoration: none;
  color: #333;
  font-size: 15px;
}

.toggle-btn {
  padding: 6px 12px;
  background: #eee;
  border: 1px solid #aaa;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.nav-divider {
  margin-top: 10px;
  margin-bottom: 35px;
  border-color: #ccc;
}

/* ==========================
   FEATURED BOOK CARDS
   ========================== */

.book-card {
  border: 1px solid #ddd;
  background: #fafafa;
  padding: 18px;
  border-radius: 4px;
  display: flex;
  gap: 18px;
  height: 100%;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.book-card img {
  width: 70px;
  height: 100px;
  object-fit: cover;
  border: 1px solid #ccc;
  background: #eee;
  border-radius: 2px;
}

.book-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.book-title {
  margin-bottom: 5px;
}

.book-author {
  font-style: italic;
  opacity: 0.8;
  margin-bottom: 10px;
}

.book-column {
  display: flex;
  flex-direction: column;
  margin-bottom: 25px;
}

/* ==========================
   HERO / TOP SECTION
   ========================== */

.intro {
  margin-top: 40px;
  margin-bottom: 30px;
}

.tagline {
  color: #666;
}

/* ==========================
   FOOTER
   ========================== */

.footer {
  margin-top: 50px;
  padding: 25px 0;
  text-align: center;
  font-size: 13px;
  color: #777;
  border-top: 1px solid #ccc;
}

/* ==========================
   DARK MODE
   ========================== */

body.dark {
  background: #111;
  color: #eee;
}

body.dark h1,
body.dark h2,
body.dark h3,
body.dark h4,
body.dark h5,
body.dark p,
body.dark .tagline {
  color: #eee;
}

body.dark .brand,
body.dark .nav-link {
  color: #eee;
}

body.dark .toggle-btn {
  background: #333;
  color: #eee;
  border-color: #666;
}

body.dark .nav-divider,
body.dark .footer {
  border-color: #555;
  color: #aaa;
}

body.dark .book-card {
  background: #1a1a1a;
  border-color: #444;
  color: #eee;
}

body.dark .book-card img {
  border-color: #666;
}

.highlight {
  outline: 3px solid #cc0000;
  border-radius: 4px;
}
