/* Homepage-only layout, built on top of the shared style.css brand foundation. */

/*
  style.css centers everything (including padding) for the single-card
  mini apps. The shared #agoodun-header needs to sit flush against the
  top and both edges of the viewport, so body's own padding/centering
  is turned off here and pushed down onto .page-content instead.
*/
body {
  padding: 0;
  justify-content: flex-start;
  gap: 0;
}

#agoodun-header {
  width: 100%;
}

.page-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 24px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 440px;
}

.logo {
  width: 72px;
  height: 72px;
  border-radius: 5px;
  margin-bottom: 12px;
}

.hero .subtitle {
  margin-bottom: 0;
}

.hero-dot {
  color: var(--color-primary);
}

.favourites-section {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.favourites-section[hidden] {
  display: none;
}

.section-eyebrow {
  width: 100%;
  max-width: 720px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-primary);
  margin: 0;
}

.section-divider {
  width: 100%;
  max-width: 720px;
  height: 1px;
  border: none;
  margin: 0;
  background: #e5e7eb;
}

.section-divider[hidden] {
  display: none;
}

.filter-pills {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.filter-pill {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: #6b7280;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.filter-pill:hover {
  border-color: var(--color-primary);
  color: var(--color-tertiary-black);
}

.filter-pill:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.filter-pill.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
}

.tools-grid {
  width: 100%;
  max-width: 720px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 768px) {
  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.empty-state {
  font-size: 0.9rem;
  color: #6b7280;
}

.tool-card-wrapper {
  position: relative;
  display: flex;
}

.tool-card-wrapper[hidden] {
  display: none;
}

.tool-card-star {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: #6b7280;
  transition: color 0.15s ease, background 0.15s ease;
  z-index: 1;
}

.tool-card-star svg {
  width: 16px;
  height: 16px;
}

.tool-card-star svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.tool-card-star:hover {
  background: #f4f5f7;
  color: var(--color-tertiary-gold);
}

.tool-card-star:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}

.tool-card-star.is-favourite {
  color: var(--color-tertiary-gold);
}

.tool-card-star.is-favourite svg path {
  fill: var(--color-tertiary-gold);
}

.tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  width: 100%;
  background: #ffffff;
  border-radius: 16px;
  padding: 20px 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.tool-card:hover,
.tool-card:focus-visible {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.tool-card:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.tool-card-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-card-body {
  min-width: 0;
}

.tool-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-tertiary-black);
  margin-bottom: 4px;
}

.tool-card-desc {
  font-size: 0.85rem;
  line-height: 1.4;
  color: #6b7280;
}

.site-footer {
  font-size: 0.85rem;
  color: #6b7280;
}
