body {
  background: #F5EFE7;
  color: #272624;
  font-family: 'Montserrat', Arial, sans-serif;
  margin: 0;
  padding: 0;
}

/* ==========================
   NAVIGATION BAR STYLES - matches About page
   ========================== */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: #725561cc;
  padding: 1rem 1.5rem 1rem 1.5rem;
  position: relative;
  z-index: 10;
}
.main-nav .logo {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #F5EFE7;
  letter-spacing: 2px;
  font-weight: bold;
  margin-right: auto;
}
.main-nav .logo-link {
  color: #F5EFE7;
  text-decoration: none;
  font-weight: bold;
}
.main-nav nav ul {
  display: flex;
  gap: 1.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: center;
}
.main-nav nav ul li a {
  color: #F5EFE7;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  letter-spacing: 1px;
  border-radius: 8px;
  transition: color 0.2s, background 0.22s;
  padding: 0.33em 0.95em;
}
.main-nav nav ul li a.active,
.main-nav nav ul li a:hover {
  color: #FFD700;
  background: #4c384b33;
}
#menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #F5EFE7;
  margin-left: 1.2rem;
  cursor: pointer;
}
@media (max-width: 900px) {
  .main-nav {
    flex-direction: row;
    padding: 1rem 1.5rem 1rem 1.5rem;
  }
  .main-nav nav {
    position: relative;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }
  #menu-toggle {
    display: inline-block;
    z-index: 110;
    background: none;
    border: none;
    font-size: 2rem;
    color: #F5EFE7;
    margin-left: 1.2rem;
    cursor: pointer;
  }
  .main-nav nav ul {
    display: none;
    flex-direction: column;
    background: #725561ee;
    position: absolute;
    top: 62px;
    right: 0;              /* <-- Menu opens under hamburger on right */
    left: auto;
    width: 170px;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 8px 24px rgba(39,38,36,0.13);
    z-index: 100;
    padding-bottom: 1rem;
    align-items: flex-end; /* links align to right edge of dropdown */
    margin: 0;
  }
  .main-nav nav ul.open { display: flex; }
}

/* ==========================
   END NAV BAR
   ========================== */

header {
  background: transparent;
  padding: 0;
}

.books-hero {
  text-align: center;
  padding: 2rem 1rem 1rem 1rem;
  background: transparent;
}
.books-hero h1 {
  font-family: 'Playfair Display', serif;
  color: #725561;
  font-size: 2.3rem;
  margin-bottom: 0.5rem;
}
.books-jump {
  margin: 1rem 0 0.5rem 0;
}
.books-jump a {
  display: inline-block;
  margin: 0 0.6rem;
  color: #725561;
  text-decoration: underline;
  font-weight: bold;
  font-size: 1.08rem;
  transition: color 0.2s;
}
.books-jump a:hover { color: #FFD700; }
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.2rem;
}
.genre-section {
  margin: 2.5rem 0;
  padding: 2rem 1rem;
  border-radius: 20px;
  box-shadow: 0 2px 18px rgba(39,38,36,0.08);
  position: relative;
  overflow: hidden;
}

