/* ==========================================================================
   Yazhi Software — projects page
   ========================================================================== */

.page-banner + .section { padding-top: 56px; }

/* ---------- Filter tabs ---------- */
.project-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 44px;
}
.filter-btn {
  padding: 11px 22px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(11, 92, 240, .25);
}

/* ---------- Grid + cards ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.project-card[hidden] { display: none; }
.project-card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: var(--shadow); }
@media (prefers-reduced-motion: no-preference) {
  .project-card.is-entering { animation: cardIn .35s ease both; }
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.project-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.project-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
}
.project-meta i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; }
.project-body h3 { margin-top: 8px; font-size: 19px; font-weight: 700; }
.project-body p { flex: 1; margin: 10px 0 18px; font-size: 15px; line-height: 1.65; }

.project-card .chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.project-card .chip-list li {
  padding: 5px 12px;
  border-radius: 99px;
  background: var(--bg-soft);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

/* ---------- Thumbnails (drawn in CSS; swap for real screenshots later) ---------- */
.thumb {
  --t: var(--primary);
  --t-soft: #e8f0ff;
  display: flex;
  align-items: flex-end;
  height: 200px;
  padding: 26px 26px 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .7), transparent 45%),
    var(--t-soft);
}
.th-blue   { --t: #0b5cf0; --t-soft: #e3ecff; }
.th-green  { --t: #16a34a; --t-soft: #dff5e8; }
.th-orange { --t: #f97316; --t-soft: #ffeedd; }
.th-purple { --t: #7c3aed; --t-soft: #ece6fd; }
.th-teal   { --t: #0d9488; --t-soft: #dcf3f1; }
.th-pink   { --t: #db2777; --t-soft: #fce4ef; }

.thumb-win {
  display: flex;
  gap: 12px;
  width: 100%;
  height: 100%;
  padding: 14px 14px 0;
  background: #fff;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -6px 24px rgba(16, 32, 72, .1);
  transition: transform .3s;
}
.project-card:hover .thumb-win { transform: translateY(-5px); }

/* app variant */
.t-side { display: flex; flex-direction: column; gap: 8px; width: 24%; padding-right: 10px; border-right: 1px solid var(--line); }
.t-side i { height: 7px; border-radius: 99px; background: #e4e9f2; }
.t-side i:first-child { background: var(--t); }
.t-main { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.t-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.t-stats i { height: 28px; border-radius: 6px; background: var(--t-soft); }
.t-bars { flex: 1; display: flex; align-items: flex-end; gap: 6px; }
.t-bars i { flex: 1; border-radius: 3px 3px 0 0; background: var(--t); opacity: .35; }
.t-bars i:nth-child(1) { height: 30%; }
.t-bars i:nth-child(2) { height: 50%; }
.t-bars i:nth-child(3) { height: 42%; }
.t-bars i:nth-child(4) { height: 65%; }
.t-bars i:nth-child(5) { height: 55%; }
.t-bars i:nth-child(6) { height: 78%; }
.t-bars i:nth-child(7) { height: 95%; opacity: 1; }

/* site variant */
.thumb--site .thumb-win { flex-direction: column; }
.t-nav { display: flex; align-items: center; justify-content: space-between; }
.t-nav i { width: 38px; height: 9px; border-radius: 3px; background: var(--navy); }
.t-nav em { width: 60px; height: 6px; border-radius: 99px; background: #d6dceb; }
.t-hero { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: center; }
.t-copy { display: flex; flex-direction: column; gap: 7px; }
.t-copy b { height: 10px; border-radius: 99px; background: var(--ink); }
.t-copy b.short { width: 65%; }
.t-copy u { height: 6px; border-radius: 99px; background: #e4e9f2; text-decoration: none; }
.t-copy s { width: 55px; height: 16px; margin-top: 4px; border-radius: 5px; background: var(--t); text-decoration: none; }
.t-img {
  height: 86%;
  border-radius: 8px;
  background: linear-gradient(160deg, var(--t-soft) 0%, var(--t) 140%);
}

/* Real screenshot alternative */
.thumb-img { display: block; width: 100%; height: 200px; object-fit: cover; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .project-grid { grid-template-columns: 1fr; gap: 20px; }
  .project-filters { margin-bottom: 32px; }
  .filter-btn { padding: 10px 18px; font-size: 14px; }
}
