/* ================================================
   Brand Logos Carousel — Frontend v1.2.0
   Carousel (tek satır), responsive yükseklik
================================================ */

/* ---- SECTION ---- */
.blc-section {
  padding: 2px 0;
  position: relative;
  overflow: hidden;
}

/* ---- HEADER: Title + Toggle Button ---- */
.blc-section-head {
  text-align: center;
  margin-bottom: 36px;
  padding: 0 20px;
}
.blc-section-title {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: #111827;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.blc-section-subtitle {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0;
}

/* Toggle visibility button */
.blc-head-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  background: none;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.78rem;
  color: #6b7280;
  cursor: pointer;
  transition: all .2s ease;
  line-height: 1;
}
.blc-head-toggle:hover {
  border-color: #9ca3af;
  color: #374151;
  background: #f9fafb;
}
.blc-head-toggle svg {
  transition: transform .25s ease;
  flex-shrink: 0;
}
.blc-head-toggle.is-collapsed svg {
  transform: rotate(180deg);
}

/* Collapsible head content */
.blc-head-content {
  overflow: hidden;
  transition: max-height .35s ease, opacity .3s ease;
  max-height: 200px;
  opacity: 1;
}
.blc-head-content.is-hidden {
  max-height: 0;
  opacity: 0;
}

/* ---- CAROUSEL WRAP ---- */
.blc-carousel-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
}

/* Fade overlay edges */
.blc-fade {
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.blc-fade-left  { left: 0;  background: linear-gradient(to right, #ffffff 0%, transparent 100%); }
.blc-fade-right { right: 0; background: linear-gradient(to left,  #ffffff 0%, transparent 100%); }

/* Track outer — drag container */
.blc-track-outer {
  overflow: hidden;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.blc-track-outer.is-dragging { cursor: grabbing; }

/* Scrolling track — tek satır, flex */
.blc-track {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  width: max-content;
  animation: blc-scroll var(--blc-speed, 40s) linear infinite;
  will-change: transform;
}
.blc-track.paused { animation-play-state: paused; }

/* 3 kopya: animasyon 1/3'ünü kaydırır → seamless loop */
@keyframes blc-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(-100% / 3)); }
}

/* ---- LOGO SLIDES ---- */
.blc-logo-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  flex-shrink: 0;
}

.blc-logo-link {
  display: block;
  text-decoration: none;
}

.blc-logo-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  min-width: 80px;
}

.blc-logo-inner img {
  height: 30px !important;
  width: auto;
  max-width: 140px !important;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
  transition: filter .35s ease, transform .35s ease, opacity .35s ease;
}

/* Premium glow */
.blc-logo-glow {
  position: absolute;
  inset: -8px;
  border-radius: 12px;
  opacity: 0;
  transition: opacity .35s ease;
  z-index: 0;
}

/* ---- GRAYSCALE MODE ---- */
.blc-mode-gray .blc-logo-inner img {
  filter: grayscale(100%) opacity(0.55);
}
.blc-mode-gray .blc-logo-link:hover .blc-logo-inner img,
.blc-mode-gray .blc-logo-slide:not(:has(a)):hover .blc-logo-inner img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.08);
}

/* ---- COLOR MODE ---- */
.blc-mode-color .blc-logo-inner img {
  filter: none;
  opacity: 0.85;
}
.blc-mode-color .blc-logo-link:hover .blc-logo-inner img,
.blc-mode-color .blc-logo-slide:not(:has(a)):hover .blc-logo-inner img {
  opacity: 1;
  transform: scale(1.08);
}

/* Glow on hover */
.blc-logo-link:hover .blc-logo-glow,
.blc-logo-slide:not(:has(a)):hover .blc-logo-glow {
  opacity: 1;
}

/* ---- TABLET ---- */
@media (max-width: 768px) {
  .blc-fade { width: 60px; }
  .blc-logo-slide { padding: 0 18px; }
  .blc-logo-inner { height: 68px; }
  .blc-logo-inner img { height: 56px; max-width: 120px; }
  .blc-section { padding: 40px 0; }
}

/* ---- MOBILE ---- */
@media (max-width: 480px) {
  .blc-fade { width: 40px; }
  .blc-logo-slide { padding: 0 14px; }
  .blc-logo-inner { height: 56px; }
  .blc-logo-inner img { height: 44px; max-width: 90px; }
  .blc-section { padding: 32px 0; }
}
