/* home.css — catalog / homepage styles */

.search-bar { margin-top: 8px; margin-bottom: 16px; display: flex; justify-content: center; }
.search-bar input {
  width: 100%; max-width: 400px; padding: 10px 14px; border: 2px solid var(--muted);
  border-radius: 999px; font-size: 15px; transition: border-color 0.2s, box-shadow 0.2s;
}
.search-bar input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 6px var(--ring); }

.grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: 12px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(5, 1fr); } }

.section { margin-top: 30px; }
.section + .section { margin-top: 40px; }
.section-title { font-weight: 700; font-size: clamp(16px, 1.8vw, 22px); margin-bottom: 10px; }

.card {
  position: relative; aspect-ratio: 1/1; overflow: hidden; border-radius: var(--radius);
  background: var(--card); box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
}
.card .bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .22s ease; }
.card:hover .bg { transform: scale(1.06); }
.card:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 25px rgba(0,0,0,0.08); }

.card .label {
  position: absolute; left: 8px; bottom: 8px; color: #fff; font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,.4); font-size: clamp(15px, 4vw, 20px); z-index: 3;
}

/* Bottom gradient so the title stays readable over any photo */
.card::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 40%;
  pointer-events: none; z-index: 2;
  background: linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0.25), rgba(0,0,0,0));
}

/* Not-ready tours: blurred photo + "Скоро" ribbon */
.card.soon .bg { filter: blur(3px) brightness(1.1) saturate(0.8); }

.card.soon:not(.has-release)::before {
  content: "Скоро"; position: absolute; bottom: 5px; right: -35px; transform: rotate(-35deg);
  background: rgba(255,255,255,0.92); color: var(--ink); font-weight: 700; font-size: 13px;
  padding: 3px 36px; border-radius: 6px; box-shadow: 0 3px 8px rgba(0,0,0,0.08); z-index: 4;
}

.card.soon .release-badge {
  position: absolute; bottom: 25px; right: -35px; transform: rotate(-35deg);
  background: rgba(255,255,255,0.9); color: var(--ink); font-weight: 700; font-size: 13px;
  padding: 3px 36px; border-radius: 6px; box-shadow: 0 3px 8px rgba(0,0,0,0.08); z-index: 4;
}

/* Small "available as text" badge, top-right corner */
.card .format-badge {
  position: absolute; top: 8px; right: 8px; width: 60px; height: 60px;
  background: rgba(255,255,255,.92); border-radius: 50%; padding: 1px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15); z-index: 4; object-fit: contain;
}

/* Top-level catalog tiers: "Доступно сейчас" / "Скоро в каталоге" */
.tier-title {
  font-weight: 800; font-size: clamp(16px, 1.8vw, 20px);
  margin-top: 40px; margin-bottom: 6px; padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
}
.tier-title:first-child { margin-top: 0; }
.tier-title-soon { border-bottom-color: var(--muted); color: var(--muted); }
