/* ──────────────────────────────────────────────────────────────────────────
 * tiles.css — Colored icon-tile cards (pdfaid-style).
 * Loaded only by index.html. Existing tool pages keep their original cards.
 * ──────────────────────────────────────────────────────────────────────── */

/* Override the tools-grid card visual on the homepage only.
 * We scope to .tile-grid so the original .tools-grid still works elsewhere.  */

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 40px;
}

@media (max-width: 540px) {
  .tile-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

.tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  color: var(--text);
  text-decoration: none;
  min-height: 150px;
}
.tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-tint);
  text-decoration: none;
}

.tile-icon {
  width: 56px;
  height: 56px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 4px 14px -4px rgb(0 0 0 / 0.15);
}
.tile-icon svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

/* Soft glow shadow underneath */
.tile-icon::after {
  content: '';
  position: absolute;
  inset: auto 8% -6px 8%;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  filter: blur(8px);
  opacity: 0.25;
  z-index: -1;
}

/* Color variants matching pdfaid's palette */
.tile-icon.blue   { background: linear-gradient(135deg, #3b82f6, #2563eb); color: #2563eb; }
.tile-icon.purple { background: linear-gradient(135deg, #c084fc, #a855f7); color: #a855f7; }
.tile-icon.green  { background: linear-gradient(135deg, #34d399, #10b981); color: #10b981; }
.tile-icon.orange { background: linear-gradient(135deg, #fb923c, #f97316); color: #f97316; }
.tile-icon.red    { background: linear-gradient(135deg, #f87171, #ef4444); color: #ef4444; }
.tile-icon.cyan   { background: linear-gradient(135deg, #22d3ee, #06b6d4); color: #06b6d4; }
.tile-icon.indigo { background: linear-gradient(135deg, #818cf8, #6366f1); color: #6366f1; }
.tile-icon.pink   { background: linear-gradient(135deg, #f472b6, #ec4899); color: #ec4899; }
.tile-icon.amber  { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #f59e0b; }
.tile-icon.teal   { background: linear-gradient(135deg, #2dd4bf, #14b8a6); color: #14b8a6; }
.tile-icon.slate  { background: linear-gradient(135deg, #94a3b8, #64748b); color: #64748b; }

.tile h3 {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  letter-spacing: -0.01em;
}
.tile p {
  display: none; /* keep tiles clean and uniform like pdfaid */
}

/* "Coming soon" disabled tile */
.tile.coming-soon {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
.tile.coming-soon::before {
  content: 'Soon';
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--surface-2);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tile {
  position: relative;
}

/* Section headings */
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 48px 0 6px;
}
.section-title:first-of-type {
  margin-top: 8px;
}
.section-subtitle {
  color: var(--text-muted);
  margin: 0 0 20px;
  font-size: 0.95rem;
}
