/* ═══ Nar Çiçeğim Restaurant — 6 Tasarım Birleşik Gezinme Konsolu Stilleri ═══ */

.nc-bar {
  position: fixed;
  bottom: 18px;
  top: auto;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  user-select: none;
  -webkit-font-smoothing: antialiased;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: calc(100vw - 24px);
}

.nc-bar__inner {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px 5px 14px;
  border-radius: 999px;
  background: rgba(18, 18, 22, 0.93);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.42), 0 1px 3px rgba(0, 0, 0, 0.2);
}

.nc-bar__brand {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-right: 4px;
}

.nc-bar__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #E0472B;
  box-shadow: 0 0 10px #E0472B;
}

.nc-bar__title {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFFFFF;
  white-space: nowrap;
}

.nc-bar__group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nc-bar__tag {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  margin-right: 2px;
}

.nc-bar__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  background: transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nc-bar__btn b {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.nc-bar__btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.nc-bar__btn.is-active {
  background: #FFFFFF;
  color: #111111;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}

.nc-bar__btn.is-active b {
  background: #111111;
  color: #FFFFFF;
}

.nc-bar__sep {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 4px;
}

.nc-bar__tools {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
}

.nc-bar__tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.nc-bar__tool-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

.nc-bar__tool-btn--min {
  width: 26px;
  height: 26px;
  padding: 0;
  justify-content: center;
  font-size: 0.95rem;
  border-radius: 50%;
}

/* Küçültülmüş Durum */
.nc-bar.is-minimized .nc-bar__group,
.nc-bar.is-minimized .nc-bar__sep,
.nc-bar.is-minimized #ncOpenModal {
  display: none !important;
}

.nc-bar.is-minimized .nc-bar__inner {
  padding: 4px 6px 4px 12px;
}

/* ═══ KARŞILAŞTIRMA MODALI ═══ */
.nc-modal {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: grid;
  place-items: center;
  padding: 24px;
  box-sizing: border-box;
}

.nc-modal[hidden] {
  display: none !important;
}

.nc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.nc-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  overflow-y: auto;
  background: #18191C;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  padding: 28px 32px;
  box-sizing: border-box;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.75);
  color: #FFFFFF;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.nc-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nc-modal__header h2 {
  margin: 0 0 6px 0;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nc-modal__header p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.nc-modal__close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #FFFFFF;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.4rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.nc-modal__close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.nc-modal__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.nc-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.nc-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
}

.nc-card.is-current {
  border-color: #E0472B;
  background: rgba(224, 71, 43, 0.08);
  box-shadow: 0 0 0 1px #E0472B;
}

.nc-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.nc-card__tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 4px;
}

.nc-card__tag--a {
  background: rgba(56, 139, 253, 0.2);
  color: #58A6FF;
}

.nc-card__tag--b {
  background: rgba(210, 153, 34, 0.2);
  color: #E3B341;
}

.nc-card__num {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
}

.nc-card__title {
  margin: 0 0 8px 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
}

.nc-card__desc {
  margin: 0 0 14px 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.7);
  flex-grow: 1;
}

.nc-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 14px;
}

.nc-card__colors {
  display: flex;
  gap: 5px;
}

.nc-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-block;
}

.nc-card__fonts {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: 160px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.nc-card__link {
  display: block;
  text-align: center;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  transition: all 0.2s ease;
}

.nc-card__link:hover {
  background: #FFFFFF;
  color: #111111;
}

.nc-card.is-current .nc-card__link {
  background: #E0472B;
  color: #FFFFFF;
}

/* ═══ DUYARLI UYARLAMALAR (RESPONSIVE) ═══ */
@media (max-width: 960px) {
  .nc-modal__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nc-bar__btn span {
    display: none;
  }
  .nc-bar__btn {
    padding: 5px;
  }
}

@media (max-width: 600px) {
  /* Mobilde de altta: üstteki site başlığını (logo, menü düğmesi) örtmesin */
  .nc-bar {
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    max-width: calc(100vw - 16px);
  }
  /* Aşağı kaydırırken gizlenir, yukarı kaydırınca geri gelir */
  .nc-bar.is-tucked {
    transform: translate(-50%, calc(100% + 24px));
    opacity: 0;
    pointer-events: none;
  }
  .nc-bar__btn {
    min-width: 32px;
    min-height: 32px;
    justify-content: center;
  }
  .nc-bar__inner {
    padding: 4px 6px;
    gap: 3px;
  }
  .nc-bar__title,
  .nc-bar__tag {
    display: none;
  }
  .nc-bar__tool-btn span {
    display: none;
  }
  .nc-modal__grid {
    grid-template-columns: 1fr;
  }
  .nc-modal__dialog {
    padding: 20px 16px;
  }
}

@media print {
  .nc-bar, .nc-modal {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   Sunum katmanı — konsol her sayfada altta durur, altbilgiyi
   örtmesin diye gövdeye yer bırakılır.
   ═══════════════════════════════════════════════════════════════ */
/* Gövdeye değil altbilgilere yer bırakılır: zeminler bozulmasın. */
.sofra-footer,
.rb-footer,
.nar-footer,
.foot { padding-bottom: 96px; }

@media (max-width: 720px) {
  .sofra-footer,
  .rb-footer,
  .nar-footer,
  .foot { padding-bottom: 116px; }
}

/* 04 / Klasik: alttaki kısayol çubuğunun (dock) üstünde dursun */
body[data-nc-motion="klasik"] .nc-bar { bottom: calc(var(--dockh, 56px) + 12px); }

/* Tasarımlar arası geçiş perdesi: sunumda sayfa zıplamasın. */
.nc-veil {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  background: var(--nc-veil, #141210);
  transition: opacity .26s ease;
}
.nc-veil.is-on { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .nc-veil { display: none; }
}
