/* ================= GLOBAL ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #f5f5f5;
}

/* ================= NAVBAR ================= */
.navbar {
  background: linear-gradient(135deg, #FD6569, #FF8A8A);
  color: white;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
 
  top: 10px;
  margin: 10px;
  backdrop-filter: blur(8px);
  transition: 0.3s ease;
}
.navbar:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.35);
}
.navbar h1 {
  margin: 0;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* ================= CONTAINER ================= */
.container {
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* ================= BOOK CARD ================= */
.book-container {
  width: 330px;
  height: 330px;
  padding: 15px;
  border-radius: 12px;
  background: #000;
  color: white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
  transition: 0.3s ease;
}

.book-container:hover {
  transform: scale(1.05);
}

/* Text */
.book-container h2 {
  color: #FD6569;
  font-size: 20px;
  margin-bottom: 6px;
}

.book-container h5 {
  font-size: 15px;
  font-weight: 400;
  margin-bottom: 6px;
}

.book-container p {
  font-size: 14px;
  line-height: 1.4;
  max-height: 65px;
  overflow: hidden;
}

/* Spotify Embed */
.book-container iframe {
  width: 100%;
  height: 80px;
  border-radius: 10px;
  border: none;
}

/* ================= BUTTONS ================= */
button {
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

/* Delete Button */
.book-container button.delete-btn {
  width: 100%;
  padding: 10px;
  margin-top: 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff4b4b, #d63031);
  color: white;
}

.book-container button.delete-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 75, 75, 0.5);
}

/* Extra Link Button */
.book-container a.link-btn {
  display: block;
  text-align: center;
  width: 100%;
  padding: 10px;
  margin-top: 8px;
  border-radius: 8px;
  background: linear-gradient(135deg, #fd6569, #ff8a8a);
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.book-container a.link-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(253, 101, 105, 0.5);
}

/* ================= FLOATING ADD BUTTON ================= */
#add-popup-button {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fd6569, #ff8a8a);
  color: white;
  font-size: 34px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

#add-popup-button:hover {
  transform: scale(1.15);
}

/* ================= POPUP ================= */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  z-index: 999;
}

.popup-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  width: 90%;
  max-width: 400px;
  padding: 20px;
  border-radius: 12px;
  display: none;
  z-index: 1000;
}

.popup-box h2 {
  color: #FD6569;
  margin-bottom: 10px;
}

.popup-box input,
.popup-box textarea {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* Popup Buttons */
.popup-box button {
  width: 100%;
  padding: 10px;
  margin-top: 8px;
  border-radius: 6px;
  background: linear-gradient(135deg, #fd6569, #ff8a8a);
  color: white;
}

.popup-box button:hover {
  transform: scale(1.05);
}

/* ================= MOBILE ================= */
@media (max-width: 600px) {
  .book-container {
    width: 100%;
    height: auto;
  }
}
