/* ================================================
   Börte Elementor Widgets — Alanlar Sahne
   ================================================ */

/* ---- Ana konteyner ---- */
.bew-shn-stage {
  position: relative;
  height: clamp(540px, 70vh, 760px);
  border-radius: 12px;
  overflow: hidden;
  isolation: isolate;
}

/* ---- Arka plan sahneleri ---- */
.bew-shn-scenes {
  position: absolute;
  inset: 0;
}

.bew-shn-scene {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 0.8s ease, transform 6s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bew-shn-scene.is-active {
  opacity: 1;
  transform: scale(1);
}

/* Doku efekti (has-texture) */
.bew-shn-stage.has-texture .bew-shn-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    rgba(255,255,255,0.04) 0 2px,
    transparent 2px 16px
  );
  pointer-events: none;
}

/* Sol+alt gradient (metin okunurluğu için — overlay'den bağımsız) */
.bew-shn-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,  rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.2)  45%, rgba(0,0,0,0) 68%),
    linear-gradient(180deg, rgba(0,0,0,0)    60%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
}

/* Kullanıcı tarafından ayarlanan overlay */
.bew-shn-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45); /* Elementor selectors tarafından override edilir */
  pointer-events: none;
  z-index: 1;
}



/* ---- İçerik frame ---- */
.bew-shn-frame {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 44px 56px 52px;
  color: #fff;
  z-index: 3;
  max-width: 720px;
  width: 100%;
}

.bew-shn-slide {
  display: none;
}
.bew-shn-slide.is-active {
  display: block;
}

/* Eyebrow */
.bew-shn-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: rgba(255,230,200,0.8);
  margin-bottom: 18px;
}
.bew-shn-eyebrow-num {
  font-size: 13px;
  color: #f0c489;
  font-weight: 600;
}
.bew-shn-eyebrow-sep   { opacity: 0.5; }
.bew-shn-eyebrow-total { color: rgba(255,255,255,0.55); }

/* Başlık */
.bew-shn-title {
  font-family: var(--font-display, "Marcellus", Georgia, serif) !important;
  font-size: clamp(34px, 4.2vw, 60px) !important;
  font-weight: 400 !important;
  line-height: 1.05 !important;
  margin: 0 0 20px !important;
  color: #fff !important;
  letter-spacing: -0.015em !important;
  text-wrap: balance;
  animation: bew-shn-slide-up 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
}
@keyframes bew-shn-slide-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bew-shn-desc {
  font-size: 15.5px;
  line-height: 1.7;
  color: rgba(255,255,255,0.86);
  margin: 0 0 28px;
  max-width: 580px;
  text-wrap: pretty;
}

