/* support.dev — Müşteri Hizmetleri sayfa düzeni (mh-* sınıfları, eski CSS'ten bağımsız) */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

.mh-page {
  --mh-accent: #6a1d5a;
  --mh-accent-soft: #f5eef3;
  --mh-accent-hover: #551849;
  --mh-text: #3e3c3c;
  --mh-muted: #646464;
  --mh-border: #e8e8e8;
  --mh-bg: #f7f7f8;
  --mh-card: #fff;
  --mh-radius: 12px;
  --mh-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
  --mh-aside-w: 280px;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--mh-text);
  background: var(--mh-bg);
  padding: 24px 16px 40px;
}

.mh-page *,
.mh-page *::before,
.mh-page *::after {
  box-sizing: border-box;
}

.mh-layout {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: var(--mh-aside-w) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

/* ── Mobil menü bar ── */
.mh-mobile-bar {
  display: none;
}

.mh-backdrop {
  display: none;
}

/* ── Yan menü ── */
.mh-aside {
  position: sticky;
  top: 16px;
  background: var(--mh-card);
  border: 1px solid var(--mh-border);
  border-radius: var(--mh-radius);
  box-shadow: var(--mh-shadow);
  overflow: hidden;
}

.mh-aside__head {
  display: block;
}

.mh-aside__close {
  display: none;
}

.mh-aside__brand {
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--mh-border);
  background: linear-gradient(135deg, #fafafa 0%, #f3eef2 100%);
}

.mh-aside__title {
  display: block;
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--mh-text);
}

.mh-aside__desc {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--mh-muted);
}

.mh-nav__list,
.mh-nav__sublist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mh-nav__link,
.mh-nav__sublink {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: var(--mh-text);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.35;
  transition: background 0.15s, color 0.15s;
}

.mh-nav__link:hover,
.mh-nav__sublink:hover {
  background: #f5f5f5;
  color: var(--mh-accent);
}

.mh-nav__icon {
  width: 16px;
  flex-shrink: 0;
  color: var(--mh-muted);
  font-size: 14px;
  text-align: center;
}

.mh-nav__chevron {
  margin-left: auto;
  font-size: 11px;
  color: #999;
}

.mh-nav__item--active > .mh-nav__link {
  background: var(--mh-accent-soft);
  color: var(--mh-accent);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--mh-accent);
}

.mh-nav__item--active > .mh-nav__link .mh-nav__icon {
  color: var(--mh-accent);
}

.mh-nav__sublist {
  background: #fafafa;
  border-top: 1px solid var(--mh-border);
}

.mh-nav__sublink {
  padding: 10px 16px 10px 42px;
  font-size: 0.875rem;
  font-weight: 500;
  border-top: 1px solid rgba(232, 232, 232, 0.7);
}

.mh-nav__subitem:first-child .mh-nav__sublink {
  border-top: 0;
}

.mh-nav__subitem--active .mh-nav__sublink {
  background: #fff;
  color: var(--mh-accent);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--mh-accent);
}

/* ── Ana içerik ── */
.mh-main {
  background: var(--mh-card);
  border: 1px solid var(--mh-border);
  border-radius: var(--mh-radius);
  box-shadow: var(--mh-shadow);
  overflow: hidden;
  min-width: 0;
}

.mh-main__head {
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--mh-border);
  background: linear-gradient(180deg, #fff 0%, #fcfcfc 100%);
}

.mh-main__eyebrow {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mh-accent);
}

.mh-main__title {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--mh-text);
}

.mh-main__body {
  padding: 24px 28px 32px;
}

/* ── Mağaza sekmeleri ── */
.mh-store-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 28px 0;
  border-bottom: 1px solid var(--mh-border);
  background: #fafafa;
}

.mh-store-tabs__btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  margin-bottom: -1px;
  border: 1px solid transparent;
  border-radius: 10px 10px 0 0;
  background: transparent;
  color: var(--mh-muted);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.mh-store-tabs__btn:hover {
  color: var(--mh-accent);
  background: #fff;
}

.mh-store-tabs__btn--active {
  background: #fff;
  color: var(--mh-accent);
  border-color: var(--mh-border);
  border-bottom-color: #fff;
}

.mh-prose--store {
  padding-top: 20px;
}

/* ── İçerik tipografi (DB HTML) ── */
.mh-prose {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--mh-text);
}

.mh-prose h1,
.mh-prose h2,
.mh-prose h3,
.mh-prose h4,
.mh-prose h5 {
  margin: 1.4em 0 0.6em;
  line-height: 1.3;
  color: var(--mh-text);
}

.mh-prose h1:first-child,
.mh-prose h2:first-child,
.mh-prose h3:first-child {
  margin-top: 0;
}

.mh-prose p {
  margin: 0 0 1em;
}

.mh-prose ul,
.mh-prose ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

.mh-prose ul.c {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25em;
  border: 1px solid var(--mh-border);
  border-radius: 10px;
  overflow: hidden;
}

.mh-prose ul.c li {
  padding: 12px 14px;
  border-bottom: 1px solid var(--mh-border);
  background: #fafafa;
}

.mh-prose ul.c li:last-child {
  border-bottom: 0;
}

.mh-prose ul.c strong {
  font-weight: 600;
}

.mh-prose ul.c i {
  margin-right: 8px;
  color: var(--mh-accent);
}

.mh-prose .btn,
.mh-prose .red-button,
.mh-prose a.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 8px 8px 0;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--mh-accent);
  color: #fff !important;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: 0;
}

