/* Düzen: mobil öncelikli. 768 px tablet, 1024 px masaüstü. */

/* Duyuru bandı */
.duyuru {
  display: flex; align-items: center; justify-content: center; gap: var(--s2);
  padding: var(--s2) var(--s4);
  padding-top: calc(var(--s2) + var(--safe-top));
  background: var(--gold-tint);
  color: var(--gold);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-align: center;
}
.duyuru + .ust-bar { padding-top: 0; }

/* Üst başlık */
.ust-bar {
  position: sticky; top: 0; z-index: 40;
  padding-top: var(--safe-top);
  background: rgba(14, 14, 16, 0.92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.ust-bar__ic {
  display: flex; align-items: center; gap: var(--s3);
  height: var(--header-h);
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--s4);
}
.logo { display: inline-flex; align-items: center; gap: var(--s2); color: var(--text); font-weight: 700; min-height: var(--touch); }
.logo:hover { text-decoration: none; }
.logo__isaret {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--gold);
  color: var(--gold); font-size: 0.85rem; font-weight: 800; letter-spacing: 0.04em;
}
.logo__ad { font-size: var(--fs-md); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 52vw; }
.geri-buton {
  flex: none;
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--gold); color: var(--on-gold);
  box-shadow: 0 0 0 4px transparent;
  transition: background-color 0.15s var(--ease);
}
.geri-buton:hover { background: var(--gold-hover); text-decoration: none; }
.geri-buton:active { background: var(--gold-press); }
.geri-buton:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.geri-buton .ikon { width: 22px; height: 22px; stroke-width: 2.6; }
.ust-bar__ic .geri-buton + .logo { margin-left: calc(var(--s1) * -1); }
.ust-bar__eylemler { display: flex; align-items: center; gap: var(--s1); margin-left: auto; }
.ust-bar__baslik { font-size: var(--fs-lg); font-weight: 650; margin: 0; }

.ikon-buton {
  position: relative;
  display: inline-grid; place-items: center;
  width: var(--touch); height: var(--touch);
  border: 0; border-radius: 50%;
  background: transparent; color: var(--text);
}
.ikon-buton:hover { background: var(--surface-2); text-decoration: none; }
.ikon-buton__nokta {
  position: absolute; top: 11px; right: 12px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 2px var(--bg);
}

/* Masaüstü üst menü (müşteri) */
.ust-menu { display: none; }

/* İçerik */
.icerik {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--s4);
  padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + var(--s5));
}
.sayfa-baslik { margin: var(--s2) 0 var(--s4); }
.sayfa-baslik p { color: var(--muted); margin: 0; }
.bolum { margin-top: var(--s6); }
.bolum:first-child, .sayfa-baslik + .bolum { margin-top: 0; }
.bolum__baslik { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s3); }
.bolum__baslik h2 { margin: 0; font-size: var(--fs-lg); }
.izgara { display: grid; gap: var(--s3); }
.dar { max-width: 440px; margin: 0 auto; }

/* Alt sekme çubuğu */
.sekme-cubugu {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex;
  padding-bottom: var(--safe-bottom);
  background: rgba(23, 23, 26, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.sekme {
  flex: 1 1 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-width: 0;
  height: var(--tabbar-h);
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 600;
  text-decoration: none;
}
.sekme:hover { color: var(--text); text-decoration: none; }
.sekme[aria-current="page"] { color: var(--gold); }
.sekme span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }

/* Personel yan menü (masaüstü) */
.yan-menu { display: none; }
.yan-menu__baglanti {
  display: flex; align-items: center; gap: var(--s3);
  min-height: var(--touch);
  padding: 0 var(--s3);
  border-radius: var(--r-sm);
  color: var(--muted);
  font-weight: 600;
}
.yan-menu__baglanti:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.yan-menu__baglanti[aria-current="page"] { background: var(--gold-tint); color: var(--gold); }
.yan-menu__baglanti--buton { width: 100%; border: 0; background: none; font: inherit; font-weight: 600; text-align: left; }

/* Menü sayfası listesi */
.menu-liste .liste-oge .ikon:first-child { color: var(--gold); }
.menu-liste .liste-oge .ikon:last-child { color: var(--muted); margin-left: auto; }

@media (min-width: 768px) {
  .icerik { padding: var(--s5); padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + var(--s6)); }
  .izgara--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo__ad { max-width: none; }
}

@media (min-width: 1024px) {
  :root { --content-max: 960px; }
  .toast-alani { bottom: var(--s5); }
  .sekme-cubugu { display: none; }
  .icerik { padding: var(--s6) var(--s5); }
  .izgara--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  /* Müşteri: sekmeler üst menüye taşınır */
  .ust-bar__ic { height: 64px; }
  .ust-menu { display: flex; gap: var(--s1); margin-left: var(--s5); }
  .ust-menu a {
    display: inline-flex; align-items: center; gap: var(--s2);
    min-height: 40px; padding: 0 var(--s3);
    border-radius: var(--r-sm);
    color: var(--muted); font-weight: 600;
  }
  .ust-menu a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
  .ust-menu a[aria-current="page"] { color: var(--gold); }

  /* Personel: sol yan menü */
  .duzen-dukkan .yan-menu {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 45;
    display: flex; flex-direction: column; gap: var(--s1);
    width: var(--sidebar-w);
    padding: var(--s4) var(--s3);
    border-right: 1px solid var(--line);
    background: var(--surface);
    overflow-y: auto;
  }
  .yan-menu .logo { padding: 0 var(--s2); margin-bottom: var(--s4); }
  .yan-menu__alt { margin-top: auto; padding-top: var(--s4); border-top: 1px solid var(--line); }
  .duzen-dukkan .dukkan-ana { margin-left: var(--sidebar-w); }
  .duzen-dukkan .ust-bar .logo { display: none; }
}

/* Açılır-kapanır bölüm (takvimde kişi listeleri) */
.katlanir__baslik { cursor: pointer; list-style: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.katlanir__baslik::-webkit-details-marker { display: none; }
.katlanir:not([open]) > .katlanir__baslik { margin-bottom: 0; }
.katlanir__dugme { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: none; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); transition: transform .2s ease, color .2s ease, border-color .2s ease; }
.katlanir[open] > .katlanir__baslik .katlanir__dugme { transform: rotate(180deg); color: var(--gold); border-color: var(--gold); }
.katlanir__baslik:hover .katlanir__dugme { color: var(--gold); }
.katlanir__baslik:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 8px; }
.katlanir > .katlanir__baslik + * { margin-top: var(--s3); }
@media (prefers-reduced-motion: reduce) { .katlanir__dugme { transition: none; } }
