/* ==========================================================================
   TEMA 4 - "Filigran"
   Yerlesim farki: ayri bir onizleme SUTUNU yok. Uzerine gelinen urun,
   panelin sag tarafinda kenardan tasan DEV bir filigran olarak arkada belirir;
   liste bu sayede tum genisligi kullanir (4 sutun).
   Marka paleti: lacivert (#003087) alan, turuncu (#f1592a) vurgu.
   ========================================================================== */

.mm {
  --mm-navy: #003087;
  --mm-navy-deep: #041634;
  --mm-navy-ink: #020c1f;
  --mm-accent: #f1592a;
  --mm-ink: #ffffff;
  --mm-body: #aebbd6;
  --mm-mute: #7c89a8;
  --mm-line: rgba(255, 255, 255, .14);
  --mm-hair: rgba(255, 255, 255, .07);
  --mm-ease: cubic-bezier(.2, .8, .2, 1);
  --mm-mech: cubic-bezier(.76, 0, .24, 1);
}

.uk-navbar-dropdown.mm-drop {
  padding: 0;
  margin: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--mm-ink);
}

.mm-panel {
  width: 100vw;
  margin-left: calc(-1 * (100vw - 100%) / 2);
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: stretch;
  min-height: 420px;
  max-height: min(76vh, 700px);
  text-align: left;
  color: var(--mm-ink);
  background:
    radial-gradient(1000px 460px at 18% -20%, var(--mm-navy), transparent 66%),
    radial-gradient(760px 420px at 96% 116%, rgba(241, 89, 42, .26), transparent 62%),
    linear-gradient(160deg, var(--mm-navy-deep), var(--mm-navy-ink) 72%);
  border-top: 2px solid var(--mm-accent);
  box-shadow: 0 40px 84px -30px rgba(0, 0, 0, .85);
  overflow: hidden;
}

/* ---------------------------------------------------------------- ray */
.mm-rail {
  position: relative;
  z-index: 3;
  flex: 0 0 306px;
  max-width: 306px;
  padding: 38px 0 30px;
  overflow-y: auto;
  border-right: 1px solid var(--mm-line);
  background: linear-gradient(180deg, rgba(2, 12, 31, .5), rgba(2, 12, 31, .78));
}

.mm-rail-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mm-accent);
  padding: 0 36px 20px;
}

.mm-rail ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mm-rail-item {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 0 13px;
  width: 100%;
  padding: 17px 28px 17px 36px;
  border: 0;
  border-bottom: 1px solid var(--mm-hair);
  background: transparent;
  color: var(--mm-body);
  font-family: inherit;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: color .3s var(--mm-ease), background .3s var(--mm-ease);
}

/* secilen kategoriyi soldan saga tarayan turuncu blok */
.mm-rail-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(241, 89, 42, .3), rgba(241, 89, 42, 0) 88%);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .45s var(--mm-mech);
  z-index: -1;
}

.mm-rail-item::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--mm-accent);
  transform: scaleY(0);
  transition: transform .4s var(--mm-mech);
}

.mm-rail-item:hover {
  color: var(--mm-ink);
  background: rgba(255, 255, 255, .04);
}

.mm-rail-item.is-active {
  color: #fff;
}

.mm-rail-item.is-active::before {
  transform: scaleX(1);
}

.mm-rail-item.is-active::after {
  transform: scaleY(1);
}

.mm-rail-no {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--mm-mute);
  transition: color .3s var(--mm-ease);
}

.mm-rail-item.is-active .mm-rail-no {
  color: var(--mm-accent);
}

.mm-rail-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--mm-mute);
}

.mm-rail-item.is-active .mm-rail-count {
  color: rgba(255, 255, 255, .7);
}

/* -------------------------------------------------------------- icerik */
.mm-content {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr);
  display: grid;
}

/* Tek sutun: onizleme icin yer ayrilmaz, filigran arkaya konumlanir */
.mm-pane {
  grid-area: 1 / 1;
  min-height: 0;
  position: relative;
  display: block;
  visibility: hidden;
  opacity: 0;
  transition: opacity .3s var(--mm-ease);
}

.mm-pane.is-active {
  visibility: visible;
  opacity: 1;
}

