:root {
  --nova-bg: #f3ede5;
  --nova-paper: #f8f3ec;
  --nova-text: #30342f;
  --nova-header-height: 64px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--nova-bg);
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.72), transparent 34%),
    linear-gradient(180deg, #f6f0e9, #ebe1d5);
  color: var(--nova-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.nova-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: calc(var(--nova-header-height) + env(safe-area-inset-top));
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: env(safe-area-inset-top);
  background: rgba(248, 243, 236, .94);
  border-bottom: 1px solid rgba(48, 52, 47, .10);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nova-header__title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .22em;
}

.nova-catalog { width: 100%; }

.catalog-page {
  width: 100%;
  min-height: calc(100svh - var(--nova-header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 14px;
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .7s ease,
    transform .8s cubic-bezier(.22, .61, .36, 1);
}

.catalog-page.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.catalog-page img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100svh - var(--nova-header-height) - 40px);
  object-fit: contain;
  background: var(--nova-paper);
  box-shadow: 0 22px 48px rgba(48, 36, 24, .14);
}

.catalog-page.is-missing::before {
  content: "Görsel bekleniyor";
  display: grid;
  place-items: center;
  width: min(92vw, 520px);
  aspect-ratio: 9 / 16;
  color: rgba(48, 52, 47, .55);
  background: rgba(255,255,255,.46);
  border: 1px dashed rgba(48, 52, 47, .22);
  font-size: 15px;
  letter-spacing: .06em;
}

.catalog-page.is-missing img { display: none; }

@media (max-width: 768px) {
  :root { --nova-header-height: 58px; }

  .nova-header__title {
    font-size: 15px;
    letter-spacing: .20em;
  }

  .catalog-page {
    min-height: auto;
    padding: 0;
    background: var(--nova-paper);
  }

  .catalog-page img {
    width: 100%;
    height: auto;
    max-width: none;
    max-height: none;
    object-fit: contain;
    box-shadow: none;
  }

  .catalog-page.is-missing::before {
    width: 100%;
    max-width: none;
    border-left: 0;
    border-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .catalog-page {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
