/* Ana sayfa — etkinlik kartları (partner kampanya) */
.home-events {
  width: 100%;
  min-width: 0;
}

.home-events__title {
  margin: 0 0 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.85);
}

.home-events__viewport {
  width: 100%;
  min-width: 0;
}

.home-events__carousel {
  position: relative;
}

.home-events__arrow {
  display: none;
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 18, 28, 0.92);
  color: #e2e8f0;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.55);
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease,
    opacity 0.15s ease;
}

.home-events__arrow svg {
  width: 1rem;
  height: 1rem;
}

.home-events__arrow--prev {
  left: -0.35rem;
}

.home-events__arrow--next {
  right: -0.35rem;
}

.home-events__arrow:hover:not(:disabled) {
  border-color: rgba(22, 119, 255, 0.45);
  background: rgba(22, 119, 255, 0.16);
  color: #fff;
}

.home-events__arrow:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.home-events__carousel--nav .home-events__arrow {
  display: inline-flex;
}

/* Mobil (site lg altı): 2 sütun grid */
.home-events__track {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.home-events__track > .home-event-card {
  min-width: 0;
}

.home-events__dots {
  display: none;
}

/* Mobil (site lg altı): kompakt kart — biletler ile uyumlu */
@media (max-width: 1023px) {
  .home-events__title {
    margin-bottom: 0.5rem;
  }

  .home-events__viewport {
    overflow: visible;
  }

  .home-events__track {
    gap: 0.5rem;
  }

  .home-event-card {
    min-height: 0;
    padding: 0.5625rem 0.5rem 0.5rem;
  }

  .home-event-card__status {
    top: 0.35rem;
    right: 0.35rem;
    padding: 0.15rem 0.35rem;
    font-size: 0.5rem;
    border-radius: 0.3rem;
  }

  .home-event-card__logo {
    min-height: 1.625rem;
    margin-bottom: 0.35rem;
  }

  .home-event-card__logo-img {
    max-height: 1.5rem;
  }

  .home-event-card__logo-fallback {
    font-size: 0.6875rem;
  }

  .home-event-card__title {
    margin-bottom: 0.35rem;
    font-size: 0.6875rem;
    line-height: 1.25;
    min-height: 2.2em;
  }

  .home-event-card__prize {
    margin-bottom: 0.4rem;
    font-size: clamp(0.9375rem, 4.2vw, 1.125rem);
  }

  .home-event-card__countdown {
    gap: 0.2rem;
    margin-bottom: 0.4rem;
  }

  .home-event-card__cd-unit {
    gap: 0.15rem;
  }

  .home-event-card__cd-box {
    min-height: 1.375rem;
    font-size: 0.6875rem;
    border-radius: 0.3rem;
  }

  .home-event-card__cd-label {
    font-size: 0.5rem;
    letter-spacing: 0.06em;
  }

  .home-event-card__ended,
  .home-event-card__no-end {
    margin-bottom: 0.4rem;
    padding: 0.35rem 0.3rem;
    font-size: 0.625rem;
  }

  .home-event-card__cta {
    padding: 0.4rem 0.5rem;
    font-size: 0.625rem;
    border-radius: 0.4375rem;
  }

  .home-event-card__cta span {
    font-size: 0.875rem;
  }
}

/* Masaüstü (site lg+): yatay carousel */
@media (min-width: 1024px) {
  .home-events__carousel--nav {
    padding-inline: 1.75rem;
  }

  .home-events__arrow--prev {
    left: 0;
  }

  .home-events__arrow--next {
    right: 0;
  }

  .home-events__viewport {
    overflow: hidden;
  }

  .home-events__track {
    display: flex;
    gap: 1rem;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
  }

  .home-event-card {
    flex: 0 0 calc((100% - 1rem) / 2);
    min-width: 0;
    min-height: 100%;
    padding: 0.875rem 0.875rem 0.75rem;
  }

  .home-event-card__title {
    font-size: 0.75rem;
    min-height: 2.6em;
    line-height: 1.3;
  }

  .home-event-card__prize {
    font-size: clamp(1.25rem, 3.5vw, 1.625rem);
    margin-bottom: 0.625rem;
  }

  .home-event-card__logo {
    min-height: 2.25rem;
    margin-bottom: 0.5rem;
  }

  .home-event-card__logo-img {
    max-height: 2rem;
  }

  .home-event-card__countdown {
    gap: 0.25rem;
    margin-bottom: 0.625rem;
  }

  .home-event-card__cd-box {
    min-height: 1.75rem;
    font-size: 0.8125rem;
    border-radius: 0.375rem;
  }

  .home-event-card__cta {
    padding: 0.5rem 0.625rem;
    font-size: 0.6875rem;
  }

  .home-event-card__cta span {
    font-size: 1rem;
  }
}

@media (min-width: 1280px) {
  .home-event-card {
    flex: 0 0 calc((100% - 3rem) / 4);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-events__track {
    transition: none;
  }
}

.home-event-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 100%;
  padding: 0.875rem 0.875rem 0.75rem;
  text-align: center;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--site-surface-gradient);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 32px -16px rgba(0, 0, 0, 0.55);
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.home-event-card--inactive {
  opacity: 0.52;
  filter: saturate(0.35) grayscale(0.25);
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.home-event-card--inactive:hover {
  opacity: 0.68;
  filter: saturate(0.5) grayscale(0.15);
}

.home-event-card__status {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  padding: 0.2rem 0.45rem;
  border-radius: 0.35rem;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.75);
  color: #cbd5e1;
}

.home-event-card__status--closed {
  border-color: rgba(148, 163, 184, 0.35);
  color: #94a3b8;
}

.home-event-card__status--drawn {
  border-color: rgba(22, 119, 255, 0.35);
  color: #93c5fd;
}

.home-event-card__ended {
  margin: 0 0 0.625rem;
  padding: 0.45rem 0.35rem;
  border-radius: 0.4rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
  background: rgba(15, 23, 42, 0.35);
  border: 1px dashed rgba(148, 163, 184, 0.25);
}

.home-event-card__cta--inactive {
  opacity: 0.85;
  filter: none;
}

.home-event-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  margin-bottom: 0.5rem;
}