/* ============================================== FILIGRAN (arka plandaki urun) */
.mm-scope {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  padding: 0;
  border: 0;
  background: none;
  pointer-events: none;
  overflow: hidden;
}

/* etiket sag ust koseye kucuk bir isaret olarak duser */
.mm-scope-label {
  position: absolute;
  top: 34px;
  right: 44px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--mm-mute);
  opacity: .8;
  margin: 0;
}

/* gorsel sag kenardan ve alttan tasar */
.mm-scope-frame {
  position: absolute;
  right: -6%;
  bottom: -14%;
  width: 54%;
  height: 116%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: none;
  overflow: visible;
}

.mm-scope-frame::after,
.mm-reticle,
.mm-c {
  display: none;
}

.mm-scope-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: .3;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .6));
  transition: opacity .45s var(--mm-ease), transform .8s var(--mm-ease);
  transform: rotate(-4deg);
}

.mm-scope.is-live .mm-scope-img {
  opacity: .5;
}

.mm-scope-frame.is-swapping .mm-scope-img {
  opacity: 0;
  transform: rotate(-4deg) translateY(16px) scale(.96);
}

/* metnin okunurlugunu korumak icin filigranin uzerine soldan gelen perde */
.mm-scope::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      var(--mm-navy-ink) 0%,
      rgba(2, 12, 31, .92) 34%,
      rgba(2, 12, 31, .55) 58%,
      rgba(2, 12, 31, .2) 100%);
}

/* filigran kunyesi sag altta */
.mm-scope-meta {
  position: absolute;
  right: 44px;
  bottom: 34px;
  z-index: 2;
  margin: 0;
  min-height: 0;
  max-width: 46%;
  text-align: right;
  pointer-events: auto;
}

.mm-scope-name {
  display: block;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.28;
  color: #fff;
  transition: opacity .32s var(--mm-ease);
}

.mm-scope-meta.is-swapping .mm-scope-name {
  opacity: 0;
}

.mm-scope-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mm-mute);
  border-bottom: 1px solid transparent;
  transition: color .3s var(--mm-ease), border-color .3s var(--mm-ease), gap .3s var(--mm-ease);
}

.mm-scope.is-live .mm-scope-cta,
.mm-scope-cta:hover {
  color: var(--mm-accent);
  border-bottom-color: rgba(241, 89, 42, .5);
  text-decoration: none;
}

.mm-scope-cta:hover {
  gap: 13px;
}

/* ------------------------------------------------------- liste (tam genislik) */
.mm-index {
  position: relative;
  z-index: 2;
  min-width: 0;
  min-height: 0;
  max-height: 100%;
  /* sag tarafta filigranin nefes almasi icin bosluk birakilir */
  padding: 36px 30% 36px 46px;
  overflow-y: auto;
}

.mm-pane-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  padding-bottom: 16px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--mm-line);
}

.mm-eyebrow {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mm-accent);
}

.mm-pane-head h3 {
  margin: 0;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.08;
  color: #fff;
}

.mm-all-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  background: var(--mm-navy);
  border: 1px solid rgba(255, 255, 255, .18);
  transition: background .3s var(--mm-ease), border-color .3s var(--mm-ease);
}

.mm-all-link:hover {
  background: var(--mm-accent);
  border-color: var(--mm-accent);
  text-decoration: none;
}

.mm-all-link i {
  font-style: normal;
  transition: transform .3s var(--mm-ease);
}

.mm-all-link:hover i {
  transform: translateX(4px);
}

.mm-groups {
  columns: 3 210px;
  column-gap: 36px;
}

.mm-subgroup {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin: 0 0 26px;
}

.mm-group-title {
  display: block;
  margin: 0 0 12px;
  padding-bottom: 9px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #fff;
  border-bottom: 2px solid var(--mm-accent);
  transition: color .3s var(--mm-ease);
}

a.mm-group-title:hover {
  color: var(--mm-accent);
  text-decoration: none;
}

.mm-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mm-link {
  display: block;
  position: relative;
  padding: 6px 8px 6px 15px;
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--mm-body);
  transition: color .24s var(--mm-ease), transform .26s var(--mm-ease);
}

