/* ============================================================
   KAMPANYA SİSTEMİ — genel arayüz. Tüm sınıflar `bc-` önekli.
   Siyah–altın; altın tonu site değişkenlerinden (--gold-pale / --gold) alınır,
   değişken yoksa yedek değer kullanılır. Yeni dış kaynak yok (Fraunces/Inter zaten sitede).
   ============================================================ */

.bc-modal, .bc-nav-btn {
  --bc-ink: #0E0E0E;
  --bc-ink-2: #151515;
  --bc-line: rgba(201, 164, 92, 0.28);
  --bc-gold: var(--gold-pale, #C9A45C);
  --bc-gold-deep: var(--gold, #A9873F);
  --bc-text: #F1E9DA;
  --bc-text-soft: rgba(241, 233, 218, 0.72);
  --bc-display: var(--font-display, 'Fraunces', Georgia, serif);
  --bc-body: var(--font-body, 'Inter', 'Segoe UI', sans-serif);
}

/* ---------- Nav düğmesi ---------- */
.bc-nav-btn,
.nav-desktop .bc-nav-btn,
.mobile-nav .bc-nav-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 44px; padding: 0.6rem 1.15rem;
  background: var(--bc-ink); color: var(--bc-gold);
  border: 1px solid var(--bc-gold); border-radius: 0;
  font-family: var(--bc-body); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}
.mobile-nav .bc-nav-btn { font-size: 0.86rem; width: min(100%, 320px); min-height: 52px; }
.nav-desktop .bc-nav-btn::after,
.site-header.is-scrolled .nav-desktop .bc-nav-btn::after { content: none; }
.bc-nav-btn:hover,
.nav-desktop .bc-nav-btn:hover,
.site-header.is-scrolled .nav-desktop .bc-nav-btn:hover,
.mobile-nav .bc-nav-btn:hover { background: var(--bc-gold); color: var(--bc-ink); }
.site-header.is-scrolled .nav-desktop .bc-nav-btn { color: var(--bc-gold); }
.bc-nav-btn:focus-visible { outline: 2px solid var(--bc-gold); outline-offset: 3px; }

/* Aktif kampanya: küçük altın nabız noktası */
.bc-nav-btn--live::before {
  content: ''; flex: none;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--bc-gold);
  box-shadow: 0 0 0 0 rgba(201, 164, 92, 0.6);
  animation: bcPulse 2.4s ease-out infinite;
}
.bc-nav-btn--live:hover::before { background: var(--bc-ink); animation: none; }
@keyframes bcPulse {
  0% { box-shadow: 0 0 0 0 rgba(201, 164, 92, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(201, 164, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 164, 92, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .bc-nav-btn--live::before { animation: none; }
}

/* ---------- Modal ---------- */
.bc-modal { position: fixed; inset: 0; z-index: 400; font-family: var(--bc-body); color: var(--bc-text); }
.bc-modal[hidden] { display: none; }
.bc-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.72); opacity: 0; transition: opacity 0.25s ease; }
.bc-open .bc-backdrop { opacity: 1; }

.bc-dialog {
  position: absolute; left: 0; right: 0; bottom: 0; top: 0;
  height: 100%; height: 100dvh;
  background: var(--bc-ink); color: var(--bc-text);
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  transform: translateY(24px); opacity: 0;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
  outline: none;
}
.bc-open .bc-dialog { transform: none; opacity: 1; }

.bc-close {
  position: sticky; top: 0; z-index: 3;
  width: 48px; height: 48px; margin: 0 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: rgba(14, 14, 14, 0.85); color: var(--bc-gold);
  border: 0; border-left: 1px solid var(--bc-line); border-bottom: 1px solid var(--bc-line);
  font-size: 1.9rem; line-height: 1; cursor: pointer;
}
.bc-close:hover { background: var(--bc-gold); color: var(--bc-ink); }
.bc-close:focus-visible { outline: 2px solid var(--bc-gold); outline-offset: -4px; }

.bc-body { position: relative; z-index: 1; margin-top: -48px; }
.bc-media { margin: 0; max-height: 240px; overflow: hidden; background: var(--bc-ink-2); }
.bc-media img { width: 100%; height: 100%; max-height: 240px; object-fit: cover; display: block; }
.bc-content, .bc-body > .bc-eyebrow, .bc-body > .bc-title, .bc-body > .bc-lead, .bc-body > .bc-actions { padding-left: 20px; padding-right: 20px; }
.bc-content { padding-top: 24px; padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
.bc-body > .bc-eyebrow, .bc-body > .bc-content:first-child { padding-top: 64px; }
.bc-body > .bc-actions { padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }

.bc-eyebrow { margin: 0 0 10px; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bc-gold); font-weight: 600; }
.bc-title { margin: 0 0 10px; font-family: var(--bc-display); font-weight: 600; font-size: 1.55rem; line-height: 1.15; color: var(--bc-text); overflow-wrap: anywhere; }
.bc-dates { margin: 0 0 22px; font-size: 0.95rem; color: var(--bc-gold); letter-spacing: 0.03em; }
.bc-lead { margin: 0 0 24px; font-size: 1rem; line-height: 1.6; color: var(--bc-text-soft); }

.bc-items { list-style: none; margin: 0 0 20px; padding: 0; border-top: 1px solid var(--bc-line); }
.bc-item {
  display: grid; grid-template-columns: 1fr auto; column-gap: 14px; row-gap: 10px; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--bc-line);
}
.bc-item-info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bc-item-name { font-family: var(--bc-display); font-size: 1.1rem; line-height: 1.25; color: var(--bc-text); overflow-wrap: anywhere; }
.bc-item-note { font-size: 0.78rem; color: var(--bc-text-soft); letter-spacing: 0.02em; }
.bc-item-price { font-family: var(--bc-display); font-size: 1.3rem; font-weight: 600; color: var(--bc-gold); white-space: nowrap; }
.bc-item-cta {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--bc-line); color: var(--bc-gold); background: transparent;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.bc-item-cta:hover { background: var(--bc-gold); color: var(--bc-ink); border-color: var(--bc-gold); }

