/* /assets/css/main.css */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "SF Pro Text", "Segoe UI", sans-serif;
  background: #f5f3ee;
  color: #1a1a1a;
}

/* HEADER */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.header .logo {
  font-weight: 700;
  font-size: 18px;
}

.header nav a {
  margin: 0 6px;
  font-size: 13px;
  color: #333;
  text-decoration: none;
}

.header nav a:hover {
  text-decoration: underline;
}

.header .login-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* BUTTONS */

.btn,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #aaa;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
}

.btn {
  background: #fff;
  color: #222;
}

.btn-primary {
  border-color: #c8a96a;
  background: linear-gradient(135deg, #c8a96a, #e7cf96);
  color: #1a140d;
  box-shadow: 0 10px 24px rgba(200,169,106,0.45);
}

/* HERO */

.hero {
  padding: 24px 16px 16px;
  max-width: 960px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 24px;
  margin-bottom: 6px;
}

.hero p {
  font-size: 13px;
  opacity: 0.8;
}

/* BOOK LIST */

.book-list {
  max-width: 960px;
  margin: 0 auto;
  padding: 10px 16px 30px;
}

.book-list h2 {
  font-size: 18px;
  margin-bottom: 10px;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.book-card {
  display: block;
  padding: 10px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e1ddd2;
  box-shadow: 0 12px 26px rgba(0,0,0,0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}

.book-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.book-card .cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  background: linear-gradient(135deg, #c8a96a, #4a5a6a);
  margin-bottom: 8px;
}

.book-card h3 {
  font-size: 14px;
  margin-bottom: 4px;
}

.book-card p {
  font-size: 12px;
  opacity: 0.85;
}

/* UTIL */

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px;
}

@media (max-width: 768px) {
  .header nav {
    display: none;
  }
}
