/* ==========================================================================
   TEMA 5 - "Perde"
   Kompozisyon tersine cevrilir: onizleme paneli SOLA gecer ve dev bir sahne
   olur (cerceve yok, tam tasma), urun listesi saga yaslanir.
   Marka paleti: lacivert (#003087) sahne isigi, turuncu (#f1592a) vurgu.
   ========================================================================== */

.mm {
  --mm-dark: #060a14;
  --mm-dark-2: #0b1428;
  --mm-stage: #0d1b3a;
  --mm-ink: #eef2fa;
  --mm-body: #a4afc6;
  --mm-mute: #74809b;
  --mm-navy: #003087;
  --mm-accent: #f1592a;
  --mm-line: rgba(238, 242, 250, .13);
  --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: 460px;
  max-height: min(78vh, 720px);
  text-align: left;
  color: var(--mm-ink);
  background: linear-gradient(150deg, var(--mm-dark-2), var(--mm-dark) 70%);
  border-top: 1px solid rgba(241, 89, 42, .45);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9);
  overflow: hidden;
}

/* --------------------------------------------------------------- ray */
.mm-rail {
  position: relative;
  z-index: 3;
  flex: 0 0 264px;
  max-width: 264px;
  padding: 40px 0 30px;
  overflow-y: auto;
  border-right: 1px solid var(--mm-line);
  background: rgba(0, 0, 0, .22);
}

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

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

.mm-rail-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 12px;
  width: 100%;
  padding: 16px 26px 16px 34px;
  border: 0;
  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);
}

/* numara ustte kucuk, secilince turuncu */
.mm-rail-no {
  grid-column: 1 / -1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  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::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--mm-accent);
  transform: scaleY(0);
  transition: transform .4s var(--mm-mech);
}

.mm-rail-item:hover {
  color: var(--mm-ink);
  background: rgba(238, 242, 250, .035);
}

.mm-rail-item.is-active {
  color: #fff;
  background: rgba(241, 89, 42, .12);
}

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

/* ------------------------------------------------------------- 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;
}

/* sahne solda, liste sagda */
.mm-pane {
  grid-area: 1 / 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(320px, 46%) minmax(0, 1fr);
  visibility: hidden;
  opacity: 0;
  transition: opacity .3s var(--mm-ease);
}

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

.mm-scope {
  order: -1;
  /* indeksin soluna gecer */
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 32% 28%, rgba(0, 48, 135, .42), transparent 62%),
    linear-gradient(180deg, var(--mm-stage), #050810);
  border-right: 1px solid var(--mm-line);
}

/* sahne zemininde genis isik havuzu */
.mm-scope::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: 62%;
  height: 26%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(241, 89, 42, .34), transparent 74%);
  filter: blur(18px);
  animation: mmT5Pool 9s ease-in-out infinite alternate;
}

@keyframes mmT5Pool {
  from {
    opacity: .6;
    transform: translateX(-50%) scale(1);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) scale(1.14);
  }
}

.mm-scope-label {
  position: absolute;
  top: 30px;
  left: 34px;
  z-index: 4;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--mm-mute);
}

/* cerceve yok: gorsel sahnenin ortasinda serbest durur */
.mm-scope-frame {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 54px 40px 150px;
  border: 0;
  background: none;
  height: auto;
}

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

.mm-scope-img {
  max-width: 82%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 34px 44px rgba(0, 0, 0, .75));
  transition: opacity .4s var(--mm-ease), transform .7s var(--mm-ease);
}

.mm-scope-frame.is-swapping .mm-scope-img {
  opacity: 0;
  transform: translateY(14px) scale(.95);
}

/* kunye sahnenin altina bindirilir */
.mm-scope-meta {
  position: relative;
  z-index: 4;
  margin: 0;
  padding: 26px 34px 32px;
  min-height: 0;
  background: linear-gradient(180deg, transparent, rgba(6, 10, 20, .92) 42%);
}

.mm-scope-name {
  display: block;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.18;
  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: 14px;
  padding: 10px 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mm-ink);
  border: 1px solid var(--mm-line);
  transition: background .3s var(--mm-ease), border-color .3s var(--mm-ease), color .3s var(--mm-ease);
}

.mm-scope.is-live .mm-scope-cta,
.mm-scope-cta:hover {
  background: var(--mm-accent);
  border-color: var(--mm-accent);
  color: #060a14;
  text-decoration: none;
}

/* ------------------------------------------------------------- liste */
.mm-index {
  min-width: 0;
  min-height: 0;
  max-height: 100%;
  padding: 38px 46px 38px 44px;
  overflow-y: auto;
}

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

.mm-eyebrow {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  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-bottom: 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--mm-body);
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: color .3s var(--mm-ease), border-color .3s var(--mm-ease);
}

.mm-all-link:hover {
  color: var(--mm-accent);
  border-bottom-color: rgba(241, 89, 42, .55);
  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: 2 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: var(--mm-accent);
  border-bottom: 1px solid var(--mm-line);
  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: 7px 8px 7px 0;
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--mm-body);
  transition: color .26s var(--mm-ease), padding-left .3s var(--mm-ease);
}

/* soldan kayarak giren altin cizgi */
.mm-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 0;
  height: 1px;
  background: var(--mm-accent);
  transition: width .3s var(--mm-ease);
}

.mm-link:hover,
.mm-link.is-peek {
  color: #fff;
  padding-left: 20px;
  text-decoration: none;
}

.mm-link:hover::before,
.mm-link.is-peek::before {
  width: 13px;
}

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

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

.mm-pane.is-active .mm-scope-meta {
  animation: mmT5Rise .5s .08s var(--mm-ease) both;
}

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

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

.mm-pane.is-active .mm-links li {
  animation: mmT5Slide .42s var(--mm-ease) both;
  animation-delay: calc(var(--i, 0) * 80ms + var(--j, 0) * 32ms + 140ms);
}

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

@keyframes mmT5Rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

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

@keyframes mmT5Slide {
  from {
    opacity: 0;
    transform: translateX(14px);
  }

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

@keyframes mmT5Zoom {
  from {
    opacity: 0;
    transform: scale(1.06);
  }

  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(238, 242, 250, .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: 226px;
    max-width: 226px;
  }

  .mm-pane {
    grid-template-columns: minmax(280px, 42%) minmax(0, 1fr);
  }

  .mm-index {
    padding: 30px 32px;
  }
}

@media (max-width: 1250px) {
  .mm-pane {
    grid-template-columns: minmax(0, 1fr);
  }

  .mm-scope {
    display: none;
  }

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

@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(238, 242, 250, .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(238, 242, 250, .05);
  border: 1px solid rgba(238, 242, 250, .14);
}

.mm-mob-toggle {
  flex: 0 0 auto;
  position: relative;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(238, 242, 250, .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: #060a14;
}

.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: 1px solid rgba(241, 89, 42, .45);
}

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

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

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