/* ------------------------------ */
/* Global Reset & Base Styles     */
/* ------------------------------ */

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f1f5f9; /* slightly richer background for a more premium feel */
  color: #111827;
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Optional: give main a bit of breathing room */
main {
  padding-bottom: 3rem;
}

/* Shared section typography refinements */
.section-header h2,
.category-landing-links h2,
.supplies-section h2,
.new-section h2,
.about-section h2 {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.section-header p,
.category-landing-links p,
.supplies-section p,
.new-section p,
.about-section p {
  color: #4b5563;
  font-size: 0.95rem;
  max-width: 680px;
  margin: 0.25rem auto 0.5rem auto;
}

/* ------------------------------ */
/* Header                         */
/* ------------------------------ */

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.site-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.main-nav a {
  margin-left: 1rem;
  font-size: 0.95rem;
}

.main-nav a:hover {
  text-decoration: underline;
}

/* ------------------------------ */
/* Hero Section                   */
/* ------------------------------ */

.hero {
  background: radial-gradient(circle at top left, #bfdbfe 0, #fef3c7 40%, #f9fafb 100%);
  padding: 3.5rem 0 3rem;
  text-align: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.hero-logo {
  height: 260px;
  width: auto;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 0.4rem;
  max-width: 640px;
}

.hero p {
  max-width: 600px;
  text-align: center;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.6;
  width: 480px; /* keeps the hero text nicely centered as you liked */
}

/* Premium primary button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  margin-top: 1.1rem;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  box-shadow: 0 10px 18px rgba(37, 99, 235, 0.25);
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.25);
}

/* ------------------------------ */
/* Category Landing Section       */
/* ------------------------------ */

.category-landing-links {
  padding: 2.5rem 0;
  text-align: center;
}

.category-landing-links h2 {
  margin-bottom: 0.5rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.85rem;
  margin-top: 1.4rem;
}

.category-link {
  padding: 0.85rem 0.75rem;
  background: #ffffff;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  display: block;
  font-weight: 600;
  cursor: pointer;
  color: #2563eb;
  text-decoration: none;
  transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, transform 0.16s ease;
}

.category-link:hover {
  background: #eff6ff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
  color: #1d4ed8;
  transform: translateY(-1px);
}

/* ------------------------------ */
/* Browse Section                 */
/* ------------------------------ */

.browse-section {
  padding: 2.5rem 0 3.25rem;
}

.filters {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr; /* search + categories on smaller screens */
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 1.75rem;
  background: #ffffff;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.filter-group label,
.filter-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #4b5563;
}

#search {
  padding: 0.55rem 0.7rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  font-size: 0.95rem;
  background: #f9fafb;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

#search:focus {
  outline: none;
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
}

.category-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.category-btn {
  padding: 0.4rem 0.8rem;
  font-size: 0.82rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.category-btn:hover {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15);
}

.category-btn.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.35);
}

/* Wider layout for filters on larger screens */
@media (min-width: 900px) {
  .filters {
    grid-template-columns: 1.2fr 1.4fr 0.9fr;
  }
}

/* ------------------------------ */
/* Grid Cards                     */
/* ------------------------------ */

.sheet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.sheet-card {
  background: #ffffff;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.sheet-card:hover {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
  border-color: #d1d5db;
}

.sheet-card-image {
  background: #f9fafb;
  border-radius: 0.5rem;
  padding: 0.4rem;
}

.sheet-card-title {
  font-size: 0.98rem;
  font-weight: 600;
}

.sheet-card-meta {
  font-size: 0.8rem;
  color: #6b7280;
}

.sheet-card-actions {
  margin-top: 0.45rem;
  display: flex;
  gap: 0.5rem;
}

.btn-secondary,
.btn-outline {
  flex: 1;
  text-align: center;
  padding: 0.45rem 0.5rem;
  font-size: 0.8rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 500;
}

.btn-secondary {
  background: #2563eb;
  color: #ffffff;
  border: 1px solid #2563eb;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
  transition: background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.btn-secondary:hover {
  background: #1d4ed8;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
}

.btn-outline {
  background: #ffffff;
  border: 1px solid #d1d5db;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.btn-outline:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.empty-state {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.95rem;
  color: #6b7280;
}

.hidden {
  display: none;
}

/* ------------------------------ */
/* About Section                  */
/* ------------------------------ */

.about-section {
  padding: 2rem 0 3rem;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}

.footer-logo {
  height: 300px;
  width: auto;
  object-fit: contain;
  margin: 0 auto 1rem auto;
}

.affiliate-disclosure {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #4b5563;
  background: #f3f4f6;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
}

/* ------------------------------ */
/* Supplies Section               */
/* ------------------------------ */

.supplies-section {
  padding: 2rem 0 3rem;
  border-top: 1px solid #e5e7eb;
}

.supplies-list {
  margin-top: 1rem;
  padding-left: 0;
  list-style: none;
}

.supplies-list li {
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.supplies-list a {
  color: #2563eb;
  text-decoration: underline;
}

.supplies-list a:hover {
  color: #1d4ed8;
}

/* ------------------------------ */
/* New Coloring Pages Section     */
/* ------------------------------ */

.new-section {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}

.new-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.new-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.new-card:hover {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
  border-color: #d1d5db;
}

.new-card img {
  width: 100%;
  background: #f9fafb;
  border-radius: 0.375rem;
  padding: 0.25rem;
}

.new-card-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.new-card-meta {
  font-size: 0.8rem;
  color: #6b7280;
}

.new-card-actions {
  margin-top: 0.4rem;
}

.new-btn {
  display: inline-block;
  width: 100%;
  padding: 0.45rem 0.5rem;
  font-size: 0.8rem;
  background: #2563eb;
  color: white;
  border-radius: 0.375rem;
}

.new-btn:hover {
  background: #1d4ed8;
}

/* ------------------------------ */
/* Footer                         */
/* ------------------------------ */

.site-footer {
  background: #111827;
  color: #9ca3af;
  padding: 1rem 0 1.5rem;
  text-align: center;
}

/* Back to top link (if you add it in HTML later) */
.back-to-top-link {
  font-size: 0.85rem;
  color: #2563eb;
  text-decoration: none;
}

.back-to-top-link:hover {
  text-decoration: underline;
  color: #1d4ed8;
}

/* ------------------------------ */
/* Responsive                     */
/* ------------------------------ */

@media (max-width: 768px) {
  .filters {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 2.5rem 0 2rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    width: 100%;
    max-width: 340px;
  }
}