/* kucuk lacivert kare, secilince turuncuya doner */
.mm-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, .22);
  transition: background .24s var(--mm-ease), transform .34s var(--mm-mech);
}

.mm-link:hover,
.mm-link.is-peek {
  color: #fff;
  transform: translateX(5px);
  text-decoration: none;
}

.mm-link:hover::before,
.mm-link.is-peek::before {
  background: var(--mm-accent);
  transform: rotate(45deg) scale(1.15);
}

.mm-link-thumb {
  display: none;
}

/* --------------------------------------------------------------- hareket */
.mm-pane.is-active .mm-pane-head {
  animation: mmT4Rise .46s var(--mm-ease) both;
}

.mm-pane.is-active .mm-scope-frame {
  animation: mmT4Drift .9s var(--mm-ease) both;
}

.mm-pane.is-active .mm-subgroup {
  animation: mmT4Rise .5s var(--mm-ease) both;
  animation-delay: calc(var(--i, 0) * 75ms + 70ms);
}

.mm-pane.is-active .mm-links li {
  animation: mmT4Slide .42s var(--mm-ease) both;
  animation-delay: calc(var(--i, 0) * 75ms + var(--j, 0) * 30ms + 130ms);
}

.mm-rail-item {
  animation: mmT4Slide .45s var(--mm-ease) both;
  animation-delay: calc(var(--i, 0) * 55ms);
}

@keyframes mmT4Rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes mmT4Slide {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes mmT4Drift {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.mm-rail::-webkit-scrollbar,
.mm-index::-webkit-scrollbar {
  width: 5px;
}

.mm-rail::-webkit-scrollbar-thumb,
.mm-index::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .2);
}

.mm-rail::-webkit-scrollbar-track,
.mm-index::-webkit-scrollbar-track {
  background: transparent;
}

.uk-dropbar.uk-dropbar-top {
  background: transparent !important;
  box-shadow: none !important;
}

@media (max-width: 1450px) {
  .mm-rail {
    flex-basis: 254px;
    max-width: 254px;
  }

  .mm-index {
    padding: 30px 26% 30px 34px;
  }
}

/* dar ekranda filigran gorsel kalkar, liste tum alani alir */
@media (max-width: 1250px) {
  .mm-index {
    padding-right: 34px;
  }

  .mm-scope {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {

  .mm-panel *,
  .mm-panel *::before,
  .mm-panel *::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }
}

/* ============================================================ Mobil */
.mm-mob {
  --mm-accent: #f1592a;
  --mm-ease: cubic-bezier(.2, .8, .2, 1);
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

.mm-mob ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mm-mob-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.mm-mob-row>a {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
}

.mm-mob-row>a:hover {
  color: var(--mm-accent);
  text-decoration: none;
}

.mm-mob-thumb {
  flex: 0 0 auto;
  width: 44px;
  height: 34px;
  object-fit: contain;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .14);
}

.mm-mob-toggle {
  flex: 0 0 auto;
  position: relative;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: all .28s var(--mm-ease);
}

.mm-mob-toggle::before,
.mm-mob-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
  transition: transform .3s var(--mm-ease);
}

.mm-mob-toggle::before {
  width: 11px;
  height: 1px;
  transform: translate(-50%, -50%);
}

.mm-mob-toggle::after {
  width: 1px;
  height: 11px;
  transform: translate(-50%, -50%);
}

.mm-mob-toggle[aria-expanded="true"] {
  background: var(--mm-accent);
  border-color: var(--mm-accent);
  color: #020c1f;
}

.mm-mob-toggle[aria-expanded="true"]::after {
  transform: translate(-50%, -50%) scaleY(0);
}

.mm-mob-sub {
  display: none;
  padding-left: 18px;
  margin: 2px 0 10px 3px;
  border-left: 2px solid rgba(241, 89, 42, .45);
}

.mm-mob-sub.is-open {
  display: block;
  animation: mmT4Rise .26s var(--mm-ease) both;
}

.mm-mob-sub .mm-mob-row>a {
  font-size: 16px;
  font-weight: 400;
  padding: 12px 0;
  color: #cfd8e8;
}

.mm-mob-sub .mm-mob-sub .mm-mob-row>a {
  font-size: 15px;
  color: #aebbd6;
}
