/*
 * ============================================================
 * css/products.css — Products / Work Section
 * ============================================================
 * Responsible for:
 *   - #products section border
 *   - .products-grid flex column gap
 *   - .product-card grid layout (2-col) + even-card visual order flip
 *   - .product-title, .product-title .title-accent
 *   - .product-description paragraph
 *   - .product-visual wrapper + .screenshot-stack height
 *   - .screenshot-primary / .screenshot-secondary positioning,
 *     sizing, border, shadow + hover translate effect
 *   - .screenshot-img object-fit cover
 *   - .screenshot-placeholder gradient fill + text style
 *   - .placeholder-futrabbit / .placeholder-rushes gradient colours
 *   - .rushes-coming-soon custom visual with ::before and ::after
 *     pseudo-elements (glow + scanline)
 *   - .rushes-cs-inner, .rushes-cs-icon, .rushes-cs-label,
 *     .rushes-cs-sub, .rushes-cs-pipeline, .pipe-arrow
 *   - .coming-soon-link disabled state
 *   - .product-meta, .stack-label, .stack-pills, .pill
 *   - .product-links, .product-link (.primary / .secondary)
 * ============================================================
 */

/* ═══════════════════════════════════════════════════════
   10. PRODUCTS SECTION
═══════════════════════════════════════════════════════ */
#products {
  border-top: 1px solid var(--border);
}

.products-grid {
  display: flex;
  flex-direction: column;
  gap: 10rem;
}

/* ── Individual product card ── */
.product-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* Alternate layout for even cards */
.product-card:nth-child(even) .product-visual {
  order: -1;
}

.product-title h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
}

.product-title .title-accent {
  color: var(--accent);
}

.product-description {
  margin-top: 1.5rem;
}

.product-description p {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.7;
}

/* Screenshots stack */
.product-visual {
  position: relative;
}

.screenshot-stack {
  position: relative;
  height: 360px;
}

/* Primary screenshot */
.screenshot-primary {
  position: absolute;
  top: 0;
  left: 0;
  width: 82%;
  aspect-ratio: 16/10;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
  transition: transform var(--duration-med) var(--ease-out-expo);
}

.screenshot-secondary {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60%;
  aspect-ratio: 16/10;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  transition: transform var(--duration-med) var(--ease-out-expo) 0.05s;
}

.product-card:hover .screenshot-primary  { transform: translate(-8px, -8px); }
.product-card:hover .screenshot-secondary { transform: translate(8px, 8px); }

/* Placeholder screenshot fill */
.screenshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Placeholder gradient fill until real screenshots added */
.screenshot-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.15);
}

.placeholder-futrabbit {
  background: linear-gradient(135deg, #0a1628 0%, #1a2d4a 50%, #0d1f38 100%);
}

.placeholder-rushes {
  background: linear-gradient(135deg, #1a0a0a 0%, #3a1010 50%, #1f0d0d 100%);
}

/* Rushes GIF stack */
.rushes-gif-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  gap: 10px;
  width: 100%;
}

.rushes-gif-primary {
  grid-column: 1 / -1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.rushes-gif-primary img {
  width: 100%;
  height: auto;
  display: block;
}

.rushes-gif-secondary {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.rushes-gif-secondary img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* (Rushes coming-soon visual removed — now uses real screenshots) */

.coming-soon-link {
  opacity: 0.55;
  pointer-events: none;
  cursor: default;
}

/* Tech stack pills under product */
.product-meta {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.stack-label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pill {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.7rem;
  border-radius: 2px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: background var(--duration-fast) ease,
              border-color var(--duration-fast) ease,
              color var(--duration-fast) ease;
}

.pill:hover {
  background: var(--surface-2);
  border-color: var(--accent);
  color: var(--accent);
}

.product-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.product-link {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.55rem 1.2rem;
  border-radius: 2px;
  transition: all var(--duration-fast) ease;
}

.product-link.primary {
  background: var(--accent);
  color: var(--bg);
  font-weight: 500;
}

.product-link.primary:hover {
  background: var(--accent-2);
}

.product-link.secondary {
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.product-link.secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/*
 * Previous state (decorative top-right card number).
 * To restore:
 * 1) uncomment this CSS block
 * 2) uncomment the product-number spans in index.html
 * 3) re-enable product-number rendering in js/products.js
 *
 * .product-number {
 *   font-family: var(--font-display);
 *   font-size: 8rem;
 *   color: rgba(255,255,255,0.03);
 *   position: absolute;
 *   right: 0;
 *   top: -2rem;
 *   pointer-events: none;
 *   user-select: none;
 *   line-height: 1;
 * }
 */

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .product-card { grid-template-columns: 1fr; gap: 3rem; }
  .product-card:nth-child(even) .product-visual { order: unset; }
  .screenshot-stack { height: 240px; }
}