.mh-prose .btn:hover,
.mh-prose .red-button:hover,
.mh-prose a.btn-primary:hover {
  background: var(--mh-accent-hover);
}

.mh-prose .info {
  padding: 14px 16px;
  border-radius: 10px;
  background: #e8f4fd;
  border: 1px solid #bde5f8;
  color: #00529b;
  margin: 1em 0;
}

/* Mağaza fotoğraf galerisi */
.mh-prose .mh-section-title {
  margin: 1.5em 0 0.75em;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--mh-text);
}

.mh-prose .mh-section-title:first-child {
  margin-top: 0;
}

.mh-prose .mh-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 1.25em;
}

@media (min-width: 520px) {
  .mh-prose .mh-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (min-width: 768px) {
  .mh-prose .mh-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }
}

.mh-prose .mh-gallery > li {
  margin: 0;
  padding: 0;
  float: none;
  width: auto;
  max-width: none;
  flex: none;
}

.mh-prose .mh-gallery a {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
  background: #eee;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mh-prose .mh-gallery a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.mh-prose .mh-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

/* Fancybox galeri zinciri — görünmez yardımcı linkler */
.mh-prose a[data-fancybox]:empty {
  display: none;
}

/* Eski photos_store (geriye dönük) */
.mh-prose ul.photos_store {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 1em 0 1.25em;
}

.mh-prose ul.photos_store > li {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  flex: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.mh-prose ul.photos_store.row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

@media (min-width: 520px) {
  .mh-prose ul.photos_store {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .mh-prose ul.photos_store {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.mh-prose ul.photos_store a {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
  height: auto;
  border: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.mh-prose ul.photos_store a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.mh-prose ul.photos_store img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

.mh-prose hr {
  border: 0;
  border-top: 1px solid var(--mh-border);
  margin: 1.5em 0;
}

.mh-prose iframe {
  max-width: 100%;
  border-radius: 10px;
}

/* ── Akordeon ── */
.mh-accordion {
  list-style: none;
  margin: 0;
  padding: 0 28px 28px;
}

.mh-accordion__item {
  border: 1px solid var(--mh-border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
  background: #fff;
}

.mh-accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  background: #fafafa;
  color: var(--mh-text);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.mh-accordion__item--open .mh-accordion__trigger {
  background: var(--mh-accent-soft);
  color: var(--mh-accent);
}

.mh-accordion__chevron {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.mh-accordion__item--open .mh-accordion__chevron {
  transform: rotate(180deg);
}

.mh-accordion__panel {
  display: none;
}

.mh-accordion__item--open .mh-accordion__panel {
  display: block;
}

.mh-accordion__content {
  padding: 14px 16px 16px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--mh-muted);
  border-top: 1px solid var(--mh-border);
}

/* ── Mobil ── */
@media (max-width: 860px) {
  .mh-page {
    padding: 0 0 32px;
  }

  .mh-mobile-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 12px 16px;
    border: 0;
    border-bottom: 1px solid var(--mh-border);
    background: #fff;
    color: var(--mh-text);
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    position: sticky;
    top: 0;
    z-index: 8500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }

  .mh-mobile-bar i {
    color: var(--mh-accent);
    font-size: 18px;
  }

  .mh-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 9040;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .mh-page.mh-nav-open .mh-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .mh-layout {
    display: block;
    max-width: none;
    padding: 16px;
  }

  /* Ortalanmış mobil menü modal */
  .mh-aside {
    position: fixed;
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    width: min(92vw, 440px);
    max-height: min(
      85dvh,
      calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 24px)
    );
    z-index: 9100;
    display: flex;
    flex-direction: column;
    margin: 0;
    border-radius: 18px;
    border: 1px solid var(--mh-border);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
    transform: translate(-50%, -50%) scale(0.94);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: none;
    overflow: hidden;
  }

  .mh-page.mh-nav-anim .mh-aside {
    transition:
      transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.22s ease,
      visibility 0.28s ease;
  }

  .mh-page.mh-nav-open .mh-aside {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .mh-aside__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
    padding: 14px 14px 0;
    position: static;
    background: #fff;
    border-bottom: 1px solid var(--mh-border);
    border-radius: 18px 18px 0 0;
  }

  .mh-aside__head .mh-aside__brand {
    flex: 1;
    padding: 0 0 14px;
    border: 0;
    background: transparent;
  }

  .mh-nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .mh-aside .mh-nav__list {
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  }

  .mh-aside__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: #f3f4f6;
    color: var(--mh-muted);
    cursor: pointer;
    flex-shrink: 0;
  }

  .mh-main__head {
    padding: 20px 18px 16px;
  }

  .mh-main__body,
  .mh-prose--store {
    padding: 18px;
  }

  .mh-store-tabs {
    padding: 12px 18px 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mh-store-tabs__btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .mh-accordion {
    padding: 0 18px 18px;
  }
}

@media (min-width: 861px) {
  .mh-mobile-bar,
  .mh-backdrop {
    display: none !important;
  }

  .mh-aside {
    position: sticky;
    top: 16px;
    width: auto;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    grid-column: 1;
    grid-row: 1;
    display: block;
    border-radius: var(--mh-radius);
    box-shadow: var(--mh-shadow);
  }

  .mh-nav {
    overflow: visible;
  }

  .mh-main {
    grid-column: 2;
    grid-row: 1;
  }

  .mh-aside__close {
    display: none !important;
  }
}

body.mh-nav-open {
  overflow: hidden;
}
