/* Projects for sale — listing */

.projects-hero {
  padding-bottom: 0.5rem;
}

.projects-hero-inner {
  max-width: 760px;
}

.projects-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: #7dd3fc;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.projects-hero-eyebrow-icon {
  display: inline-flex;
  color: #38bdf8;
}

.projects-hero .hero-sub {
  margin-top: 0.75rem;
  max-width: 640px;
  line-height: 1.65;
}

.projects-inline-link {
  color: #7dd3fc;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.projects-inline-link:hover {
  color: #bae6fd;
}

.projects-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
}

.projects-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.16);
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
}

.projects-trust-icon {
  display: inline-flex;
  color: #34d399;
}

.projects-hero-meta {
  margin: 1.15rem 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #7dd3fc;
}

.projects-page {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

.projects-filter-block {
  margin-bottom: 2.25rem;
}

/* Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.75rem;
  margin: 0 0 3.25rem;
}

.projects-empty {
  grid-column: 1 / -1;
}

/* Card */
.project-card {
  --proj-c1: #0ea5e9;
  --proj-c2: #0369a1;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.78));
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.28);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--proj-c1) 55%, transparent);
  box-shadow: 0 18px 44px rgba(2, 6, 23, 0.42);
}

.project-card.is-featured {
  border-color: color-mix(in srgb, var(--proj-c1) 45%, transparent);
  box-shadow:
    0 10px 28px rgba(2, 6, 23, 0.28),
    0 0 0 1px color-mix(in srgb, var(--proj-c1) 25%, transparent);
}

.project-card.is-sold-card {
  opacity: 0.72;
}

/* Badge */
.project-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

/* Media / icon area */
.project-card-media {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.4rem 1.1rem;
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--proj-c1) 22%, transparent), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.project-tech-icon,
.project-card-icon-img {
  display: inline-flex;
  flex-shrink: 0;
  line-height: 0;
  filter: drop-shadow(0 8px 16px rgba(2, 6, 23, 0.35));
}

.project-tech-icon svg,
.project-card-icon-img svg {
  display: block;
  border-radius: 16px;
}

.project-card-media-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
  min-width: 0;
}

.project-card-cat {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.project-card-cat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--proj-c1);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--proj-c1) 25%, transparent);
}

/* Body */
.project-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.4rem 0.35rem;
}

.project-card-title {
  margin: 0 0 0.65rem;
  padding-right: 0.25rem;
  font-size: 1.15rem;
  line-height: 1.35;
  color: #f1f5f9;
}

.project-card-summary {
  margin: 0 0 1.15rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted, #94a3b8);
}

/* Tech tags */
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.15rem;
  padding: 0;
  list-style: none;
}

.project-tech li {
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.16);
  font-size: 0.72rem;
  font-weight: 600;
  color: #cbd5e1;
}

/* Features */
.project-features {
  margin: 0 0 0.5rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.project-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #cbd5e1;
}

.project-feature-check {
  display: inline-flex;
  flex-shrink: 0;
  margin-top: 0.12rem;
  color: #34d399;
}

/* Foot */
.project-card-foot {
  margin-top: auto;
  padding: 1.15rem 1.4rem 1.4rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.18);
}

.project-price-block {
  margin-bottom: 1rem;
}

.project-price-main {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.project-price {
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.project-price-note {
  font-size: 0.75rem;
  color: var(--text-dim, #64748b);
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

.project-status.is-ready {
  background: rgba(52, 211, 153, 0.14);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.project-status.is-source {
  background: rgba(129, 140, 248, 0.14);
  color: #a5b4fc;
  border: 1px solid rgba(129, 140, 248, 0.3);
}

.project-status.is-sold {
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

/* Actions */
.project-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.project-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex: 1 1 auto;
  min-height: 2.45rem;
  text-align: center;
}

.project-actions .is-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.project-btn-wa svg,
.project-btn-mail svg {
  flex-shrink: 0;
}

.project-demo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-basis: 100%;
  margin-top: 0.2rem;
  padding: 0.35rem 0;
  font-size: 0.84rem;
  font-weight: 700;
  color: #7dd3fc;
  text-decoration: none;
}

.project-demo-link:hover {
  color: #bae6fd;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.project-demo-link svg {
  flex-shrink: 0;
}

/* Bottom CTA */
.projects-bottom-cta {
  margin: 0.5rem 0 0;
  padding: 2.5rem 1.75rem;
  border-radius: 22px;
  text-align: center;
  border: 1px solid rgba(56, 189, 248, 0.22);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(99, 102, 241, 0.12));
}

.projects-bottom-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  border-radius: 16px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: #7dd3fc;
}

.projects-bottom-cta h2 {
  margin: 0 0 0.7rem;
  font-size: 1.4rem;
  color: #f1f5f9;
}

.projects-bottom-cta p {
  max-width: 640px;
  margin: 0 auto 1.5rem;
  color: var(--text-muted, #94a3b8);
  line-height: 1.65;
}

.projects-bottom-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.projects-bottom-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.65rem;
}

/* Responsive */
@media (max-width: 720px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .project-card-media,
  .project-card-body,
  .project-card-foot {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  .project-card-media {
    padding-top: 1.2rem;
  }

  .project-card-foot {
    padding-bottom: 1.2rem;
  }

  .project-price {
    font-size: 1.4rem;
  }

  .project-actions .btn {
    flex-basis: 100%;
  }

  .projects-bottom-cta {
    padding: 2rem 1.15rem;
  }

  .projects-bottom-actions .btn {
    flex: 1 1 100%;
  }

  .projects-trust {
    gap: 0.55rem;
  }
}