.bc-condition { margin: 0 0 22px; padding-left: 12px; border-left: 2px solid var(--bc-gold); font-size: 0.88rem; line-height: 1.55; color: var(--bc-text-soft); }
.bc-disclaimer { margin: 14px 0 0; font-size: 0.78rem; line-height: 1.5; color: var(--bc-text-soft); }

.bc-actions { display: flex; flex-direction: column; gap: 12px; }
.bc-btn {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 52px; padding: 0 22px; border-radius: 0;
  font-size: 0.84rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--bc-gold); cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.bc-btn--block { width: 100%; }
.bc-btn--gold { background: var(--bc-gold); color: var(--bc-ink); }
.bc-btn--gold:hover { background: var(--bc-text); border-color: var(--bc-text); }
.bc-btn--ghost { background: transparent; color: var(--bc-gold); }
.bc-btn--ghost:hover { background: var(--bc-gold); color: var(--bc-ink); }
.bc-item-cta:focus-visible, .bc-btn:focus-visible { outline: 2px solid var(--bc-text); outline-offset: 3px; }

.bc-state { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 96px 24px; }
.bc-state-text { margin: 0; color: var(--bc-text-soft); font-size: 0.95rem; }
.bc-spinner { width: 28px; height: 28px; border: 2px solid var(--bc-line); border-top-color: var(--bc-gold); border-radius: 50%; animation: bcSpin 0.8s linear infinite; }
@keyframes bcSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .bc-spinner { animation-duration: 3s; }
  .bc-dialog, .bc-backdrop { transition: none; transform: none; }
}

/* ---------- Tablet / masaüstü: ortalanmış panel ---------- */
@media (min-width: 768px) {
  .bc-dialog {
    left: 50%; right: auto; top: 50%; bottom: auto;
    width: min(620px, calc(100vw - 48px)); height: auto; max-height: min(88vh, 860px);
    border: 1px solid var(--bc-line);
    transform: translate(-50%, calc(-50% + 16px));
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
  }
  .bc-open .bc-dialog { transform: translate(-50%, -50%); }
  .bc-content, .bc-body > .bc-eyebrow, .bc-body > .bc-title, .bc-body > .bc-lead, .bc-body > .bc-actions { padding-left: 36px; padding-right: 36px; }
  .bc-content { padding-top: 32px; }
  .bc-body > .bc-content:first-child { padding-top: 64px; }
  .bc-title { font-size: 2rem; }
  .bc-media, .bc-media img { max-height: 280px; }
  .bc-item { grid-template-columns: 1fr auto auto; align-items: center; }
  .bc-item-cta { grid-column: auto; min-width: 150px; }
  .bc-actions { flex-direction: row; }
  .bc-actions .bc-btn { flex: 1; }
}
@media (min-width: 768px) and (prefers-reduced-motion: reduce) {
  .bc-open .bc-dialog { transform: translate(-50%, -50%); }
  .bc-dialog { transform: translate(-50%, -50%); }
}
