/*
 * menu-ux.css — theme.css'ten SONRA yüklenir. Geri almak için header.php'deki <link> satırını silmek yeter.
 */

/* ---- Akordeon: her kategori için satır içi <style> yazmaya gerek kalmadı ---- */
.accordion > input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  height: 0;
  width: 100%;
  pointer-events: none;
}
.accordion > input[type="checkbox"]:checked + .slide {
  display: block;
  height: auto;
}
.accordion > input[type="checkbox"]:checked + .slide li {
  height: auto;
  overflow: hidden;
  width: 100%;
}
/* Açılabilir olduğunu belli eden ok */
.accordion > label span {
  position: relative;
  padding-right: 38px;
}
.accordion > label span::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 12px;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
}
.accordion:has(> input:checked) > label span::after {
  transform: translateY(-50%) rotate(180deg);
}

/* ---- Sabit kategori şeridi ---- */
.cat-nav {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  z-index: 9;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transform: translateY(-130%);
  transition: transform 0.25s ease;
}
.cat-nav.show {
  transform: translateY(0);
}
.cat-nav-row,
.cat-sub-set {
  position: relative;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.cat-nav-row::-webkit-scrollbar,
.cat-sub-set::-webkit-scrollbar {
  display: none;
}
.cat-sub-set {
  gap: 6px;
  padding-top: 0;
}
.cat-sub-set[hidden] {
  display: none;
}
.cat-chip {
  flex: 0 0 auto;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #f6f6f6;
  color: #212529;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}
.cat-chip.sm {
  font-size: 13px;
  padding: 4px 11px;
  background: #ffffff;
}
.cat-chip.active {
  background: #95b700;
  border-color: #95b700;
  color: #ffffff;
}

/* Sabit şeritlerin altında kalmasın */
.listeler,
[id^="sub-"] {
  scroll-margin-top: 140px;
}

/* ---- Görseller ---- */
.hnw-img img {
  background: #f1f1f1;
}
.popup-img img {
  aspect-ratio: 16 / 11;
  object-fit: cover;
  background: #f1f1f1;
}

/* ---- Geri bildirim mesajı ---- */
#feedback-error {
  display: none;
  margin: 10px 0 0;
  font-size: 14px;
}
#feedback-error.fb-bad {
  color: #c62828;
}
#feedback-error.fb-ok {
  color: #2e7d32;
}

/* Klavye ile gezinirken odak görünsün */
.news-content[role="button"]:focus-visible,
.cat-chip:focus-visible {
  outline: 2px solid #95b700;
  outline-offset: 2px;
}
