/* ============================================================
   products.css — Products section
   ============================================================ */

.products {
  background-color: var(--color-bg-secondary);
}

/* ── Layout: featured top, 2+2 grid below ── */
.products__featured {
  margin-bottom: var(--space-4);
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

/* ── Base product card ── */
.product-card {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  cursor: default;
}

/* Featured card gets extra padding and larger text */
.product-card--featured {
  padding: var(--space-8);
}

/* ── Accent glow behind featured card ── */
.product-card--featured::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--card-glow, rgba(79,142,247,0.15)) 0%, transparent 70%);
  pointer-events: none;
}

.product-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
}

.product-card__name {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--color-text-primary);
  line-height: 1.1;
}

.product-card--featured .product-card__name {
  font-size: var(--text-3xl);
}

.product-card:not(.product-card--featured) .product-card__name {
  font-size: var(--text-2xl);
}

.product-card__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-accent-primary);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 4px 10px;
  background: rgba(79,142,247,0.08);
  border: 1px solid rgba(79,142,247,0.15);
  border-radius: var(--radius-full);
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.product-card__link:hover {
  background: rgba(79,142,247,0.15);
  border-color: rgba(79,142,247,0.3);
}

.product-card__link svg {
  width: 12px;
  height: 12px;
}

.product-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-loose);
}

.product-card--featured .product-card__desc {
  font-size: var(--text-base);
  max-width: 640px;
}

/* ── Tags row ── */
.product-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
