
/* =========================================
   SECTION 7: CUSTOM VS TEMPLATE COMPARISON
========================================= */

#search-types {
  position: relative;
  overflow: hidden;
}

/* Section heading */
#search-types .section-head {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: end;
  gap: 48px;
  margin-bottom: 42px;
}

#search-types .section-head__main {
  min-width: 0;
}

#search-types .section-head__side {
  max-width: 560px;
  justify-self: end;
}

#search-types .section-head__side p {
  margin: 0;
  line-height: 1.75;
  opacity: .76;
}

/* Comparison container */
#search-types .types-comparison {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255,255,255,.025);
}

/* Option overview */
#search-types .types-comparison__intro {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.025);
}

#search-types .types-option {
  display: flex;
  align-items: center;
  gap: 17px;
  min-width: 0;
}

#search-types .types-option__icon {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(4,234,134,.35);
  border-radius: 15px;
  color: var(--green);
  background: rgba(4,234,134,.07);
}

#search-types .types-option__icon svg {
  width: 25px;
  height: 25px;
}

#search-types .types-option--template .types-option__icon {
  color: var(--green);
  border-color: rgba(4,234,134,.35);
  background: rgba(4,234,134,.07);
}

#search-types .types-option__label {
  display: block;
  margin-bottom: 5px;
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

#search-types .types-option--template .types-option__label {
  color: var(--green);
  opacity: 1;
}

#search-types .types-option h3 {
  margin: 0 0 5px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 650;
  color: #fff;
}

#search-types .types-option p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  opacity: .65;
}

#search-types .types-vs {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .06em;
  opacity: .65;
}

/* Comparison table */
#search-types .types-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

#search-types .types-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  text-align: left;
}

#search-types .types-table th,
#search-types .types-table td {
  padding: 19px 25px;
  border-bottom: 1px solid rgba(255,255,255,.09);
  vertical-align: middle;
}

#search-types .types-table thead th {
  padding-top: 18px;
  padding-bottom: 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .025em;
  background: rgba(255,255,255,.035);
}

#search-types .types-table thead th:first-child {
  width: 23%;
  opacity: .6;
}

#search-types .types-table thead th:nth-child(2) {
  color: #04ea86;
  background: rgba(4,234,134,.055);
}

#search-types .types-table tbody th {
  width: 23%;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

#search-types .types-table tbody td {
  width: 38.5%;
  font-size: 13px;
  line-height: 1.6;
  opacity: .78;
}

#search-types .types-table tbody td:nth-child(2) {
  background: rgba(4,234,134,.035);
  opacity: 1;
}

#search-types .types-table tbody tr:last-child th,
#search-types .types-table tbody tr:last-child td {
  border-bottom: 0;
}

#search-types .types-table tbody tr {
  transition: background .2s ease;
}

#search-types .types-table tbody tr:hover {
  background: rgba(255,255,255,.035);
}

#search-types .types-table__heading {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

#search-types .types-table__dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #04ea86;
  box-shadow: 0 0 10px rgba(4,234,134,.35);
}

#search-types .types-table__dot--muted {
  background: currentColor;
  opacity: .45;
  box-shadow: none;
}

#search-types .types-table__cell-label {
  display: none;
}

/* Closing note */
#search-types .ai-foot {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 24px;
  padding: 22px 25px;
  border: 1px solid rgba(4,234,134,.2);
  border-radius: 16px;
  background: rgba(4,234,134,.045);
}

#search-types .ai-foot__icon {
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #04ea86;
  background: rgba(4,234,134,.1);
}

#search-types .ai-foot__icon svg {
  width: 19px;
  height: 19px;
}

#search-types .ai-foot p {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  opacity: .8;
}

/* Tablet */
@media (max-width: 900px) {
  #search-types .section-head {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  #search-types .section-head__side {
    justify-self: start;
    max-width: 680px;
  }

  #search-types .types-comparison__intro {
    padding: 24px;
    gap: 15px;
  }

  #search-types .types-table th,
  #search-types .types-table td {
    padding: 17px 19px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  #search-types .types-comparison {
    border-radius: 16px;
  }

  #search-types .types-comparison__intro {
    grid-template-columns: 1fr;
    gap: 17px;
    padding: 21px 18px;
  }

  #search-types .types-option {
    gap: 13px;
  }

  #search-types .types-option__icon {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    border-radius: 12px;
  }

  #search-types .types-option h3 {
    font-size: 16px;
  }

  #search-types .types-vs {
    width: 30px;
    height: 30px;
    margin-left: 8px;
    font-size: 9px;
  }

  #search-types .types-table-wrap {
    overflow: visible;
  }

  #search-types .types-table,
  #search-types .types-table tbody,
  #search-types .types-table tr,
  #search-types .types-table td,
  #search-types .types-table th {
    display: block;
    width: 100%;
  }

  #search-types .types-table {
    min-width: 0;
  }

  #search-types .types-table thead {
    display: none;
  }

  #search-types .types-table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }

  #search-types .types-table tbody tr:last-child {
    border-bottom: 0;
  }

  #search-types .types-table tbody th {
    grid-column: 1 / -1;
    padding: 16px 17px 10px;
    border: 0;
    font-size: 13px;
    white-space: normal;
  }

  #search-types .types-table tbody td {
    padding: 10px 17px 17px;
    border: 0;
    font-size: 12px;
    line-height: 1.6;
  }

  #search-types .types-table tbody td:nth-child(2) {
    background: rgba(4,234,134,.045);
  }

  #search-types .types-table__cell-label {
    display: block;
    margin-bottom: 6px;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .07em;
    line-height: 1.4;
    text-transform: uppercase;
    color: #04ea86;
  }

  #search-types .types-table tbody td:nth-child(3) .types-table__cell-label {
    color: inherit;
    opacity: .6;
  }

  #search-types .ai-foot {
    gap: 12px;
    padding: 17px;
    border-radius: 13px;
  }

  #search-types .ai-foot p {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #search-types .types-table tbody tr {
    transition: none;
  }
}
