/* ===========================
   Books Module — books.css
   geopak.mobi / Alpha-CMS
   =========================== */

/* Book card in list */
.book-card {
  padding: 10px;
  box-sizing: border-box;
}

/* Cover thumbnail in list card */
.book-card-cover {
  width: 70px;
  height: 100px;
  border-radius: 5px;
  overflow: hidden;
  background: linear-gradient(135deg, #607D8B, #37474F);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}

.book-card-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-card-cover-default {
  color: #B0BEC5;
  text-align: center;
}

/* Book view page — top section */
.book-view-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 10px 0;
}

.book-cover-wrap {
  flex-shrink: 0;
}

.book-cover-view {
  width: 110px;
  border-radius: 7px;
  box-shadow: 0 3px 10px rgba(0,0,0,.3);
  display: block;
}

/* Edit page cover thumbnail */
.book-cover-thumb {
  max-width: 100px;
  border-radius: 5px;
  margin-bottom: 6px;
  display: block;
  box-shadow: 0 2px 5px rgba(0,0,0,.2);
}

.book-info-wrap {
  flex: 1;
  min-width: 0;
}

.book-title {
  margin: 0 0 6px 0;
  font-size: 16px;
  line-height: 1.3;
  word-break: break-word;
}

.book-author,
.book-cat,
.book-meta,
.book-uploader {
  font-size: 12px;
  color: #546E7A;
  margin-bottom: 4px;
}

.book-description {
  margin: 10px 0;
  font-size: 13px;
  color: #37474F;
  line-height: 1.5;
  padding: 8px 12px;
  background: #F5F7F8;
  border-radius: 6px;
  border-left: 3px solid #78909C;
}

/* Action buttons row */
.book-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.book-read-btn {
  background: linear-gradient(135deg, #2196F3, #1976D2);
  color: white !important;
  border: none;
}

/* Online PDF reader */
.book-reader-container {
  margin-top: 12px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  border: 1px solid #B0BEC5;
}

.book-reader-toolbar {
  background: #37474F;
  color: white;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}

.book-reader-close {
  background: rgba(255,255,255,.15);
  border: none;
  color: white;
  border-radius: 5px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.book-reader-close:hover {
  background: rgba(255,255,255,.3);
}

.book-pdf-frame {
  width: 100%;
  height: 600px;
  border: none;
  display: block;
  background: #525659;
}

@media screen and (max-width: 480px) {
  .book-pdf-frame {
    height: 420px;
  }
  .book-view-top {
    flex-direction: column;
    align-items: center;
  }
  .book-cover-view {
    width: 130px;
  }
  .book-info-wrap {
    width: 100%;
    text-align: center;
  }
}
