/* books.css */

/* ===================== */
/* NEW BOOK */
/* ===================== */

.new-book {
  padding: 120px 5% 90px 5%;
  background:
    linear-gradient(
      rgba(0, 0, 0, 0),
      rgba(0, 0, 0, 0.45)
    ),
    url("../images/elements/bkgd_symbols.png");
  
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border: 1px solid rgba(255,255,255,0.06);
}

.new-book-content {
  display: flex;
  gap: 80px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.new-book-cover {
  position: relative;
}

.new-book-cover img {
  width: 320px;
  position: relative;
  z-index: 2;
  display: block;
  margin: 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

/* Soft blurred effect around The Maker's Regret cover image */
.new-book-cover img[src*="tmr_cover.png"] {
  box-sizing: border-box;
  border: none;
  border-radius: 2px;
  padding: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 0 28px rgba(255,255,255,0.10);
}

.new-book-cover::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 8%;
  width: 72%;
  height: 26%;
  background: rgba(180,180,180,0.60);
  filter: blur(20px);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}

.new-book-text h2 {
  font-family: 'Cinzel', serif;
  font-size: 3rem;

  margin-bottom: 30px;
}

.new-book-text p {
  margin-bottom: 20px;

  line-height: 1.8;
  color: #c2baac;
}

.new-book-buttons {
  display: flex;
  gap: 18px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* ======================================== */
/* BOOKS PAGE — TABLET AND MOBILE */
/* ======================================== */

@media (max-width: 900px) {

  .new-book {
    padding:
      calc(var(--navbar-height, 84px) + 48px)
      24px
      64px;

    background-position: center top;
  }

  .new-book-content {
    width: 100%;
    max-width: 680px;

    flex-direction: column;
    align-items: center;

    gap: 42px;
  }

  .new-book-cover {
    width: min(72vw, 300px);
  }

  .new-book-cover img {
    width: 100%;
    height: auto;
  }

  .new-book-text {
    width: 100%;

    text-align: center;
  }

  .new-book-text h2 {
    font-size: clamp(2.3rem, 8vw, 3rem);
    line-height: 1.15;

    margin-bottom: 26px;
  }

  .new-book-text p {
    max-width: 620px;

    margin-right: auto;
    margin-bottom: 20px;
    margin-left: auto;

    text-align: left;

    font-size: 1rem;
    line-height: 1.75;
  }

  .new-book-text .book-release {
    margin-top: 30px;

    text-align: center;
  }

  .new-book-text .book-release h3 {
    font-size: 1.15rem;
    line-height: 1.5;
  }

  .new-book-buttons {
    justify-content: center;
  }

}


/* ======================================== */
/* BOOKS PAGE — SMALL PHONES */
/* ======================================== */

@media (max-width: 600px) {

  .new-book {
    padding:
      calc(var(--navbar-height, 84px) + 32px)
      18px
      48px;

    border-right: none;
    border-left: none;
  }

  .new-book-content {
    gap: 34px;
  }

  .new-book-cover {
    width: min(78vw, 270px);
  }

  .new-book-cover::after {
    bottom: 6%;

    width: 68%;
    height: 22%;

    filter: blur(16px);
  }

  .new-book-text h2 {
    font-size: clamp(2rem, 10vw, 2.6rem);
    line-height: 1.15;

    margin-bottom: 22px;
  }

  .new-book-text p {
    margin-bottom: 18px;

    font-size: 0.96rem;
    line-height: 1.72;
  }

  .new-book-text .book-release {
    margin-top: 26px;
  }

  .new-book-text .book-release h3 {
    font-size: 1.02rem;
  }

  .new-book-buttons {
    width: 100%;

    margin-top: 24px;
  }

  .new-book-buttons .btn-primary {
    width: 100%;
    max-width: 240px;

    text-align: center;
  }

}