/* Ana sayfa — bilet kartları (mobil: etkinlik kartı; masaüstü: yatay satır) */
.home-tickets {
  width: 100%;
  min-width: 0;
}

.home-tickets__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-tickets__list {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0.75rem;
}

/* Mobil — etkinlik kartı ile aynı düzen */
.home-ticket-card {
  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);
}

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

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

.home-ticket-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-ticket-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-ticket-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-ticket-card__countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.25rem;
  margin-bottom: 0.625rem;
}

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

.home-ticket-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-ticket-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-ticket-card__no-end {
  margin: 0 0 0.625rem;
  font-size: 0.6875rem;
  color: rgba(148, 163, 184, 0.8);
}

.home-ticket-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-ticket-card__cta span {
  font-size: 1rem;
  line-height: 1;
  opacity: 0.85;
}

/* Mobil — daha kompakt kart (dikey düzen) */
@media (max-width: 639px) {
  .home-tickets__title {
    margin-bottom: 0.5rem;
  }

  .home-tickets__list {
    gap: 0.5rem;
  }

  .home-ticket-card {
    padding: 0.5625rem 0.5rem 0.5rem;
  }

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

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

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

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

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

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

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

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

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

  .home-ticket-card__no-end {
    margin-bottom: 0.4rem;
    font-size: 0.625rem;
  }

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

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

/* Tablet / geniş mobil — yatay satır biraz sıkı */
@media (min-width: 640px) and (max-width: 1023px) {
  .home-tickets__list {
    gap: 0.5rem;
  }

  .home-ticket-card {
    padding: 0.625rem 0.75rem;
    gap: 0.5rem 0.75rem;
  }

  .home-ticket-card__logo {
    width: 1.75rem;
    height: 1.75rem;
  }

  .home-ticket-card__prize {
    font-size: 1rem;
  }

  .home-ticket-card__cd-box {
    min-height: 1.5rem;
    min-width: 1.5rem;
    font-size: 0.75rem;
  }

  .home-ticket-card__cta {
    padding: 0.4375rem 0.625rem;
    font-size: 0.625rem;
  }
}

/* Masaüstü — yatay satır */
@media (min-width: 640px) {
  .home-tickets__list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
  }

  .home-ticket-card {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    padding: 0.75rem 1rem;
    text-align: left;
  }

  .home-ticket-card__logo {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    min-height: 0;
    margin-bottom: 0;
  }

  .home-ticket-card__logo-img {
    max-width: 100%;
    max-height: 100%;
  }

  .home-ticket-card__title {
    flex: 1 1 8rem;
    min-height: 0;
    margin: 0;
    -webkit-line-clamp: 1;
    min-height: auto;
    font-size: 0.875rem;
  }

  .home-ticket-card__prize {
    flex: 0 0 auto;
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    white-space: nowrap;
  }

  .home-ticket-card__countdown {
    display: flex;
    align-items: flex-start;
    gap: 0.25rem;
    margin-bottom: 0;
    grid-template-columns: none;
  }

  .home-ticket-card__no-end {
    margin: 0;
    white-space: nowrap;
  }

  .home-ticket-card__cd-box {
    min-width: 1.75rem;
    min-height: 1.625rem;
    width: auto;
    padding: 0 0.25rem;
  }

  .home-ticket-card__cd-label {
    font-size: 0.5rem;
  }

  .home-ticket-card__cta {
    margin-top: 0;
    margin-left: auto;
    width: auto;
    flex-shrink: 0;
    padding: 0.5rem 0.75rem;
  }
}

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

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

[data-theme="light"] .home-ticket-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-ticket-card__cd-label {
  color: #1677ff;
}
