/* ================================================================
   Noble & Royal — 3 Layer Magazine  |  style.css v1.0
   ================================================================

   KATMAN MİMARİSİ:
   ┌─────────────────────────────────────────────────────────────┐
   │  L1 (arka fon) — tek geniş şerit, 0.15× hız               │
   │  L2 (görseller) — ürünler yüzer, 0.55× hız                │
   │  L3 (paneller)  — içerik pencereleri, 1.00× hız            │
   └─────────────────────────────────────────────────────────────┘
*/

/* ── KAPSAYICI ──────────────────────────────────────────────── */
.nr3l-wrap {
  --h:    560px;
  --gold: #c9a84c;
  --cr:   #f0ece0;

  position: relative;
  width: 100%;
  background: #080808;
  font-family: Georgia, 'Times New Roman', serif;
  color: #e8e2d4;
  overflow: hidden;
}

/* ── VIEWPORT ───────────────────────────────────────────────── */
.nr3l-vp {
  position: relative;
  width: 100%;
  height: var(--h);
  overflow: hidden;
  cursor: grab;
}
.nr3l-vp:active { cursor: grabbing; }

/* ════════════════════════════════════════════════════════════
   3 KATMAN — HEPSİ position:absolute, TRACK GENİŞLİĞİNDE
   JS tarafından farklı hızlarda translateX uygulanır.
════════════════════════════════════════════════════════════ */
.nr3l-layer {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  /* Genişlik inline style ile (PHP'den hesaplanır) */
  will-change: transform;
}

/* ── KATMAN 1: ARKA FON ─────────────────────────────────────── */
.nr3l-l1 { z-index: 1; }

.nr3l-bg-fill {
  position: absolute;
  inset: 0;
  /* Renk inline style'dan gelir */
}

.nr3l-bg-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ── KATMAN 2: GÖRSELLER ─────────────────────────────────────── */
.nr3l-l2 { z-index: 2; }

/* Hafif overlay — görsel üstünde derinlik */
.nr3l-l2::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    90deg,
    rgba(8,8,8,0.6) 0%,
    rgba(8,8,8,0.1) 30%,
    rgba(8,8,8,0.1) 70%,
    rgba(8,8,8,0.6) 100%
  );
  pointer-events: none;
}

.nr3l-img-item {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  /* Panel yüksekliğinin ~75%'i */
  height: 74%;
  display: flex;
  align-items: flex-end;
}

.nr3l-img-item img {
  display: block;
  height: 100%;
  width: auto;
  max-width: 320px;
  object-fit: cover;
  object-position: center top;
  /* Alt kısımda silinir — yerden çıkıyor hissi */
  -webkit-mask-image: linear-gradient(
    to bottom,
    black 0%,
    black 75%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    black 0%,
    black 75%,
    transparent 100%
  );
  /* Sağ kenarda silinir */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 12%,
    black 85%,
    transparent 100%
  ),
  linear-gradient(
    to bottom,
    black 0%,
    black 72%,
    transparent 100%
  );
  -webkit-mask-composite: destination-in;
  mask-composite: intersect;
}

/* Görsel yoksa placeholder */
.nr3l-placeholder {
  width: 200px;
  height: 300px;
  opacity: 0.3;
}

/* ── KATMAN 3: İÇERİK PANELLERİ ────────────────────────────── */
.nr3l-l3 { z-index: 3; }

/* ── DİKEY AYRAÇ ─────────────────────────────────────────────── */
.nr3l-divider {
  position: absolute;
  top: 12%;
  bottom: 12%;
  width: 0.5px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(201,168,76,0.15) 30%,
    rgba(201,168,76,0.15) 70%,
    transparent
  );
}

/* ── PANEL (küçük pencere) ───────────────────────────────────── */
.nr3l-panel {
  position: absolute;
  top: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 52px;
  /* Sol taraf gradient overlay */
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.35) 55%,
    transparent 100%
  );
}

