/* ══════════════════════════════════════════════════════════════
   کوچ — استایل اختصاصی صفحه «دموها» (demos.css)
   پیش‌نیاز: assets/css/base.css
   ══════════════════════════════════════════════════════════════ */

.demos-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.demo-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
}

.demo-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.demo-thumb {
  position: relative;
  height: 200px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.demo-thumb .mock {
  width: 78%;
  height: 74%;
  border-radius: 14px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .22);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}

.demo-card:hover .mock {
  transform: translateY(-6px) scale(1.03);
}

.mock-bar {
  height: 8px;
  border-radius: 99px;
  background: #d7deea;
}

.mock-bar.big {
  height: 18px;
  width: 65%;
}

.mock-bar.dark {
  background: #22345e;
}

.mock-row {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.mock-chip {
  flex: 1;
  height: 34px;
  border-radius: 9px;
  background: #eef2f8;
}

.mock-chip.c1 {
  background: var(--m1, #2ec4b6);
  opacity: .9;
}

.mock-chip.c2 {
  background: var(--m2, #f2b84b);
}

.demo-num {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(6px);
  color: #111;
  font-size: 12.5px;
  font-weight: 900;
  border-radius: 999px;
  padding: 5px 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
}

.demo-live {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 22, 40, .85);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  border-radius: 999px;
  padding: 6px 13px;
}

.demo-live .live-dot {
  width: 7px;
  height: 7px;
}

.demo-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.demo-body h3 {
  font-size: 17px;
  font-weight: 900;
}

.demo-body h3 small {
  font-weight: 700;
  color: var(--muted);
  font-size: 12.5px;
  margin-right: 6px;
}

.demo-body p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
}

.demo-pal {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.demo-pal span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--card);
  box-shadow: 0 0 0 1px var(--line);
}

.demo-pal small {
  margin-right: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
}

.demo-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  display: flex;
  gap: 10px;
}

/* ═══ رنگ پس‌زمینه هر تامنیل (منطبق با دموهای نهایی) ══ */
.t-1 {
  background: linear-gradient(135deg, #0b2447, #19376d 60%, #2ec4b6);
}

/* کلاسیک */
.t-2 {
  background: linear-gradient(135deg, #0b2447, #4f46e5 60%, #2ec4b6);
}

/* نامتقارن */
.t-3 {
  background: linear-gradient(135deg, #0b2447, #0d9487 55%, #f2b84b);
}

/* دو نیمه */
.t-4 {
  background: linear-gradient(135deg, #eaf1fb, #2563eb 55%, #17294d);
}

/* بنتو */
.t-5 {
  background: linear-gradient(135deg, #FFB3D9, #7DD3FC 55%, #C4B5FD);
}

/* Claymorphism */
.t-6 {
  background: linear-gradient(135deg, #0a0a0a, #1e293b 55%, #2ec4b6);
}

/* بولد */

@media (max-width: 860px) {
  .demos-grid {
    grid-template-columns: 1fr;
  }
}