/* Bosphorus Boat Show 2026: duyuru şeridi + modal. Fuar sonrası bu dosya silinir. */

:root {
  --nwbs-bar-h: 38px; /* .nw-topbar ile aynı yükseklik */
  --nwbs-accent: #dcc59a;
  --nwbs-ink: #060f1d;
  --nwbs-serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

/* ───────────── Şerit ───────────── */

.nwbs-bar {
  position: relative;
  z-index: 1002;
  height: var(--nwbs-bar-h);
  font-family: var(--hdr-font, "Inter", system-ui, sans-serif);
  background: linear-gradient(90deg, #060f1d 0%, #13243d 50%, #060f1d 100%);
  border-bottom: 1px solid rgba(220, 197, 154, 0.2);
  color: rgba(255, 255, 255, 0.86);
}

.nwbs-bar__btn {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 16px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  color: inherit;
  background: none;
  border: 0;
}

.nwbs-bar__btn:focus-visible {
  outline: 2px solid var(--nwbs-accent);
  outline-offset: -3px;
}

.nwbs-bar__dot {
  position: relative;
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--nwbs-accent);
}

.nwbs-bar__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--nwbs-accent);
  animation: nwbs-ping 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.nwbs-bar__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--nwbs-accent);
}

.nwbs-bar__title {
  font-weight: 600;
  color: #fff;
}

.nwbs-bar__sep {
  flex: none;
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.2);
}

.nwbs-bar__stand {
  font-weight: 600;
  color: var(--nwbs-accent);
}

.nwbs-bar__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: 4px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(220, 197, 154, 0.45);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.nwbs-bar__btn:hover .nwbs-bar__cta {
  background: rgba(220, 197, 154, 0.16);
  border-color: var(--nwbs-accent);
}

.nwbs-bar__cta svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}

.nwbs-bar__btn:hover .nwbs-bar__cta svg {
  transform: translateX(2px);
}

[dir="rtl"] .nwbs-bar__cta svg {
  transform: scaleX(-1);
}

[dir="rtl"] .nwbs-bar__btn:hover .nwbs-bar__cta svg {
  transform: scaleX(-1) translateX(2px);
}

@media (max-width: 639px) {
  :root {
    --nwbs-bar-h: 36px;
  }

  .nwbs-bar__btn {
    gap: 8px;
    padding: 0 12px;
    font-size: 12px;
  }

  .nwbs-bar__eyebrow,
  .nwbs-bar__sep--eyebrow,
  .nwbs-bar__stand-label {
    display: none;
  }

  .nwbs-bar__cta {
    padding: 5px 9px;
    font-size: 11px;
  }
}

@media (max-width: 380px) {
  .nwbs-bar__stand,
  .nwbs-bar__sep--stand {
    display: none;
  }
}

/* ───────────── Modal ───────────── */

.nwbs-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000; /* WhatsApp/chat eklentilerinin fab'ları da çok yüksek z-index kullanıyor */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(3, 7, 14, 0.74);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: nwbs-fade 0.24s ease-out both;
}

.nwbs-overlay[hidden] {
  display: none;
}

.nwbs-overlay.is-closing {
  animation: nwbs-fade-out 0.18s ease-in both;
}

.nwbs-dialog {
  position: relative;
  width: min(960px, 100%);
  max-height: calc(100dvh - 32px);
  overflow: hidden;
  border-radius: 20px;
  background: #0b182c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(0, 0, 0, 0.4);
  animation: nwbs-pop 0.36s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.nwbs-overlay.is-closing .nwbs-dialog {
  animation: nwbs-pop-out 0.18s ease-in both;
}

.nwbs-poster {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #060f1d;
}

.nwbs-close {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(6, 15, 29, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.nwbs-close:hover {
  background: rgba(6, 15, 29, 0.85);
  border-color: rgba(255, 255, 255, 0.5);
  transform: rotate(90deg);
}

.nwbs-close:focus-visible {
  outline: 2px solid var(--nwbs-accent);
  outline-offset: 2px;
}

.nwbs-close svg {
  width: 16px;
  height: 16px;
}

/* Metin kartı: mobil + posteri olmayan diller */
.nwbs-card {
  display: none;
}

.nwbs-art {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.nwbs-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Poster metinli olduğu için yalnızca görsel kısmına (tekne / motor) yakınlaştır. */
  transform: scale(2.2);
  transform-origin: 80% 46%;
}

.nwbs-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11, 24, 44, 0.1) 0%, rgba(11, 24, 44, 0) 35%, rgba(11, 24, 44, 0.85) 80%, #0b182c 100%);
}

.nwbs-card__body {
  position: relative;
  z-index: 1;
  margin-top: -30px;
  padding: 0 22px 26px;
}

.nwbs-card__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--nwbs-accent);
}

