/**
 * Ana sayfa — sponsor logo marquee (site paleti)
 */

/* Mobilde hızlı erişim kazananların üstünde; masaüstünde kazananlar önce */
.home-page-layout {
  display: flex;
  flex-direction: column;
}

.home-page-order-winners {
  order: 1;
}

.home-page-order-quick {
  order: 2;
}

@media (max-width: 1023px) {
  .home-page-order-quick {
    order: 1;
  }

  .home-page-order-tickets {
    order: 2;
  }

  .home-page-order-winners {
    order: 3;
  }

  .home-page-order-events {
    order: 4;
  }

  .home-page-order-marquee {
    order: 5;
  }

  .home-page-order-youtube {
    order: 6;
  }

  .home-page-order-sponsors {
    order: 7;
  }

  .home-page-order-social {
    order: 8;
  }
}

.home-page-order-marquee {
  order: 3;
}

.home-page-order-events {
  order: 4;
}

.home-page-order-tickets {
  order: 5;
}

.home-page-order-youtube {
  order: 6;
}

.home-page-order-sponsors {
  order: 7;
}

.home-page-order-social {
  order: 8;
}

@media (min-width: 1024px) {
  .home-page-order-events {
    order: 3;
  }

  .home-page-order-tickets {
    order: 4;
  }

  .home-page-order-marquee {
    order: 5;
  }
}

.home-logo-marquee {
  position: relative;
  margin-bottom: 1rem;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--site-border-soft);
  background: var(--site-surface-gradient);
  padding: 0.55rem 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 44px -18px rgba(0, 0, 0, 0.45);
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

@media (min-width: 1024px) {
  .home-logo-marquee {
    margin-bottom: 2rem;
  }
}

.home-logo-marquee::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 11;
  width: 100%;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(22, 119, 255, 0.28) 20%,
    rgba(96, 165, 250, 0.38) 50%,
    rgba(22, 119, 255, 0.28) 80%,
    transparent
  );
}

.home-logo-marquee__fade {
  pointer-events: none;
  position: absolute;
  inset-block: 0;
  z-index: 10;
  width: 3rem;
}

@media (min-width: 640px) {
  .home-logo-marquee__fade {
    width: 5rem;
  }
}

.home-logo-marquee__fade--left {
  left: 0;
  background: linear-gradient(
    to right,
    var(--site-surface-bottom, rgb(18, 24, 36)) 0%,
    rgba(18, 24, 36, 0.85) 35%,
    transparent 100%
  );
}

.home-logo-marquee__fade--right {
  right: 0;
  background: linear-gradient(
    to left,
    var(--site-surface-bottom, rgb(18, 24, 36)) 0%,
    rgba(18, 24, 36, 0.85) 35%,
    transparent 100%
  );
}

.home-logo-marquee__inner {
  display: flex;
  width: max-content;
  animation: homeMarqueeScroll 55s linear infinite;
}

.home-logo-marquee__inner:hover {
  animation-play-state: paused;
}

@keyframes homeMarqueeScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.home-marquee-item {
  display: flex;
  height: 3.5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  padding-inline: 1.25rem;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

@media (min-width: 640px) {
  .home-marquee-item {
    padding-inline: 2rem;
  }
}

.home-marquee-logo-img {
  display: block;
  max-height: 2.5rem;
  width: auto;
  max-width: 8.125rem;
  object-fit: contain;
  opacity: 0.88;
  transition: opacity 0.2s ease, filter 0.2s ease, transform 0.2s ease;
}

.home-marquee-item:hover .home-marquee-logo-img {
  opacity: 1;
  filter: drop-shadow(0 0 14px rgba(22, 119, 255, 0.22));
  transform: scale(1.03);
}

.home-marquee-item--label {
  border-radius: 0.75rem;
  border: 1px solid rgba(22, 119, 255, 0.22);
  background: rgba(22, 119, 255, 0.08);
  padding-inline: 1rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--site-accent-bright, #69b1ff);
}

@media (min-width: 640px) {
  .home-marquee-item--label {
    padding-inline: 1.5rem;
    font-size: 0.75rem;
  }
}

.home-marquee-item--label:hover {
  border-color: rgba(22, 119, 255, 0.38);
  background: rgba(22, 119, 255, 0.14);
  color: #e8f2fc;
}

/* Açık tema */
[data-theme="light"] .home-logo-marquee {
  background: var(--site-surface-gradient);
  border-color: var(--site-border-soft);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 32px -16px rgba(22, 119, 255, 0.14);
}

[data-theme="light"] .home-logo-marquee::before {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(22, 119, 255, 0.18) 25%,
    rgba(22, 119, 255, 0.28) 50%,
    rgba(22, 119, 255, 0.18) 75%,
    transparent
  );
}

[data-theme="light"] .home-logo-marquee__fade--left {
  background: linear-gradient(
    to right,
    var(--site-surface, #fff) 0%,
    rgba(255, 255, 255, 0.9) 40%,
    transparent 100%
  );
}

[data-theme="light"] .home-logo-marquee__fade--right {
  background: linear-gradient(
    to left,
    var(--site-surface, #fff) 0%,
    rgba(255, 255, 255, 0.9) 40%,
    transparent 100%
  );
}

[data-theme="light"] .home-logo-marquee .home-marquee-logo-img,
[data-theme="light"] .home-logo-marquee .home-marquee-item img {
  filter: brightness(0) saturate(100%);
  opacity: 0.72;
}

[data-theme="light"] .home-marquee-item:hover .home-marquee-logo-img,
[data-theme="light"] .home-logo-marquee .home-marquee-item:hover img {
  opacity: 0.9;
  filter: brightness(0) saturate(100%) drop-shadow(0 2px 8px rgba(22, 119, 255, 0.2));
}

[data-theme="light"] .home-marquee-item--label {
  color: #0958d8;
  background: rgba(22, 119, 255, 0.1);
  border-color: rgba(22, 119, 255, 0.2);
}

[data-theme="light"] .home-marquee-item--label:hover {
  color: #003eb3;
  background: rgba(22, 119, 255, 0.16);
  border-color: rgba(22, 119, 255, 0.32);
}

@media (prefers-reduced-motion: reduce) {
  .home-logo-marquee__inner {
    animation: none !important;
    transform: none !important;
  }
}
