*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #0f172a;
  background: #f8fafc;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.hero {
  background: #0f172a;
  color: #f8fafc;
  padding: 40px;
  border-radius: 24px;
  display: grid;
  gap: 16px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.section {
  margin-top: 48px;
  display: grid;
  gap: 20px;
}

.section__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.section__description {
  margin: 6px 0 0;
  color: #475569;
}


.button {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.button--ghost {
  background: #e2e8f0;
  color: #0f172a;
}

.home-button {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
  padding: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-button__icon {
  width: 18px;
  height: 18px;
}

.grid {
  display: grid;
  gap: 16px;
}

.category-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.category-carousel .category-card {
  flex: 0 0 auto;
  min-width: 220px;
  scroll-snap-align: start;
}

.category-carousel::-webkit-scrollbar {
  height: 8px;
}

.category-carousel::-webkit-scrollbar-thumb {
  background: #cbd5f5;
  border-radius: 999px;
}

@media (max-width: 720px) {
  .section__header {
    flex-direction: column;
    align-items: flex-start;
  }

}

.grid--categories {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.grid--prompts {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.category-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #e2e8f0;
}

.prompt-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  display: grid;
  gap: 10px;
  border: 1px solid #e2e8f0;
}

.prompt-card.is-hidden {
  display: none;
}

.prompt-card__meta {
  font-size: 12px;
  color: #64748b;
}

.prompt-card__title {
  margin: 0;
  font-size: 18px;
}

.prompt-card__description {
  margin: 0;
  color: #475569;
}

.prompt-card__tags,
.prompt__tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.prompt-card__tags li,
.prompt__tags li {
  background: #e2e8f0;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
}

.filters {
  display: grid;
  gap: 16px;
}

.input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #cbd5f5;
}

.filters__categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  border: 1px solid #cbd5f5;
  background: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.chip.is-active {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

.prompt {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  border: 1px solid #e2e8f0;
}

.prompt__meta {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #64748b;
}

.pill {
  background: #e2e8f0;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
}

.prompt__description {
  color: #475569;
}

.prompt__content {
  margin-top: 24px;
  display: grid;
  gap: 7px;
  line-height: 1.35;
}

.prompt__content p,
.prompt__content ul,
.prompt__content ol,
.prompt__content h2,
.prompt__content h3,
.prompt__content h4 {
  margin: 0;
}

.prompt__content ul,
.prompt__content ol {
  padding-left: 18px;
}

.prompt__actions {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.prompt__tags {
  margin-top: 12px;
}

.prompt__copy-status {
  color: #64748b;
  font-size: 14px;
}

.related-card {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  border: 1px solid #e2e8f0;
  display: grid;
  gap: 8px;
}