.nwbs-card__eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.nwbs-card__title {
  margin: 10px 0 0;
  font-family: var(--nwbs-serif);
  font-size: 46px;
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: #f6f8f4;
}

.nwbs-card__title em {
  display: block;
  font-style: italic;
  color: var(--nwbs-accent);
}

[dir="rtl"] .nwbs-card__title,
[dir="rtl"] .nwbs-card__eyebrow {
  direction: ltr;
  text-align: right;
}

.nwbs-card__tagline {
  margin: 14px 0 20px;
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

.nwbs-facts {
  margin: 0;
  padding: 0;
}

.nwbs-facts > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nwbs-facts dt {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.nwbs-facts dd {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  text-align: end;
}

.nwbs-facts .is-stand {
  color: var(--nwbs-accent);
  font-weight: 600;
}

/* ≥640px poster, <640px metin kartı (poster mobilde okunamayacak kadar küçülür) */
@media (max-width: 639px) {
  .nwbs-poster {
    display: none;
  }

  .nwbs-card {
    display: block;
  }

  .nwbs-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .nwbs-dialog {
    width: 100%;
    max-height: 92dvh;
    overflow-y: auto;
    border-radius: 22px 22px 0 0;
    border-bottom: 0;
    animation-name: nwbs-rise;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .nwbs-overlay.is-closing .nwbs-dialog {
    animation-name: nwbs-rise-out;
  }
}

@keyframes nwbs-ping {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  75%,
  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}

@keyframes nwbs-fade {
  from {
    opacity: 0;
  }
}

@keyframes nwbs-fade-out {
  to {
    opacity: 0;
  }
}

@keyframes nwbs-pop {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.965);
  }
}

@keyframes nwbs-pop-out {
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}

@keyframes nwbs-rise {
  from {
    transform: translateY(100%);
  }
}

@keyframes nwbs-rise-out {
  to {
    transform: translateY(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nwbs-bar__dot::after {
    animation: none;
    opacity: 0;
  }

  .nwbs-overlay,
  .nwbs-dialog,
  .nwbs-overlay.is-closing,
  .nwbs-overlay.is-closing .nwbs-dialog {
    animation-duration: 0.01s;
  }

  .nwbs-close:hover {
    transform: none;
  }
}

/* ───────────── Tema (Inspiro) global button stillerini ez ─────────────
   Tema <button>'lara padding, uppercase, letter-spacing, hover rengi veriyor;
   bu yüzden kapatma düğmesi oval, şerit yazısı büyük harf oluyordu. */

.nwbs-bar .nwbs-bar__btn,
.nwbs-bar .nwbs-bar__btn:hover,
.nwbs-bar .nwbs-bar__btn:focus,
.nwbs-bar .nwbs-bar__btn:active {
  margin: 0;
  min-width: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  text-shadow: none;
  text-transform: none;
  letter-spacing: 0.01em;
  font-weight: 400;
  color: inherit;
  transform: none;
}

.nwbs-dialog .nwbs-close,
.nwbs-dialog .nwbs-close:hover,
.nwbs-dialog .nwbs-close:focus,
.nwbs-dialog .nwbs-close:active {
  box-sizing: border-box;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(6, 15, 29, 0.55);
  box-shadow: none;
  text-shadow: none;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0;
  line-height: 1;
  color: #fff;
}

.nwbs-dialog .nwbs-close:hover {
  background: rgba(6, 15, 29, 0.85);
  border-color: rgba(255, 255, 255, 0.5);
  transform: rotate(90deg);
}

.nwbs-dialog .nwbs-close:focus-visible {
  outline: 2px solid var(--nwbs-accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .nwbs-dialog .nwbs-close:hover {
    transform: none;
  }
}
