/* =========================================================
   BRANDS SLIDER (Glass) — SİYAH TEMA (sadece renkler)
   Yapısal değerler korunmuştur.
   ========================================================= */

:root {
  --brand-logo-tint: #F3F4F6;
}

.content .brand-wrap {
  margin-top: 26px
}

.brand-head {
  margin: 0 0 10px 6px
}

.brand-slider {
  position: relative;
  border-radius: 16px;

  /* koyu cam yüzey */
  background: linear-gradient(180deg, rgba(8, 10, 16, .78), rgba(8, 10, 16, .52));
  border: 1px solid #262A34;
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);

  /* koyu gölge */
  box-shadow: 0 16px 36px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06);

  padding: 12px 44px;
  overflow: hidden;
}

#brandSlider {
  overscroll-behavior: contain;
  transform: translateZ(0);
}

.brand-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;

  /* ince kontur gradyanı */
  background: linear-gradient(135deg, #2B2F36, #0F1117);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;

  pointer-events: none;
  opacity: .9;
}

.brand-slider::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 44px;

  /* üst parlak şerit (çok hafif) */
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), transparent);

  pointer-events: none;
  opacity: .5;
}

.brand-track {
  display: flex;
  align-items: center;
  gap: 24px;
  will-change: transform
}

.brand-item {
  flex: 0 0 auto;
  height: 140px;
  display: grid;
  place-items: center;
  padding: 0 20px;
  border-radius: 10px;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, opacity .18s ease;
  opacity: .95;
}

.brand-item img {
  max-height: 120px;
  max-width: 120px;
  object-fit: contain;

  /* koyu zeminde görünürlük */
  filter: grayscale(60%) brightness(1.18) contrast(1.08);
  transition: filter .2s ease, transform .2s ease;
}

.brand-item:hover {
  transform: translateY(-2px);
  opacity: 1
}

.brand-item:hover img {
  filter: none;
  transform: scale(1.05)
}

/* Nav arrows (koyu cam + marka vurgulu hover) */
.brand-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;

  border: 1px solid #262A34;
  background: rgba(11, 15, 26, .66);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .45);

  display: grid;
  place-items: center;
  font-size: 18px;
  color: #E9EDF6;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease, border-color .18s ease, color .18s ease;
  z-index: 2;
}

.brand-nav:hover {
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .55);
  border-color: #FFD200;
  color: #FFD200;
}

.brand-nav.prev {
  left: 6px
}

.brand-nav.next {
  right: 6px
}

/* ===================== Responsive ===================== */
@media (min-width:1440px) {
  .brand-slider {
    padding: 20px 80px
  }

  .brand-item {
    height: 70px;
    gap: 24px
  }

  .brand-item img {
    max-height: 100px;
    max-width: 80px
  }
}

@media (min-width:1025px) and (max-width:1366px) {
  .brand-slider {
    padding: 12px 36px
  }

  .brand-item {
    height: 72px
  }

  .brand-item img {
    max-height: 64px;
    max-width: 110px
  }
}

@media (min-width:768px) and (max-width:1024px) {
  .brand-slider {
    padding: 12px 36px
  }

  .brand-item {
    height: 72px
  }

  .brand-item img {
    max-height: 64px;
    max-width: 110px
  }
}

@media (max-width:560px) {
  .brand-slider {
    padding: 10px 36px
  }

  .brand-item {
    height: 60px;
    gap: 16px
  }

  .brand-item img {
    max-height: 80px;
    max-width: 50px
  }
}

/* Reduce motion */
@media (prefers-reduced-motion:reduce) {

  .brand-item,
  .brand-item img,
  .brand-nav {
    transition: none !important
  }
}

.brand-item img {
  opacity: 1;
  /* renkleri kapatıp kırık beyaza dönüştür */
  filter: grayscale(1) brightness(0) invert(1) sepia(.06) saturate(1.2) hue-rotate(180deg) contrast(.95) brightness(1.05);
}

/* Hover’da da renkleşmesin; sadece hafif parlasın */
.brand-item:hover img {
  filter: grayscale(1) brightness(0) invert(1) sepia(.06) saturate(1.2) hue-rotate(180deg) contrast(1.00) brightness(1.10);
}