/* RESET & BASE */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f6f8fb;
  margin: 0;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
}

/* HEADER */
.header {
  text-align: center;
  padding: 1em 1em;
  background: linear-gradient(135deg, #0d6efd, #3b82f6);
  color: white;
}

.header h1 {
  margin: 0;
  color: white;
  font-size: 2.2em;
  font-weight: 600;
}

.header p {
  margin-top: 0.6em;
  opacity: 0.95;
  font-size: 1em;
}

/* CONTAINER */
.book-container {
  max-width: 1200px;
  margin: auto;
  padding: 2.5em 1.2em;
}

/* GRID */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2em;
}

/* CARD */
.book-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
  transition: all 0.35s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.book-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(13, 110, 253, 0.2);
}

/* IMAGE */
.book-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #eee;
}

/* INFO */
.book-info {
  flex: 1;
  padding: 1.3em;
  display: flex;
  flex-direction: column;
}

/* TITLE */
.book-info h2 {
  font-size: 1.05em;
  margin: 0;
  line-height: 1;
}

.book-info h2 a {
  color: #111;
  text-decoration: none;
}

.book-info h2 a:hover {
  color: #0d6efd;
}

.book-meta {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  gap: 1em;
  margin-bottom: 0;
}

.author {
  font-size: 1em;
  color: #666;
}

.meta {
  font-size: 1em;
  color: #888;
  margin-top: 0.3em;
}

/* DESCRIPTION */
.desc {
  font-size: 0.9em;
  margin-top: 0.5em;
  color: #555;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* BUTTON */
.btn {
  margin-top: auto;
  display: inline-block;
  padding: 10px 14px;
  background: linear-gradient(135deg, #0d6efd, #3b82f6);
  color: white;
  border-radius: 12px;
  font-size: 0.85em;
  text-decoration: none;
  text-align: center;
  transition: all 0.25s ease;
}

.btn:hover {
  background: linear-gradient(135deg, #0b5ed7, #2563eb);
  transform: scale(1.05);
}

/* EMPTY STATE */
.book-container p {
  text-align: center;
  color: #777;
  margin-top: 3em;
}

/* 🔥 SEO LINKS (alt kategori alanı) */
.seo-links {
  max-width: 1000px;
  margin: 3em auto;
  padding: 1.5em;
  background: white;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.seo-links h3 {
  margin-bottom: 1em;
}

.seo-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  padding: 0;
  list-style: none;
}

.seo-links a {
  padding: 6px 12px;
  background: #eef3ff;
  border-radius: 10px;
  font-size: 0.85em;
  text-decoration: none;
  color: #0d6efd;
}

.seo-links a:hover {
  background: #dbe7ff;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;

  height: calc(60px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);

  background: #ffffff;

  display: flex;
  justify-content: space-around;
  align-items: center;

  border-top: 1px solid #e5e5e5;

  z-index: 9999;

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

  /* daha modern görünüm */
  backdrop-filter: blur(10px);
}

/* NAV ITEM */
.bottom-nav .nav-item {
  color: #888;
  text-decoration: none;

  display: flex;
  flex-direction: column;
  align-items: center;

  transition: 0.2s ease;
}

/* ICON */
.bottom-nav .nav-item .material-icons {
  font-size: 28px;
}

/* TEXT */
.bottom-nav .nav-item small {
  font-size: 12px;
  margin-top: 2px;
  line-height: 1;
  color: inherit;
}

/* HOVER */
.bottom-nav .nav-item:hover {
  color: #0d6efd;
}

/* ACTIVE STATE */
.bottom-nav .nav-item.active {
  color: #0d6efd;
}

/* ACTIVE INDICATOR DOT */
.bottom-nav .nav-item.active::after {
  content: '';
  width: 5px;
  height: 5px;
  background: #0d6efd;
  border-radius: 50%;
  margin-top: 4px;
}

/* 📱 MOBILE */
@media (max-width: 600px) {
  .header h1 {
    font-size: 1.6em;
  }

  .book-card img {
    height: 160px;
  }

  .book-container {
    padding: 1.5em 1em;
  }
}