/* Meta */
.bew-shn-meta {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.bew-shn-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.bew-shn-tags li {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  color: rgba(255,255,255,0.95);
  backdrop-filter: blur(4px);
}

/* CTA */
.bew-shn-cta,
.bew-shn-cta:visited {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #1a2a22 !important;
  background: #f0c489 !important;
  text-decoration: none !important;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 500;
  transition: gap 0.2s ease, background 0.2s ease;
  border: none !important;
  box-shadow: none !important;
}
.bew-shn-cta:hover {
  gap: 12px !important;
  background: #f5d4a4 !important;
}

/* ---- Navigasyon ---- */
.bew-shn-nav {
  position: absolute;
  right: 36px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 4;
}

.bew-shn-dot,
.bew-shn-dot:hover,
.bew-shn-dot:focus,
.bew-shn-dot:active {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: rgba(255,255,255,0.55) !important;
  padding: 8px 4px !important;
  cursor: pointer !important;
  transition: color 0.25s ease !important;
  font-family: var(--font-mono, "JetBrains Mono", monospace) !important;
  outline: none !important;
}
.bew-shn-dot:hover { color: #fff !important; }
.bew-shn-dot.is-active { color: #fff !important; }

.bew-shn-dot-num {
  font-size: 11px;
  letter-spacing: 0.16em;
  min-width: 22px;
  text-align: right;
}

.bew-shn-dot-bar {
  width: 50px;
  height: 2px;
  background: rgba(255,255,255,0.22);
  position: relative;
  overflow: hidden;
  border-radius: 1px;
  flex-shrink: 0;
}
.bew-shn-dot.is-active .bew-shn-dot-bar {
  background: rgba(255,255,255,0.4);
}

.bew-shn-dot-fill {
  position: absolute;
  inset: 0;
  background: #f0c489;
  transform: scaleX(0);
  transform-origin: left;
}
.bew-shn-dot.is-active .bew-shn-dot-fill {
  animation: bew-shn-fill var(--bew-shn-duration, 5500ms) linear forwards;
}
.bew-shn-stage:hover .bew-shn-dot.is-active .bew-shn-dot-fill {
  animation-play-state: paused;
}
@keyframes bew-shn-fill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.bew-shn-dot-title {
  font-family: var(--font-display, "Marcellus", Georgia, serif);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transition: opacity 0.25s ease, max-width 0.4s ease;
}
.bew-shn-dot.is-active .bew-shn-dot-title,
.bew-shn-dot:hover .bew-shn-dot-title {
  opacity: 0.92;
  max-width: 240px;
}

/* ---- Responsive ---- */
@media (max-width: 880px) {
  .bew-shn-frame { padding: 28px 20px 90px; }
  .bew-shn-title { font-size: clamp(28px, 8vw, 36px) !important; }
  .bew-shn-nav {
    right: 20px;
    top: auto;
    bottom: 16px;
    left: 20px;
    transform: none;
    flex-direction: row;
    gap: 6px;
  }
  .bew-shn-dot,
  .bew-shn-dot:hover,
  .bew-shn-dot:focus,
  .bew-shn-dot:active {
    flex: 1 1 0 !important;   /* mevcut alanı eşit paylaş */
    min-width: 0 !important;  /* taşmayı önle */
    padding: 6px 0 !important;
    gap: 0 !important;
  }
  .bew-shn-dot-num   { display: none; }
  .bew-shn-dot-bar   { width: 100%; min-width: 10px; }
  .bew-shn-dot-title { display: none; }
}

/* ================================================
   NUMARA STİLİ — Tipografik Kart Izgara
   ================================================ */
.bew-shn-numara {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(160deg, #2a2420 0%, #16120f 100%);
}

.bew-nm-card {
  position: relative;
  padding: 36px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(232, 227, 216, 0.85);
  transition: background 0.3s ease;
}
.bew-nm-card:last-child { border-right: none; }
.bew-nm-card:hover { background: rgba(255, 255, 255, 0.04); }

.bew-nm-num {
  font-family: var(--font-display, "Marcellus", Georgia, serif);
  font-size: 52px;
  font-weight: 400;
  line-height: 1;
  color: #f0c489;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.bew-nm-title {
  font-family: var(--font-display, "Marcellus", Georgia, serif) !important;
  font-size: 22px !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.005em !important;
  color: #f0eae0 !important;
  margin: 0 !important;
  text-wrap: balance;
  min-height: 2.4em;
}

.bew-nm-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(232, 227, 216, 0.9);
  margin: 0;
  text-wrap: pretty;
  flex: 1;
}

.bew-nm-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bew-nm-tags li {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  color: rgba(232, 227, 216, 0.65);
}

.bew-nm-cta,
.bew-nm-cta:visited {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f0c489 !important;
  text-decoration: none !important;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(240, 196, 137, 0.18);
  border-left: none !important;
  border-right: none !important;
  border-bottom: none !important;
  background: transparent !important;
  box-shadow: none !important;
  transition: gap 0.2s ease, color 0.2s ease;
}
.bew-nm-cta:hover {
  gap: 10px !important;
  color: #fff !important;
  background: transparent !important;
}
.bew-nm-cta svg { transition: transform 0.2s ease; }
.bew-nm-cta:hover svg { transform: translate(2px, -2px); }

/* Numara — Responsive */
@media (max-width: 1100px) {
  .bew-shn-numara { grid-template-columns: repeat(2, 1fr) !important; border-top: none; }
  .bew-nm-card {
    border-right: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .bew-nm-card:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, 0.12); }
}
@media (max-width: 600px) {
  .bew-shn-numara { grid-template-columns: 1fr !important; }
  .bew-nm-card { border-right: none !important; }
  .bew-nm-title { min-height: auto; }
}
/* ================================================
   IZGARA STİLİ — Grid kartlar / Mobil akordeon
   (numara / ikon / başlık / açıklama / link)
   ================================================ */
.bew-ag-wrap {
  --bew-ink:          var(--ink, #2a1f1d);
  --bew-muted:        var(--muted, rgb(115, 102, 96));
  --bew-line:         var(--line, #e0d4c4);
  --bew-font-display: var(--font-display, "Marcellus", Georgia, serif);
  /* Vurgu (ikon + link): panelden gelen override, yoksa ink */
  --bew-ag-a: var(--bew-ag-accent-override, var(--bew-ink));
}
.bew-ag-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.bew-ag-card {
  list-style: none;
  display: flex; flex-direction: column;
  background: var(--bew-ag-card-bg, var(--cream-light, #FCF6EF));
  border: 1px solid var(--bew-ag-card-border, #d4e5d870);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 5px 22px #183c320a;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.bew-ag-card:hover {
  box-shadow: 0 10px 28px #183c3212;
  transform: translateY(-3px);
}
/* Head — desktop: num sol-üst, ikon sağ-üst, başlık altta; chevron gizli */
.bew-ag-head {
  box-sizing: border-box; width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "num icon" "title title";
  gap: 20px 12px;
}
.bew-ag-num {
  grid-area: num; align-self: start;
  font-family: var(--bew-font-display);
  font-size: 15px; letter-spacing: 0.08em;
  color: var(--bew-ag-num, var(--bew-muted));
  opacity: 0.85;
}
.bew-ag-icon {
  grid-area: icon; justify-self: end;
  display: inline-flex; line-height: 1;
  color: var(--bew-ag-a);
  font-size: 26px;
}
.bew-ag-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; }
.bew-ag-icon i   { font-size: 26px; }
.bew-ag-title {
  grid-area: title;
  margin: 0;
  font-family: var(--bew-font-display);
  font-weight: 400;
  font-size: 22px; line-height: 1.25;
  color: var(--bew-ag-title, var(--bew-ink));
  text-wrap: pretty;
}
/* Chevron artık bir <button> — tema buton stillerini sıfırla */
.bew-ag-wrap .bew-ag-chev,
.bew-ag-wrap .bew-ag-chev:hover,
.bew-ag-wrap .bew-ag-chev:focus,
.bew-ag-wrap .bew-ag-chev:active {
  display: none; flex-shrink: 0;
  background: none !important; border: 0 !important; box-shadow: none !important;
  padding: 0 !important; margin: 0; cursor: pointer; color: inherit;
  -webkit-appearance: none; appearance: none;
}
.bew-ag-body {
  display: flex; flex-direction: column;
  flex: 1 1 auto;               /* kartın kalan yüksekliğini doldurur */
  gap: 18px;
  margin-top: 18px;
}
.bew-ag-desc {
  margin: 0;
  font-size: 14.5px; line-height: 1.7;
  color: var(--bew-ag-desc, var(--bew-muted));
  text-wrap: pretty;
}
/* Temiz link — altı çizili */
.bew-ag-wrap .bew-ag-link,
.bew-ag-wrap .bew-ag-link:visited {
  align-self: flex-start;
  margin-top: auto;             /* "Detaylı bilgi" her zaman kartın altında */
  font-family: var(--bew-font-display);
  font-size: 14px; letter-spacing: 0.01em;
  color: var(--bew-ag-a) !important;
  text-decoration: none !important;
  padding: 2px 0 !important;
  background: transparent !important; border: none !important; box-shadow: none !important;
  position: relative;
}
.bew-ag-wrap .bew-ag-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor; opacity: 0.5;
  transition: opacity 0.2s ease;
}
.bew-ag-wrap .bew-ag-link:hover {
  color: var(--bew-ag-a) !important; background: transparent !important;
}
.bew-ag-wrap .bew-ag-link:hover::after { opacity: 1; }

/* Responsive: tablet — fallback (Elementor sütun kontrolü önceliklidir) */
@media (max-width: 1024px) {
  .bew-ag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Mobil: akordeon (tek sütun zorunlu) */
@media (max-width: 767px) {
  .bew-ag-grid { grid-template-columns: 1fr !important; gap: 14px; }
  .bew-ag-card { padding: 20px 22px; }
  .bew-ag-card:hover { transform: none; box-shadow: 0 5px 22px #183c320a; }
  .bew-ag-head {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "num title chev";
    align-items: center; gap: 12px;
    cursor: pointer;
  }
  .bew-ag-title { cursor: pointer; }
  .bew-ag-icon { display: none; }
  .bew-ag-wrap .bew-ag-chev {
    display: block; grid-area: chev;
    color: var(--bew-muted); transition: transform 0.3s ease;
  }
  .bew-ag-card.is-open .bew-ag-chev { transform: rotate(180deg); color: var(--bew-ag-a); }
  .bew-ag-body {
    flex: none;
    margin-top: 0;
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height 0.34s ease, opacity 0.25s ease, margin-top 0.34s ease;
  }
  .bew-ag-card.is-open .bew-ag-body {
    max-height: 420px; opacity: 1; margin-top: 16px;
  }
}
