*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f2ed;
  color: #222;
}

/* DIŞ KABUK */
.shell {
  max-width: 1100px;
  margin: 20px auto 40px;
  padding: 0 16px;
}

/* HEADER */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 0 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #222;
}

.brand-text h1 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-text p {
  margin: 2px 0 0;
  font-size: 0.8rem;
  opacity: 0.7;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
}

.page-indicator {
  font-size: 0.82rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.18);
}

/* MOBİL NAV – default gizli */
.mobile-nav {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* BOOK WRAPPER */
.book-wrapper {
  margin-top: 18px;
  display: flex;
  align-items: stretch;
  gap: 8px;
}

/* KİTAP GÖVDE */
.book {
  position: relative;
  flex: 1;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fdfbf7;
  overflow: hidden;
}

/* SAYFA – normal akışta, sadece aktif olan görünsün */
.page {
  position: relative;
  padding: 24px 22px 26px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(12px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
  display: none;
}

.page.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  display: block;
}

.page-inner {
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
}

.page-label {
  margin: 0 0 8px;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.6;
}

.page-title {
  margin: 0 0 10px;
  font-size: 1.5rem;
  letter-spacing: 0.03em;
}

.page-meta {
  margin: 20px 0 12px;
  font-size: 0.9rem;
  opacity: 0.85;
}

.page-body {
  font-size: 0.96rem;
  line-height: 1.7;
}

.page-body p {
  margin: 8px 0;
}

.page-body.narrow {
  max-width: 640px;
}

/* GÖRSEL BLOK */
.page-image {
  margin: 16px 0 10px;
  border-radius: 14px;
  overflow: hidden;
  text-align:center;
}

/* TÜM IMG’LER RESPONSIVE */
.page-image img {
  display: inline-block;
  width: 75%;
  height: auto;
  border-radius: 6px;
}

/* SADECE PLACEHOLDER İKEN */
.placeholder {
  border: 1px dashed rgba(0, 0, 0, 0.2);
  background: repeating-linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.015) 0px,
    rgba(0, 0, 0, 0.015) 10px,
    rgba(0, 0, 0, 0.04) 10px,
    rgba(0, 0, 0, 0.04) 20px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
}

.placeholder p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* GRID SAYFA */
.page-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.grid-item {
  min-height: 100px;
  border-radius: 10px;
}

/* QR SAYFA */
.page-body.two-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 18px;
  align-items: flex-start;
}

.contact-meta {
  margin-top: 12px;
  font-size: 0.9rem;
  opacity: 0.85;
}

.qr-block {
  display: flex;
  justify-content: flex-end;
}

.qr-card {
  border-radius: 14px;
  background: #f0ebe2;
  padding: 16px 14px;
  text-align: center;
}

.qr-image {
  width: 150px;
  max-width: 100%;
  display: block;
  margin: 0 auto 10px;
}

.qr-caption {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.9;
}

/* NAV BUTONLAR (DESKTOP/TABLET) */
.nav-btn {
  align-self: center;
  border-radius: 999px;
  width: 40px;
  height: 40px;
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  background: #e6dfd2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background 0.2s ease;
}

.nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
  background: #dfd5c3;
}

.nav-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* FOOTER */
.site-footer {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* TABLET (900px ALTı) */
@media (max-width: 900px) {
  .shell {
    margin-top: 10px;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .page-inner {
    max-width: 100%;
  }
}

/* MOBİL (768px ALTı) */
@media (max-width: 768px) {
  .book-wrapper {
    gap: 0;
  }

  .book {
    min-height: 380px;
  }

  .page {
    padding: 18px 14px 22px;
  }

  .page-title {
    font-size: 1.25rem;
  }

  .page-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-body.two-cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .qr-block {
    justify-content: flex-start;
  }

  /* DESKTOP/TABLET OKLARINI MOBİLDE GİZLE */
  .book-wrapper > .nav-btn {
    display: none;
  }

  /* MOBİL NAV BAR – sticky */
  .mobile-nav {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 6px 0;
    margin-top: 6px;
    background: #f4f2ed;
  }

  .mobile-nav .nav-btn {
    position: static;
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
    background: #e6dfd2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
  }

  .page-indicator-mobile {
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.18);
  }

  .nav-btn:hover {
    transform: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
  }
  @media (max-width: 768px) {
  /* HEADER İÇİNDEKİ PAGE INDICATORU GİZLE */
  .header-right .page-indicator {
    display: none !important;
  }
}

}
/* 6'lı galeri grid */
.gallery-6 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* Desktop: 2 kolon */
  gap: 10px;
}

/* Grid item içindeki img responsive */
.gallery-6 .grid-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* Mobil - 1 kolon */
@media (max-width: 768px) {
  .gallery-6 {
    grid-template-columns: 1fr;
  }
}
