/* =========================================================
   ANALYSES PAGE
   Requires: base.css
   ========================================================= */

.analyses-page {
  position: relative;
  z-index: 1;
  background-color: var(--color-off-white);
  min-height: 100vh;
  padding: 60px 0 80px;
}


/* ---------------------------------------------------------
   Introduction
   --------------------------------------------------------- */

.analyses-intro {
  max-width: 700px;
  margin: 0 auto 40px;
  text-align: center;
}

.analyses-kicker {
  display: inline-block;
  margin-bottom: 10px;

  color: var(--color-teal);

  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.analyses-intro h1 {
  margin: 0 0 12px;

  color: var(--color-deep);

  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.6px;
}

.analyses-intro p {
  max-width: 600px;
  margin: 0 auto;

  color: var(--color-muted);

  font-size: 13px;
  line-height: 1.8;
}


/* ---------------------------------------------------------
   Tools
   --------------------------------------------------------- */

.analyses-tools {
  max-width: 950px;
  margin: 0 auto 30px;
}


/* Search */

.analysis-search {
  position: relative;

  width: 100%;
  height: 52px;

  display: flex;
  align-items: center;

  border: 1px solid var(--color-border);
  border-radius: 6px;

  background: var(--color-white);

  box-shadow: 0 5px 18px rgba(20, 55, 62, 0.045);

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.analysis-search:focus-within {
  border-color: var(--color-teal);

  box-shadow:
    0 0 0 3px rgba(63, 167, 163, 0.08);
}

.analysis-search>i {
  margin-left: 18px;

  color: var(--color-teal);

  font-size: 14px;
}

.analysis-search input {
  flex: 1;

  width: 100%;
  height: 100%;

  padding: 0 14px;

  border: 0;
  outline: 0;

  background: transparent;

  color: var(--color-text);

  font-family: inherit;
  font-size: 13px;
}

.analysis-search input::placeholder {
  color: var(--color-muted);
}

.search-clear {
  width: 40px;
  height: 40px;

  margin-right: 6px;

  display: none;
  align-items: center;
  justify-content: center;

  border: 0;
  border-radius: 50%;

  background: transparent;

  color: var(--color-muted);

  cursor: pointer;

  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.search-clear.visible {
  display: flex;
}

.search-clear:hover {
  background: var(--color-off-white);
  color: var(--color-teal);
}


/* ---------------------------------------------------------
   Alphabet
   --------------------------------------------------------- */

.alphabet-wrapper {
  margin-top: 20px;

  display: flex;
  align-items: center;
  gap: 7px;

  flex-wrap: wrap;
}

.alphabet-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.alphabet-button {
  min-width: 34px;
  height: 34px;

  padding: 0 8px;

  border: 1px solid var(--color-border);
  border-radius: 4px;

  background: var(--color-white);

  color: var(--color-muted);

  font-family: inherit;
  font-size: 11px;
  font-weight: 700;

  cursor: pointer;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.alphabet-button:hover {
  border-color: var(--color-teal);
  color: var(--color-teal);
}

.alphabet-button.active {
  border-color: var(--color-teal);
  background: var(--color-teal);
  color: var(--color-white);
}

.alphabet-all {
  padding: 0 13px;
}


/* ---------------------------------------------------------
   Results
   --------------------------------------------------------- */

.analyses-results {
  max-width: 950px;
  margin: 0 auto;
}

.analyses-results-header {
  margin-bottom: 12px;

  color: var(--color-muted);

  font-size: 11px;
  font-weight: 600;
}


/* Analysis list */

.analysis-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 9px;
}

.analysis-item {
  min-height: 58px;

  display: flex;
  align-items: center;

  padding: 13px 17px;

  border: 1px solid var(--color-border);
  border-radius: 5px;

  background: var(--color-white);

  color: var(--color-text);

  font-size: 12px;
  line-height: 1.5;

  box-shadow: 0 3px 12px rgba(20, 55, 62, 0.025);

  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.analysis-item::before {
  content: "";

  width: 5px;
  height: 5px;

  flex: 0 0 5px;

  margin-right: 12px;

  border-radius: 50%;

  background: var(--color-teal);
}

.analysis-item:hover {
  border-color: rgba(63, 167, 163, 0.45);

  transform: translateY(-1px);

  box-shadow: 0 7px 18px rgba(20, 55, 62, 0.07);
}


/* ---------------------------------------------------------
   No results
   --------------------------------------------------------- */

.no-results {
  padding: 60px 20px;

  border: 1px solid var(--color-border);
  border-radius: 6px;

  background: var(--color-white);

  text-align: center;
}

.no-results>i {
  margin-bottom: 15px;

  color: var(--color-teal);

  font-size: 22px;
}

.no-results h2 {
  margin: 0 0 7px;

  color: var(--color-deep);

  font-size: 15px;
}

.no-results p {
  margin: 0;

  color: var(--color-muted);

  font-size: 12px;
}


/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 700px) {

  .analyses-page {
    padding: 40px 0 60px;
  }

  .analyses-intro {
    margin-bottom: 30px;
  }

  .analysis-list {
    grid-template-columns: 1fr;
  }

  .alphabet-wrapper {
    gap: 6px;
  }

  .alphabet-list {
    gap: 5px;
  }

  .alphabet-button {
    min-width: 31px;
    height: 31px;

    padding: 0 6px;
  }

  .alphabet-all {
    padding: 0 10px;
  }
}


@media (max-width: 430px) {

  .analyses-intro h1 {
    font-size: 28px;
  }

  .analyses-intro p {
    font-size: 12px;
  }

  .analysis-search {
    height: 48px;
  }

  .analysis-item {
    min-height: 54px;

    padding: 12px 14px;

    font-size: 11px;
  }
}