﻿body#categories-page {
  margin: 0;
  min-height: 100%;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  line-height: 1.65;
  background:
    radial-gradient(circle at 12% 10%, rgba(37, 99, 235, 0.14), transparent 34%),
    radial-gradient(circle at 88% 14%, rgba(196, 181, 253, 0.14), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(37, 99, 235, 0.12), transparent 32%),
    linear-gradient(180deg, #fcf8eb 0%, #FFFFFF 48%, #eef2f4 100%);
  overflow-x: hidden;
}

body#categories-page::before,
body#categories-page::after {
  content: "";
  position: fixed;
  pointer-events: none;
  inset: 0;
  z-index: 0;
}

body#categories-page::before {
  background:
    radial-gradient(circle at 22% 20%, rgba(37, 99, 235, 0.16), transparent 24%),
    radial-gradient(circle at 80% 72%, rgba(37, 99, 235, 0.12), transparent 24%);
  filter: blur(10px);
}

body#categories-page::after {
  inset: 18px;
  border-radius: 38px;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(circle at center, black 55%, transparent 92%);
  opacity: 0.3;
}

body#categories-page .category-hub-main {
  position: relative;
  z-index: 1;
}

.category-hub-main {
  width: min(1180px, calc(100% - 34px));
  margin: 0 auto;
  padding: clamp(34px, 5vw, 56px) 0 56px;
}

.category-hub-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 22px;
  align-items: stretch;
}

.category-hub-copy,
.category-hub-panel,
.category-hub-section {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 251, 240, 0.84));
  border: var(--border-soft);
  border-radius: 28px;
  box-shadow: 0 20px 40px rgba(13, 38, 55, 0.12);
  backdrop-filter: blur(16px);
}

.category-hub-copy,
.category-hub-panel {
  padding: clamp(24px, 4vw, 36px);
}

.category-hub-title {
  margin: 14px 0 14px;
  font-family: "Noto Sans Georgian", sans-serif;
  font-size: clamp(2rem, 1.4rem + 1.8vw, 3rem);
  line-height: 1.1;
  color: var(--heading-ink);
}

.category-hub-description {
  margin: 0;
  max-width: 60ch;
  color: var(--moss);
  font-size: 1rem;
}

.category-hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.category-hub-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  background:
    radial-gradient(circle at top right, rgba(196, 181, 253, 0.12), transparent 30%),
    linear-gradient(145deg, rgba(0, 0, 0, 0.98), rgba(14, 48, 71, 0.98));
  color: var(--white);
}

.category-hub-panel-label {
  display: inline-flex;
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(196, 181, 253, 0.18);
  color: #f9dc99;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.category-hub-panel strong {
  font-family: "Noto Sans Georgian", sans-serif;
  font-size: clamp(1.8rem, 1.3rem + 1.3vw, 2.5rem);
  line-height: 1.1;
}

.category-hub-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.category-hub-section {
  margin-top: 28px;
  padding: clamp(22px, 4vw, 34px);
}

.category-search-card {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  padding: clamp(22px, 4vw, 30px);
  border-radius: 28px;
  border: var(--border-soft);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 251, 240, 0.9));
  box-shadow: 0 20px 40px rgba(13, 38, 55, 0.1);
}

.category-search-copy h2 {
  margin: 12px 0 10px;
  font-family: "Noto Sans Georgian", sans-serif;
  color: var(--heading-ink);
  font-size: clamp(1.45rem, 1.1rem + 1vw, 2rem);
  line-height: 1.15;
}

.category-search-copy p,
.category-search-status {
  margin: 0;
  color: var(--moss);
}

.category-search-form {
  display: grid;
  gap: 12px;
  align-content: start;
}

.category-search-shell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.category-search-shell i {
  color: var(--lagoon);
}

.category-search-shell input {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
}

.category-search-shell input:focus {
  outline: none;
}

.category-search-status {
  min-height: 24px;
  font-weight: 700;
}

.category-hub-salutation {
  margin-bottom: 26px;
  padding: clamp(20px, 4vw, 28px);
  border-radius: 24px;
  border: 1px solid rgba(93, 115, 124, 0.24);
  background:
    radial-gradient(circle at top right, rgba(196, 181, 253, 0.12), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 240, 0.86));
  box-shadow: 0 18px 34px rgba(13, 38, 55, 0.08);
}

.category-hub-salutation-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(196, 181, 253, 0.12);
  color: var(--lagoon);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.category-hub-salutation h2 {
  margin: 14px 0 10px;
  font-family: "Noto Sans Georgian", sans-serif;
  font-size: clamp(1.55rem, 1.2rem + 1vw, 2.15rem);
  line-height: 1.15;
  color: var(--heading-ink);
}

.category-hub-salutation p {
  margin: 0;
  max-width: 62ch;
  color: var(--moss);
}

.category-hub-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-empty {
  margin: 18px 0 0;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px dashed rgba(93, 115, 124, 0.28);
  background: rgba(255, 255, 255, 0.76);
  color: var(--moss);
  text-align: center;
  font-weight: 700;
}

@media (max-width: 1080px) {
  .category-hub-hero {
    grid-template-columns: 1fr;
  }

  .category-hub-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-search-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .category-hub-main {
    width: calc(100% - 24px);
    padding-top: 24px;
  }
}

@media (max-width: 540px) {
  .category-hub-list {
    grid-template-columns: 1fr;
  }

  .category-hub-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .category-search-shell {
    min-height: 52px;
    padding-inline: 14px;
  }
}

/* More page category cards share the refreshed quiz category button UI. */
body#categories-page {
  background:
    radial-gradient(circle at 8% 10%, rgba(37, 99, 235, 0.08), transparent 32%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 55%, #f8fbff 100%);
}

body#categories-page::before,
body#categories-page::after {
  display: none;
}

.category-hub-main {
  width: min(1380px, calc(100% - 34px));
}

.category-hub-hero,
.category-search-card,
.category-hub-salutation {
  display: none;
}

.category-hub-section {
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.category-hub-section .section-heading {
  margin-bottom: 26px;
}

.category-hub-section .section-kicker {
  width: fit-content;
  padding: 9px 16px;
  border-radius: 12px;
  border: 1px solid #bdd3ff;
  background: #eef4ff;
  color: #2563eb;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.08);
}

.category-hub-section .section-kicker::before {
  content: "\f00a";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 10px;
}

.category-hub-section .section-title {
  max-width: 760px;
  color: #071c4d;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.4rem, 1.8rem + 2.2vw, 4.2rem);
  line-height: 1.06;
  letter-spacing: 0;
  font-weight: 900;
}

.category-hub-section .section-copy {
  max-width: 650px;
  color: #52627a;
  font-size: clamp(1rem, 0.95rem + 0.28vw, 1.18rem);
}

.category-hub-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 1080px) {
  .category-hub-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .category-hub-list {
    grid-template-columns: 1fr;
  }
}

