/**
 * Mobil drawer (3 çizgi) — premium app menü
 */

.kh-mdrawer {
  z-index: 10050;
}

.kh-mdrawer .kh-drawer__panel,
.kh-mdrawer__panel {
  display: flex;
  flex-direction: column;
  left: auto;
  right: 0;
  width: min(340px, 92vw);
  max-width: 100%;
  height: 100%;
  padding: 0;
  background: linear-gradient(180deg, #0f172a 0%, #0b1021 100%);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -12px 0 48px rgba(0, 0, 0, 0.55);
  transform: translateX(100%);
}

.kh-mdrawer.is-open .kh-drawer__panel,
.kh-mdrawer.is-open .kh-mdrawer__panel {
  transform: translateX(0);
}

.kh-mdrawer__overlay {
  background: rgba(4, 8, 18, 0.72);
  backdrop-filter: blur(4px);
}

.kh-mdrawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.kh-mdrawer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.kh-mdrawer__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  color: #0b1021;
  background: linear-gradient(135deg, #00d4ff, #60a5fa);
  flex-shrink: 0;
}

.kh-mdrawer__brand strong {
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kh-mdrawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.kh-mdrawer__close:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(0, 212, 255, 0.35);
}

.kh-mdrawer__nav {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 12px 14px 20px;
  -webkit-overflow-scrolling: touch;
}

/* Eski masaüstü nav sızıntısını gizle */
.kh-mdrawer__nav .kh-nav__list,
.kh-mdrawer__nav .kh-mega,
.kh-mdrawer__nav .kh-nav__dropdown {
  display: none !important;
}

.kh-mdrawer__list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kh-mdrawer__link {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.kh-mdrawer__link:hover,
.kh-mdrawer__link:focus-visible {
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(0, 212, 255, 0.28);
}

.kh-mdrawer__link--trend {
  border-color: rgba(251, 146, 60, 0.35);
  background: rgba(251, 146, 60, 0.1);
}

.kh-mdrawer__link--popular {
  border-color: rgba(96, 165, 250, 0.35);
  background: rgba(59, 130, 246, 0.12);
}

.kh-mdrawer__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.kh-mdrawer__ico-text {
  font-size: 18px;
  line-height: 1;
}

.kh-mdrawer__label {
  flex: 1;
  min-width: 0;
}

.kh-mdrawer__section {
  margin-top: 4px;
}

.kh-mdrawer__accordion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: #f8fafc;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.kh-mdrawer__accordion:hover {
  background: rgba(59, 130, 246, 0.12);
}

.kh-mdrawer__accordion-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.kh-mdrawer__accordion[aria-expanded='true'] {
  border-color: rgba(0, 212, 255, 0.35);
  background: rgba(59, 130, 246, 0.16);
}

.kh-mdrawer__accordion[aria-expanded='true'] .kh-mdrawer__caret {
  transform: rotate(180deg);
}

.kh-mdrawer__caret {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.kh-mdrawer__sublist {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kh-mdrawer__sublist[hidden] {
  display: none;
}

.kh-mdrawer__sublink {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease;
}

.kh-mdrawer__sublink:hover,
.kh-mdrawer__sublink:focus-visible {
  color: #f8fafc;
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(0, 212, 255, 0.2);
}

.kh-mdrawer__cat-ico {
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.kh-mdrawer__cat-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kh-mdrawer__cat-count {
  font-size: 12px;
  font-weight: 700;
  color: #7dd3fc;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.2);
}

.kh-mdrawer__sublink--all {
  justify-content: center;
  color: #00d4ff;
  border-style: dashed;
  border-color: rgba(0, 212, 255, 0.35);
}

.kh-mdrawer__foot {
  padding: 14px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 12, 24, 0.85);
}

.kh-mdrawer__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  color: #0b1021;
  background: linear-gradient(90deg, #00d4ff, #60a5fa);
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kh-mdrawer__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 212, 255, 0.35);
}

body.kh-mdrawer-open {
  overflow: hidden;
}

@media (min-width: 1025px) {
  .kh-mdrawer {
    display: none !important;
  }
}
