/* /assets/css/pages/resources-cards.css
 * Card-grid overlay for /resources.html (added 2026-05-17).
 * Loaded after the base resources.{hash}.css so these rules cascade.
 * Same dark/glass design language; restructures rows into a 2-col card grid
 * with hover-lift + variant icon/badge colors (opensource, techdoc).
 */

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
}
@media (max-width: 720px) {
  .resource-grid { grid-template-columns: 1fr; }
}

.resource-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem 1.2rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform 180ms ease, border-color 200ms ease, background 200ms ease, box-shadow 220ms ease;
  position: relative;
}
.resource-card:hover,
.resource-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.45);
  background: rgba(96, 165, 250, 0.06);
  box-shadow: 0 8px 22px rgba(59, 130, 246, 0.18),
              0 0 0 1px rgba(96, 165, 250, 0.18);
  outline: none;
}
.resource-card:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.6);
  outline-offset: 2px;
}
.resource-card--static {
  cursor: default;
}
.resource-card--static:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: none;
}

/* Card title hover state — re-uses the legacy resource-title link color */
.resource-card .resource-title {
  font-weight: 600;
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 0.3rem;
  line-height: 1.35;
  transition: color 0.2s;
}
.resource-card:hover .resource-title {
  color: #60a5fa;
}

.resource-card .resource-meta {
  color: #9ca3af;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Icon variants — extend the base .resource-icon */
.resource-icon.opensource {
  background: rgba(52, 211, 153, 0.12);
}
.resource-icon.opensource i {
  color: #34d399;
}

.resource-icon.techdoc {
  background: rgba(167, 139, 250, 0.12);
}
.resource-icon.techdoc i {
  color: #a78bfa;
}

/* Badge variants */
.resource-badge.opensource {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
}

/* External-domain hint */
.resource-external {
  display: inline-block;
  margin-top: 0.35rem;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.78rem;
  color: rgba(167, 139, 250, 0.85);
  letter-spacing: -0.005em;
}

/* Container width — bump on the resources page so cards have breathing room */
@media (min-width: 768px) {
  .section .container { max-width: 1080px; }
}

/* Section h2 — subtle gradient kicker treatment */
.resource-section h2 {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: -0.005em;
}
.resource-section h2 i {
  color: #3b82f6;
  font-size: 1.15rem;
}