/* Sayfa numarası */
.nr3l-panel-num {
  position: absolute;
  top: 26px;
  left: 0;
  font-family: Arial, sans-serif;
  font-size: 7.5px;
  letter-spacing: 0.14em;
  color: rgba(201,168,76,0.28);
}

/* İçerik bloğu */
.nr3l-panel-body {
  padding: 0 0 0 0;
  max-width: 88%;
}

/* ── ANİMASYON — aktif panelde içerik belirir ──────────────── */
.nr3l-cat,
.nr3l-title,
.nr3l-exc,
.nr3l-cta {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.72s ease, transform 0.72s ease;
}

.nr3l-panel.is-active .nr3l-cat   { opacity:1;transform:none;transition-delay:0.04s }
.nr3l-panel.is-active .nr3l-title { opacity:1;transform:none;transition-delay:0.16s }
.nr3l-panel.is-active .nr3l-exc   { opacity:1;transform:none;transition-delay:0.30s }
.nr3l-panel.is-active .nr3l-cta   { opacity:1;transform:none;transition-delay:0.44s }

/* ── TİPOGRAFİ ─────────────────────────────────────────────── */
.nr3l-cat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: Arial, sans-serif;
  font-size: 8px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  margin-bottom: 11px;
  width: fit-content;
}
.nr3l-cat::before {
  content: '';
  display: block;
  width: 13px;
  height: 0.5px;
  background: var(--gold);
  flex-shrink: 0;
}
.nr3l-cat:hover { color: var(--gold); }

.nr3l-title {
  font-size: clamp(20px, 2.8vw, 34px);
  font-weight: 400;
  line-height: 1.14;
  color: var(--cr);
  margin: 0 0 12px;
  hyphens: auto;
}
.nr3l-title a {
  color: inherit;
  text-decoration: none;
}
.nr3l-title a:hover { color: var(--gold); }

.nr3l-exc {
  font-size: 12px;
  line-height: 1.85;
  color: rgba(232,226,212,0.46);
  font-style: italic;
  margin: 0 0 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nr3l-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: Arial, sans-serif;
  font-size: 8px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 0.5px solid rgba(201,168,76,0.55);
  padding-bottom: 2px;
  transition: gap 0.3s;
  width: fit-content;
}
.nr3l-cta:hover { gap: 12px; color: var(--gold); }

/* ── KONTROLLER ─────────────────────────────────────────────── */
.nr3l-ctrl {
  display: flex;
  align-items: center;
  padding: 10px 26px;
  gap: 13px;
  border-top: 0.5px solid rgba(201,168,76,0.13);
  background: #060606;
}

.nr3l-btn {
  background: transparent;
  border: 0.5px solid rgba(201,168,76,0.28);
  color: var(--gold);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
  padding: 0;
}
.nr3l-btn:hover  { background: rgba(201,168,76,0.08); }
.nr3l-btn:disabled { opacity: 0.15; cursor: default; }

.nr3l-dots { display: flex; gap: 6px; align-items: center; }
.nr3l-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(232,226,212,0.18);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: all 0.3s;
}
.nr3l-dot.on {
  background: var(--gold);
  width: 14px;
  border-radius: 2px;
}

.nr3l-bar {
  flex: 1;
  height: 1px;
  background: rgba(232,226,212,0.07);
}
.nr3l-bfill {
  height: 100%;
  background: var(--gold);
  transition: width 0.55s ease;
  width: 0;
}

.nr3l-counter {
  font-family: Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(232,226,212,0.24);
  flex-shrink: 0;
}
.nr3l-cur { color: var(--gold); font-size: 12px; }
.nr3l-sep { margin: 0 3px; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nr3l-img-item img { max-width: 220px; }
  .nr3l-title { font-size: clamp(18px,4vw,26px); }
  .nr3l-ctrl  { padding: 9px 14px; gap: 10px; }
}
