/* NMF mirror — görsel efektler ve süslemeler */

.skeleton-loader {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

/* Butonlar */
.grid-button {
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.grid-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(104, 109, 243, 0.35);
  filter: brightness(1.05);
}

.grid-button:active {
  transform: translateY(0);
}

/* Görseller */
.layout-element__component--GridImage img,
.layout-element__component--GridImageBox img,
.layout-element__component--GridStoreProduct img,
.product-carousel__image,
.ecommerce-product-image img,
.image__image {
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.45s ease;
}

.layout-element__component--GridImage:hover img,
.layout-element__component--GridImageBox:hover img,
.layout-element__component--GridStoreProduct:hover img,
.product-carousel:hover .product-carousel__image,
.ecommerce-product-image:hover img {
  transform: scale(1.03);
  box-shadow: 0 12px 32px rgba(36, 38, 102, 0.18);
}

/* Sosyal ikonlar */
.social-icons__link {
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.social-icons__link:hover {
  transform: translateY(-3px) scale(1.08);
  opacity: 0.88;
}

/* Metin linkleri */
.text-box a:not([href="#"]) {
  transition: color 0.2s ease, opacity 0.2s ease;
}

.text-box a:not([href="#"]):hover {
  opacity: 0.82;
}

.block--footer .text-box a:hover {
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

/* Arka plan gradyan animasyonu */
.block-background--animated-gradient {
  animation: nmf-gradient-shift 25s ease infinite !important;
  background-size: 400% 400% !important;
}

@keyframes nmf-gradient-shift {
  0% {
    background-position: var(--232c59c7, 50%) var(--24e13266, 0%);
  }
  50% {
    background-position: var(--2e633380, 50%) var(--2e633380, 50%);
  }
  100% {
    background-position: var(--232c59c7, 50%) var(--24e13266, 0%);
  }
}

/* Blok parıltı süslemesi */
.block:not(.block--footer) .block-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(255, 255, 255, 0.05) 50%,
    transparent 62%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.block:not(.block--footer):hover .block-background::after {
  opacity: 1;
}

/* Form alanları */
.input__component {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input__component:focus {
  box-shadow: 0 0 0 3px rgba(104, 109, 243, 0.22);
  outline: none;
}

/* Giriş animasyonu yedek — JS yüklenmezse içerik görünür kalsın */
.transition.transition--slide:not([data-animation-state="active"]),
.transition.transition--fade:not([data-animation-state="active"]),
.transition.transition--scale:not([data-animation-state="active"]) {
  opacity: 1;
  transform: none;
}

.transition.transition--root-hidden [data-animation-role]:not([data-animation-state="active"]) {
  opacity: 1;
}

/* JS aktifken giriş animasyonları */
html.nmf-fx-on .transition.transition--slide:not([data-animation-state="active"]) {
  opacity: 0;
  transform: translateY(20%);
  transition: transform 0.65s ease, opacity 0.65s ease;
}

html.nmf-fx-on .transition.transition--fade:not([data-animation-state="active"]) {
  opacity: 0;
  transition: opacity 0.65s ease;
}

html.nmf-fx-on .transition.transition--scale:not([data-animation-state="active"]) {
  opacity: 0;
  transform: scale(0.92);
  transition: transform 0.65s ease, opacity 0.65s ease;
}

html.nmf-fx-on .transition.transition--root-hidden [data-animation-role]:not([data-animation-state="active"]) {
  opacity: 0;
  transition: opacity 0.55s ease;
}

html.nmf-fx-on .transition[data-animation-state="active"],
html.nmf-fx-on .transition.transition--root-hidden [data-animation-role][data-animation-state="active"] {
  opacity: 1 !important;
  transform: none !important;
}

html.nmf-fx-on img[data-animation-role].loaded {
  opacity: 1 !important;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .grid-button,
  .social-icons__link,
  .layout-element img,
  .block-background--animated-gradient,
  .transition {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
