/* resources.html: this page's own styles. Shared components live in main.css. */
.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 3rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  transition: all 0.2s ease;
  background: var(--bg-raised);
}
.filter-pill:hover {
  border-color: var(--purple);
  color: var(--purple);
  background: var(--tint-purple);
}
.filter-pill.active {
  background: var(--purple-fill);
  color: var(--on-dark);
  border-color: var(--purple);
}
.resources-grid {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.resource-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  text-decoration: none;
  color: var(--fg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  width: 100%;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.resource-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, var(--purple-fill) 0%, var(--cyan) 100%);
  transition: width 0.3s ease;
}
.resource-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
.card-category {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--purple);
  margin-bottom: 0.75rem;
}
.resource-card h2 {
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--fg);
  letter-spacing: -0.02em;
}
.resource-card p {
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: var(--text-base);
}
.resource-card:hover .link-arrow {
  color: var(--cyan-text);
}
.resource-card:hover .arrow-icon {
  transform: translateX(4px);
}
.resource-card:hover .card-arrow {
  color: var(--cyan-text);
  opacity: 1;
  transform: translateX(3px);
}
@media (max-width: 768px) {
  .category-filters {
    margin-bottom: 2rem;
  }
  .resource-card {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 640px) {
  .resource-card h2 {
    font-size: var(--text-lg);
  }
  .resource-card p {
    font-size: var(--text-base);
  }
}

@media (max-width: 480px) {
  .filter-pill {
    font-size: var(--text-sm);
    padding: 0.4rem 0.9rem;
  }
}

.content p.templates-pointer {
  text-align: center;
  margin-top: -1.75rem;
  margin-bottom: 2.5rem;
  font-size: var(--text-base);
  color: var(--fg-muted);
}
.content a.templates-pointer-link, .content a.templates-pointer-link:hover {
  color: var(--cyan-text);
  font-weight: 600;
  text-decoration: none;
}

/* This page's own versions of components other pages share. The page
   title is main.css's shared .page-title. */
.intro {
  font-size: var(--text-md);
  color: var(--fg-muted);
  margin-bottom: 2.5rem;
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.card-content {
  padding: 1.5rem 2rem;
  padding-left: 2.25rem;
  flex-grow: 1;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  font-size: var(--text-sm);
  color: var(--fg-muted);
  font-weight: 500;
  transition: all 0.2s ease;
}
.tag:hover {
  background: var(--bg-subtle);
  border-color: var(--border-strong);
}
.tag-icon {
  font-size: var(--text-sm);
  flex-shrink: 0;
}
.link-arrow {
  color: var(--purple);
  font-weight: 600;
  font-size: var(--text-base);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.arrow-icon {
  font-size: var(--text-sm);
  transition: transform 0.2s ease;
}
.card-arrow {
  padding: 2rem;
  padding-right: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  opacity: 0.4;
  transition: all 0.3s ease;
}
.card-arrow i {
  font-size: var(--text-lg);
}
@media (max-width: 768px) {
  .page-title {
    font-size: var(--text-2xl);
  }
}
@media (max-width: 768px) {
  .intro {
    font-size: var(--text-md);
    margin-bottom: 2rem;
  }
}
@media (max-width: 768px) {
  .card-arrow {
    display: none;
  }
}
@media (max-width: 768px) {
  .card-content {
    padding: 2rem;
  }
}
@media (max-width: 640px) {
  .page-title {
    font-size: var(--text-xl);
  }
}
@media (max-width: 640px) {
  .intro {
    font-size: var(--text-base);
  }
}
@media (max-width: 640px) {
  .card-content {
    padding: 1.5rem;
  }
}
@media (max-width: 480px) {
  .page-title {
    font-size: var(--text-xl);
  }
}
@media (max-width: 480px) {
  .intro {
    font-size: var(--text-base);
  }
}
@media (max-width: 480px) {
  .card-content {
    padding: 1.25rem;
  }
}
@media (max-width: 480px) {
  .tags {
    gap: 0.5rem;
  }
}
@media (max-width: 480px) {
  .tag {
    font-size: var(--text-sm);
    padding: 0.4rem 0.7rem;
  }
}

/* Search, shared by the Resources hub and the Research page. A plain form:
   the server filters, so it works with no script. */
.hub-search {
  display: flex;
  gap: var(--space-2);
  max-width: 640px;
  margin: 0 auto var(--space-4);
}
.hub-search-input {
  flex: 1;
  min-width: 0;
  padding: 0.625rem 1rem;
  font: inherit;
  font-size: var(--text-base);
  color: var(--fg);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.hub-search-input:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.hub-search-button {
  padding: 0.625rem 1.25rem;
  font: inherit;
  font-weight: 600;
  color: var(--on-bright);
  background: var(--cyan);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
}
.hub-search-button:hover {
  background: var(--cyan-hover);
}
.content p.hub-search-summary {
  text-align: center;
  color: var(--fg-muted);
  margin: 0 auto var(--space-4);
}

/* Research: the founders' featured picks beside the full list on wide
   screens, above it on narrow ones. */
.research-layout {
  display: grid;
  gap: var(--space-5);
  max-width: 1200px;
  margin: 0 auto;
}
.research-column-heading {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  margin-bottom: var(--space-3);
}
/* The featured column uses the shared compact cards (resource-cards); in a
   narrow column they stack in one track. */
.research-featured .child-index {
  grid-template-columns: 1fr;
  margin-top: 0;
}
.research-all .resources-grid {
  max-width: none;
}
@media (min-width: 1024px) {
  .research-layout {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    align-items: start;
  }
  .research-featured {
    order: 2;
  }
  .research-all {
    order: 1;
  }
}
