* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial;
  background: #f4f6fb;
  color: #1a1a1a;
  line-height: 1.6;
}

.book-detail {
  display: flex;
  gap: 2em;

  max-width: 1000px; /* daha kompakt */
  margin: 2em auto;
  padding: 1.5em;

  background: #fff;
  border-radius: 16px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* =========================
   LEFT COVER
========================= */
.book-left {
  flex-shrink: 0;
}

.book-left .cover {
  width: 280px; /* biraz küçültüldü */
  border-radius: 14px;
  object-fit: cover;

  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* =========================
   RIGHT INFO
========================= */
.book-info {
  flex: 1;
}

/* TITLE */
.book-info h1 {
  font-size: 1.9em;
  margin: 0 0 0.6em 0;
  letter-spacing: -0.3px;
}

/* AUTHOR */
.book-info .author {
  font-weight: 600;
  color: #444;
  margin-bottom: 0.8em;
}

/* =========================
   META GRID (YAN YANA)
========================= */
.book-info p {
  margin: 0;
}

.book-info p:nth-of-type(2),
.book-info p:nth-of-type(3),
.book-info p:nth-of-type(4),
.book-info p:nth-of-type(5) {
  display: inline-block;
  margin-right: 10px;
  margin-bottom: 8px;

  padding: 6px 10px;
  background: #f1f5ff;
  border-radius: 10px;

  font-size: 0.85em;
  color: #333;
}

/* =========================
   TAGS
========================= */
.tags {
  margin-top: 1em;
}

.tag {
  display: inline-block;
  margin: 4px 6px 0 0;
  padding: 6px 10px;

  font-size: 0.8em;

  background: #eef3ff;
  color: #0d6efd;

  border-radius: 999px;
  text-decoration: none;
}

.tag:hover {
  background: #0d6efd;
  color: #fff;
}

/* =========================
   DESCRIPTION (DAHA TEMİZ)
========================= */
.description {
  margin-top: 1.2em;

  padding: 1em;
  background: #f8f9fb;
  border-radius: 12px;

  color: #444;
  font-size: 0.95em;
  line-height: 1.7;
}

/* =========================
   ACTIONS
========================= */
.actions {
  margin-top: 1.5em;
  display: flex;
  justify-content: center;
  align-items: center;
}

.download-btn {
  width: 80%;
  padding: 1em 1.2em;
  background: linear-gradient(135deg, #198754, #20c997);
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1em;
  text-align: center;
}

.back {
  margin-top: 1.5em;
}

.back a {
  color: #0d6efd;
  text-decoration: none;
}

.back a:hover {
  text-decoration: underline;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  .book-detail {
    flex-direction: column;
    padding: 1.2em;
    margin: 1em;
  }

  .book-left .cover {
    width: 100%;
  }

  .book-info p:nth-of-type(n) {
    display: block;
    margin: 6px 0;
  }
}
