/* MeloAz v2 — Ana sayfa modülü (melo-home.css) */
.melo-home-block + .melo-home-block { margin-top: 30px; }
.melo-home-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.melo-home-cols .melo-sec { margin-top: 0; }
.melo-home-list { counter-reset: none; }
.melo-like.is-on { color: #f43f5e; }

/* ── Tanıtım kaydırıcısı ───────────────────────────────────────────── */
.melo-promo { position: relative; }
.melo-promo-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 14px) / 2); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  scrollbar-width: none; -ms-overflow-style: none; padding: 2px;
}
.melo-promo-track::-webkit-scrollbar { display: none; }
.melo-promo-item {
  --c: var(--melo-primary); --c-50: var(--melo-primary-50); --c-100: var(--melo-primary-100);
  scroll-snap-align: start; display: flex; align-items: center; gap: 13px; min-width: 0; min-height: 70px;
  padding: 12px 14px; border-radius: 14px; background: linear-gradient(100deg, var(--c-50), #fff 70%);
  border: 1px solid var(--c-100); color: var(--melo-ink); transition: transform .2s var(--melo-ease), box-shadow .2s;
}
.melo-promo-item:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(15, 23, 42, .07); }
.melo-promo-item.is-orange { --c: #f97316; --c-50: #fff4ec; --c-100: #fed7aa; }
.melo-promo-item.is-green  { --c: #10b981; --c-50: #ecfdf5; --c-100: #a7f3d0; }
.melo-promo-item.is-blue   { --c: #2563eb; --c-50: #eef3ff; --c-100: #c7d7fe; }
.melo-promo-item.is-purple { --c: #8b5cf6; --c-50: #f5f3ff; --c-100: #ddd6fe; }
.melo-promo-item.is-red    { --c: #ef4444; --c-50: #fef2f2; --c-100: #fecaca; }
.melo-promo-item.is-teal   { --c: #0d9488; --c-50: #f0fdfa; --c-100: #99f6e4; }
.melo-promo-item.is-dark   { --c: #0f172a; --c-50: #f1f5f9; --c-100: #cbd5e1; }
.melo-promo-ic { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: var(--c); box-shadow: 0 6px 14px color-mix(in srgb, var(--c) 35%, transparent); }
.melo-promo-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.melo-promo-h { display: flex; align-items: center; gap: 8px; min-width: 0; }
.melo-promo-h b { font-size: 15.5px; font-weight: 900; letter-spacing: -.01em; white-space: nowrap; }
.melo-promo-h em { font-style: normal; color: var(--c); }
.melo-promo-h i {
  font-style: normal; font-size: 11px; font-weight: 800; color: var(--c); padding: 2px 8px; border-radius: 6px;
  border: 1px solid var(--c-100); background: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.melo-promo-p { font-size: 12.5px; font-weight: 600; color: var(--melo-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.melo-promo-btn {
  flex: none; display: inline-flex; align-items: center; gap: 3px; padding: 8px 12px 8px 14px; border-radius: 10px;
  font-size: 13px; font-weight: 800; color: #fff; background: var(--c);
}
.melo-promo-nav[hidden] { display: none; }
.melo-promo-nav { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 8px; }
.melo-promo-arrow { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: var(--melo-ink-2); }
.melo-promo-arrow:hover { background: #e9eef7; color: var(--melo-primary); }
.melo-promo-dots { display: flex; gap: 6px; }
.melo-promo-dots button { width: 7px; height: 7px; padding: 0; border-radius: 4px; background: #cfd8e6; transition: width .2s, background .2s; }
.melo-promo-dots button[aria-current="true"] { width: 18px; background: var(--melo-ink); }

@media (max-width: 1180px) and (min-width: 1081px) { .melo-home-cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) {
  .melo-home-cols { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .melo-promo-track { grid-auto-columns: 100%; }
}
@media (max-width: 420px) {
  .melo-promo-p { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}
@media (prefers-reduced-motion: reduce) { .melo-promo-track { scroll-behavior: auto; } }