/* Thrillers: black gradient, white text, subtle overlay */
.genre-section.thrillers {
  background: linear-gradient(115deg, #111215 75%, #272624 100%);
  color: #F5EFE7;
  box-shadow: 0 4px 32px rgba(39,38,36,0.13);
}
.genre-section.thrillers h2,
.genre-section.thrillers .book-info h3,
.genre-section.thrillers .release,
.genre-section.thrillers p {
  color: #F5EFE7;
  position: relative;
  z-index: 1;
}
.genre-section.thrillers .book-info h3 {
  color: #FFD700;
}
.genre-section.thrillers .release {
  color: #B6D6C6;
  opacity: 0.9;
}
.genre-section.thrillers .book-info p {
  color: #ECECEC;
}
.genre-section.thrillers .book-card {
  background: #222226ee;
  box-shadow: 0 3px 12px rgba(39,38,36,0.18);
}
.genre-section.thrillers .read-more-btn {
  background: #FFD700;
  color: #272624;
}
.genre-section.thrillers .read-more-btn:hover {
  background: #272624;
  color: #FFD700;
  border: 1.2px solid #FFD700;
}

/* Love Stories: dark plum book cards, gold accent for h3 only */
.genre-section.love {
  background: linear-gradient(115deg, #C4A5A0 77%, #725561 100%);
  color: #F5EFE7;
  border: 2.5px solid #FFD70022;
  box-shadow: 0 6px 32px rgba(196,165,160,0.07);
}
.genre-section.love h2 { color: #FFD700;}
.genre-section.love .book-info h3 { color: #FFD700; }
.genre-section.love .release { color: #FFD700; opacity: 0.95;}
.genre-section.love .book-info p { color: #fff; }
.genre-section.love .love-card {
  background: #725561;
  color: #fff;
  box-shadow: 0 4px 18px rgba(114,85,97,0.20);
}
.genre-section.love .love-card .book-info h3 { color: #FFD700; }
.genre-section.love .love-card .book-info p { color: #fff; }
.genre-section.love .love-card .release { color: #FFD700; }
.genre-section.love .read-more-btn {
  background: #FFD700;
  color: #725561;
}
.genre-section.love .read-more-btn:hover {
  background: #fff;
  color: #725561;
  border: 1.2px solid #FFD700;
}
.books-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2.2rem;
  justify-content: flex-start;
}
.book-card {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 10px rgba(39,38,36,0.13);
  width: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.1rem 1rem 1.4rem 1rem;
  margin-bottom: 1rem;
  min-height: 330px;
  position: relative;
  z-index: 1;
  transition: box-shadow 0.2s;
}
.book-card:hover { box-shadow: 0 8px 24px rgba(39,38,36,0.18);}
.book-img {
  width: 110px;
  height: 160px;
  object-fit: cover;
  border-radius: 7px;
  box-shadow: 0 2px 10px rgba(39,38,36,0.13);
  margin-bottom: 0.7rem;
  background: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.book-img:hover {
  transform: scale(1.09) rotate(-2deg);
  box-shadow: 0 10px 28px rgba(114,85,97,0.15),0 2px 10px rgba(39,38,36,0.14);
}
.book-info {
  text-align: left;
}
.book-info h3 {
  margin-bottom: 0.2rem;
  font-size: 1.08rem;
  margin-top: 0.6rem;
}
.book-info p {
  font-size: 0.99rem;
  margin-bottom: 0;
  line-height: 1.5;
}
.release {
  display: block;
  font-size: 0.93rem;
  margin-bottom: 0.24em;
  opacity: 0.8;
}
.read-more-btn {
  border: none;
  border-radius: 20px;
  padding: 0.5em 1.2em;
  font-size: 1em;
  margin: 0.8em 0 0 0;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s;
  outline: none;
}

footer {
  text-align: center;
  background: #725561;
  color: #F5EFE7;
  padding: 1.2rem 0;
  margin-top: 2rem;
}
.social a {
  color: #FFD700;
  text-decoration: none;
  margin: 0 0.5rem;
}
@media (max-width: 900px) {
  .books-grid { flex-direction: column; align-items: center; gap: 1.2rem;}
  .book-card { width: 98%; min-height: 0;}
  main { padding: 0 0.3rem;}
  .genre-section { padding: 1.1rem 0.4rem;}
}

/* MODAL styles */
#modal-bg {
  display: none;
  position: fixed;
  z-index: 80;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(39,38,36,0.54);
  transition: opacity 0.25s;
}
.modal {
  display: none;
  position: fixed;
  z-index: 99;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  max-width: 96vw;
  max-height: 96vh;
  border-radius: 20px;
  box-shadow: 0 6px 44px rgba(39,38,36,0.21);
  padding: 2.1em 2em 2em 2em;
  animation: modalIn 0.3s;
  overflow-y: auto;
  background: #fff;
}
@keyframes modalIn {
  from { opacity: 0; transform: translate(-50%,-47%);}
  to { opacity: 1; transform: translate(-50%,-50%);}
}
.modal-content { text-align: center;}
.modal-content h3 { margin-top: 1em; font-size: 1.3rem;}
.modal-book-img {
  width: 220px;
  height: 320px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 30px rgba(114,85,97,0.20);
  background: #fff;
}
.modal .close {
  position: absolute;
  top: 0.8em; right: 1.2em;
  font-size: 2.2rem;
  color: #725561;
  font-weight: bold;
  cursor: pointer;
  background: none;
  border: none;
}
.dark-modal {
  background: linear-gradient(115deg, #111215 80%, #272624 100%);
  color: #F5EFE7;
}
.dark-modal h3, .dark-modal p, .dark-modal strong { color: #FFD700; }
.love-modal {
  /* Dark, rich plum with a slight gradient for depth */
  background: linear-gradient(115deg, #452946 85%, #725561 100%);
  color: #fff;
  box-shadow: 0 8px 44px rgba(114,85,97,0.40);
  border: 2.5px solid #FFD70033;
}
.love-modal h3,
.love-modal strong {
  color: #FFD700;
}
.love-modal p {
  color: #fff;
}
.books-intro.emotional-intro {
  background: #725561;
  color: #fff;
  max-width: 650px;
  margin: 0 auto 1.4em auto;
  border-radius: 18px;
  padding: 1.2em 2em 1.15em 2em;
  font-size: 1.18rem;
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.01em;
  text-align: center;
  box-shadow: 0 3px 22px rgba(114,85,97,0.09);
}
@media (max-width:600px) {
  .books-intro.emotional-intro {
    padding: 0.9em 0.4em;
    font-size: 1em;
  }
}

/* Submenu styles */
.has-submenu { position: relative; }
.has-submenu > .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #725561ee;
  border-radius: 0 0 12px 12px;
  min-width: 220px;
  padding: .4rem 0;
  margin: 0;
  list-style: none;
  box-shadow: 0 8px 24px rgba(39,38,36,.13);
}

.has-submenu > .submenu li a {
  display: block;
  padding: .55rem .95rem;
  color: #F5EFE7;
  text-decoration: none;
}
.has-submenu > .submenu li a:hover {
  background: #4c384b33;
  color: #FFD700;
}
/* Mobile: show submenu inline inside the opened menu */
@media (max-width: 900px) {
  .has-submenu > .submenu {
    position: static;
    width: 100%;
    min-width: 0;
    box-shadow: none;
  }
}

/* Make heading links look like headings (no blue/underline) */
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a,
.title-link { color: inherit; text-decoration: none; }
h1 a:visited, h2 a:visited, h3 a:visited, h4 a:visited, h5 a:visited, h6 a:visited,
.title-link:visited { color: inherit; }
h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover,
.title-link:hover { text-decoration: none; color: inherit; }
.title-link:focus-visible { outline: 2px dashed #FFD700; outline-offset: 2px; }





/* Click-to-open submenu (hidden by default) */
.has-submenu > .submenu { display: none; }
.has-submenu.open > .submenu { display: block; }


/* Click-to-open submenu (hidden by default) */
.has-submenu > .submenu { display: none; }
.has-submenu.open > .submenu { display: block; }

/* Mobile: let submenu flow inside dropdown panel */
@media (max-width: 900px){
  .has-submenu > .submenu { position: static; width: 100%; min-width: 0; box-shadow: none; }
}

/* Click-to-open submenu (hidden by default) */
.has-submenu > .submenu { display: none; }
.has-submenu.open > .submenu { display: block; }

/* Mobile: let submenu flow inside dropdown panel */
@media (max-width: 900px){
  .has-submenu > .submenu { position: static; width: 100%; min-width: 0; box-shadow: none; }
}


/* Mobile: let submenu flow inside dropdown panel */
@media (max-width: 900px){
  .has-submenu > .submenu { position: static; width: 100%; min-width: 0; box-shadow: none; }
}


/* Logo image */
.logo-img{
  height: 96px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(39,38,36,0.18));
}
@media (max-width: 900px){
  .logo-img{ height: 72px; }
}
