/* ==== GLOBAL ==== */
body {
  margin: 0;
  font-family: "Nunito", sans-serif;
  background:
    linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
    url("background.jpg") no-repeat center center fixed;
  background-size: cover;
  color: #222;
  line-height: 1.6;
}

.wrap {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 1.5rem;
}

/* ==== HEADER ==== */
header {
  text-align: center;
  margin-bottom: 2.5rem;
}

h1 {
  font-family: "Baloo 2", cursive;
  font-size: 3rem;
  color: #c73524;
}

.muted {
  color: #333;
  font-size: 1.05rem;
}

/* ==== GRID ==== */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

/* ==== CARDS ==== */
.card {
  background: #f7f3ee;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  padding: 2rem;
}

/* ==== BOOK COLUMN ==== */
.book-column {
  text-align: center;
}

.book-cover img {
  width: 100%;
  max-width: 360px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.buy-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* ==== BUTTONS ==== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.btn img {
  height: 22px;
  width: auto;
}

/* Amazon */
.btn.amazon {
  background: linear-gradient(to bottom, #f7d247 0%, #f1b70e 100%);
  color: #111;
}

.btn.amazon:hover {
  background: linear-gradient(to bottom, #ffd84d 0%, #e5a300 100%);
}

/* Audible */
.btn.audible {
  background: linear-gradient(to bottom, #ff8a00 0%, #e27a00 100%);
  color: #fff;
}

.btn.audible:hover {
  background: linear-gradient(to bottom, #ffa733 0%, #d96e00 100%);
}

/* Gift Submit */
button.btn {
  background: linear-gradient(to bottom, #e74c3c 0%, #c73524 100%);
  color: #fff;
}

button.btn:hover {
  background: linear-gradient(to bottom, #f05240 0%, #a82415 100%);
}

/* ==== FORM ==== */
label {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
}

input {
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.3rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus {
  border-color: #c73524;
  box-shadow: 0 0 6px rgba(199, 53, 36, 0.3);
  outline: none;
}

/* ==== NOOK SECTION ==== */
.nook-section {
  text-align: center;
  margin-top: 2rem;
}

.nook-section h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1.2rem;
}

.nook-gallery {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nook-gallery img {
  width: 100%;
  max-width: 220px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}

.nook-gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
}

/* ==== FOOTER ==== */
footer {
  text-align: center;
  margin-top: 2rem;
  color: #777;
  font-size: 0.9rem;
  padding-top: 1rem;
  border-top: 1px solid #ddd;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 900px) {
  .main-grid {
    grid-template-columns: 1fr;
  }

  /* Order on mobile: book → form → nook */
  .book-column { order: 1; }
  .form-column { order: 2; }
  .nook-section { order: 3; }

  .book-cover img {
    max-width: 320px;
  }
}