.home-event-card__logo-img {
  max-height: 2rem;
  max-width: 85%;
  width: auto;
  object-fit: contain;
}

.home-event-card__logo-fallback {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.9);
}

.home-event-card__title {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
  color: #f1f5f9;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.home-event-card__prize {
  margin: 0 0 0.625rem;
  font-size: clamp(1.25rem, 3.5vw, 1.625rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.home-event-card__countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.25rem;
  margin-bottom: 0.625rem;
}

.home-event-card__cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.home-event-card__cd-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 1.75rem;
  border-radius: 0.375rem;
  border: 1px solid rgba(22, 119, 255, 0.28);
  background: linear-gradient(
    180deg,
    rgba(22, 119, 255, 0.2) 0%,
    rgba(22, 119, 255, 0.35) 100%
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #e8f2fc;
}

.home-event-card__cd-label {
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(96, 165, 250, 0.85);
}

.home-event-card__no-end {
  margin: 0 0 0.625rem;
  font-size: 0.6875rem;
  color: rgba(148, 163, 184, 0.8);
}

.home-event-card__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  padding: 0.5rem 0.625rem;
  border-radius: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.home-event-card__cta span {
  font-size: 1rem;
  line-height: 1;
  opacity: 0.85;
}

[data-theme="light"] .home-event-card {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-color: rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .home-event-card--inactive {
  opacity: 0.58;
  filter: saturate(0.4) grayscale(0.2);
}

[data-theme="light"] .home-event-card__status {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.12);
  color: #64748b;
}

[data-theme="light"] .home-event-card__ended {
  color: #64748b;
  background: rgba(241, 245, 249, 0.9);
  border-color: rgba(148, 163, 184, 0.35);
}

[data-theme="light"] .home-event-card__title {
  color: #0f172a;
}

[data-theme="light"] .home-event-card__cd-box {
  background: linear-gradient(
    180deg,
    rgba(22, 119, 255, 0.14) 0%,
    rgba(22, 119, 255, 0.08) 100%
  );
  border-color: rgba(22, 119, 255, 0.28);
  color: #003eb3;
}

[data-theme="light"] .home-event-card__cd-label {
  color: #1677ff;
}

[data-theme="light"] .home-events__dot {
  background: rgba(100, 116, 139, 0.35);
}

[data-theme="light"] .home-events__dot.is-active {
  background: #1677ff;
}

[data-theme="light"] .home-events__arrow {
  background: rgba(248, 250, 252, 0.96);
  border-color: rgba(15, 23, 42, 0.12);
  color: #334155;
}

[data-theme="light"] .home-events__arrow:hover:not(:disabled) {
  border-color: rgba(22, 119, 255, 0.4);
  background: rgba(22, 119, 255, 0.12);
  color: #1e293b;
}
