/* Ana sayfa — hızlı aksiyon kartları */
.home-quick-actions {
  width: 100%;
  min-width: 0;
}

.home-quick-actions__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.375rem;
  width: 100%;
}

@media (min-width: 400px) {
  .home-quick-actions__grid {
    gap: 0.5rem;
  }
}

/* Mobil — eski düzen: ikon üstte, başlık, tam genişlik buton */
.home-quick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  min-width: 0;
  width: 100%;
  padding: 0.625rem 0.375rem;
  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 8px 24px -14px rgba(0, 0, 0, 0.45);
}

.home-quick-card__icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  overflow: hidden;
  border-radius: 0.5rem;
  background: rgba(22, 119, 255, 0.1);
}

.home-quick-card__icon .lottie-icon-host,
.home-quick-card__icon img {
  display: block;
  width: 3rem;
  height: 3rem;
  max-width: 3rem;
  max-height: 3rem;
}

.home-quick-card__text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  width: 100%;
  min-width: 0;
}

.home-quick-card__title {
  margin: 0;
  width: 100%;
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1.25;
  color: #e8f2fc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-quick-card__subtitle {
  display: none;
}

.home-quick-card__cta {
  display: inline-flex;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  padding: 0.375rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

@media (min-width: 400px) {
  .home-quick-card__title {
    font-size: 0.6875rem;
  }

  .home-quick-card__cta {
    font-size: 0.75rem;
    padding: 0.4375rem 0.625rem;
  }
}

/* Masaüstü — yatay kart: ikon | başlık+alt başlık | buton */
@media (min-width: 1024px) {
  .home-quick-actions__grid {
    gap: 0.625rem;
  }

  .home-quick-card {
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 0.625rem 0.75rem;
    gap: 0.625rem;
  }

  .home-quick-card__icon {
    width: 2.75rem;
    height: 2.75rem;
  }

  .home-quick-card__icon .lottie-icon-host,
  .home-quick-card__icon img {
    width: 2.75rem;
    height: 2.75rem;
    max-width: 2.75rem;
    max-height: 2.75rem;
  }

  .home-quick-card__text {
    flex: 1;
    width: auto;
  }

  .home-quick-card__title {
    width: auto;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #f1f5f9;
  }

  .home-quick-card__subtitle {
    display: block;
    margin: 0;
    font-size: 0.625rem;
    font-weight: 500;
    line-height: 1.2;
    color: rgba(148, 163, 184, 0.85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .home-quick-card__cta {
    width: auto;
    max-width: none;
    flex-shrink: 0;
    padding: 0.4375rem 0.75rem;
    font-size: 0.6875rem;
  }
}

[data-theme="light"] .home-quick-card {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-color: rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .home-quick-card__icon {
  background: rgba(22, 119, 255, 0.08);
}

[data-theme="light"] .home-quick-card__title {
  color: #0f172a;
}

[data-theme="light"] .home-quick-card__subtitle {
  color: #64748b;
}

/* Mobil — hızlı aksiyonlar (kod / çark / günlük) kazananların hemen altında */
@media (max-width: 1023px) {
  .k-page--home {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .k-page--home > * {
    margin-top: 0 !important;
  }

  .k-page--home > #home-recent-winners-root {
    order: 1;
  }

  .k-page--home > #home-quick-actions-root {
    order: 2;
  }

  .k-page--home > #home-events-root {
    order: 3;
  }

  .k-page--home > #home-tickets-root {
    order: 4;
  }

  .k-page--home > #home-youtube-feed-root {
    order: 5;
  }

  .k-page--home > section {
    order: 6;
  }

  .k-page--home > #home-social-mobile-root {
    order: 7;
  }
}
