
/* =========================================================
   BORNONEST — PREMIUM STANDALONE CATEGORY PAGES
   Additive styles only — does not modify the main homepage
========================================================= */

.bn-category-main {
  position: relative;
  isolation: isolate;
  min-height: 70vh;
  padding: 66px max(5%, calc((100% - 1200px) / 2)) 100px;
  color: #edf1ff;
}

.bn-category-main::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 50%;
  width: min(900px, 100%);
  height: 440px;
  transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(
    ellipse at top,
    rgba(248, 201, 94, .09),
    transparent 68%
  );
}

/* HERO */

.bn-category-hero {
  max-width: 850px;
  margin: 0 auto 58px;
  text-align: center;
}

.bn-back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 35px;
  padding: 10px 16px;
  border: 1px solid rgba(248, 201, 94, .2);
  border-radius: 30px;
  background: rgba(12, 25, 48, .65);
  color: #f8c95e;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: .25s ease;
}

.bn-back-link:hover {
  border-color: #f8c95e;
  background: rgba(248, 201, 94, .1);
  transform: translateY(-2px);
}

.bn-category-eyebrow {
  display: block;
  margin-bottom: 15px;
  color: #f8c95e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.bn-category-hero h1 {
  margin: 0 0 17px;
  color: #f5f7ff;
  font-family: Manrope, sans-serif;
  font-size: clamp(38px, 6vw, 66px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -2px;
}

.bn-category-hero p {
  max-width: 660px;
  margin: 0 auto;
  color: #aebbd3;
  font-size: 16px;
  line-height: 1.85;
}

/* CONTENT */

.bn-category-content {
  max-width: 1200px;
  margin: 0 auto;
}

/* TOOLBAR */

.bn-category-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  margin-bottom: 30px;
  padding-bottom: 23px;
  border-bottom: 1px solid rgba(174, 187, 211, .12);
}

.bn-category-toolbar h2 {
  margin: 0 0 8px;
  color: #f5f7ff;
  font-family: Manrope, sans-serif;
  font-size: clamp(21px, 3vw, 27px);
  font-weight: 800;
}

.bn-category-toolbar p {
  margin: 0;
  color: #9eacc5;
  font-size: 13px;
}

#categorySearch {
  width: min(100%, 330px);
  min-height: 48px;
  padding: 0 17px;
  border: 1px solid rgba(248, 201, 94, .22);
  border-radius: 13px;
  outline: none;
  background: rgba(12, 25, 48, .85);
  color: #edf1ff;
  font-family: inherit;
  font-size: 14px;
  transition: border-color .25s ease, box-shadow .25s ease;
}

#categorySearch::placeholder {
  color: #71809b;
}

#categorySearch:focus {
  border-color: #f8c95e;
  box-shadow: 0 0 0 4px rgba(248, 201, 94, .08);
}

/* TOOL GRID */

.bn-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 23px;
}

.bn-category-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 260px;
  flex-direction: column;
  padding: 25px;
  overflow: hidden;
  border: 1px solid rgba(153, 174, 211, .13);
  border-radius: 19px;
  background:
    linear-gradient(145deg, rgba(17, 37, 70, .98), rgba(7, 19, 41, .98));
  box-shadow: 0 14px 38px rgba(0, 0, 0, .16);
  transition:
    transform .28s ease,
    border-color .28s ease,
    box-shadow .28s ease;
}

.bn-category-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 25px;
  right: 25px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(248, 201, 94, .45),
    transparent
  );
  opacity: .5;
}

.bn-category-card:hover {
  transform: translateY(-6px);
  border-color: rgba(248, 201, 94, .48);
  box-shadow: 0 22px 48px rgba(0, 0, 0, .25);
}

/* TOOL ICON / IMAGE */

.bn-category-card-icon {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  place-items: center;
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid rgba(248, 201, 94, .17);
  border-radius: 16px;
  background: linear-gradient(
    145deg,
    rgba(248, 201, 94, .15),
    rgba(248, 201, 94, .045)
  );
  color: #f8c95e;
  font-size: 27px;
}

.bn-category-card-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* TOOL DETAILS */

.bn-tool-category {
  display: inline-block;
  margin-bottom: 5px;
  color: #f8c95e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.bn-category-card h3 {
  margin: 5px 0 10px;
  color: #f1f4ff;
  font-family: Manrope, sans-serif;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.bn-category-card p {
  margin: 0;
  color: #a8b6cf;
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.bn-category-card-actions {
  display: flex;
  align-items: center;
  margin-top: auto;
  padding-top: 24px;
}

/* BUTTON */

.bn-category-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: linear-gradient(135deg, #ffda7b, #e9ae3e);
  color: #101a2d;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease;
}

.bn-category-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(248, 201, 94, .2);
}

.bn-tool-unavailable {
  color: #91a0b9;
  font-size: 12px;
}

/* EMPTY / LOADING / ERROR */

.bn-category-empty,
.bn-category-loading,
.bn-category-error {
  padding: 55px 25px;
  border: 1px solid rgba(248, 201, 94, .16);
  border-radius: 20px;
  background: linear-gradient(145deg, #0d1d3a, #08152b);
  color: #aebbd3;
  text-align: center;
}

.bn-category-empty h2 {
  margin: 12px 0 10px;
  color: #f1f4ff;
  font-family: Manrope, sans-serif;
  font-size: 23px;
}

.bn-category-empty p {
  max-width: 500px;
  margin: 0 auto 22px;
  font-size: 14px;
  line-height: 1.8;
}

.bn-empty-icon {
  color: #f8c95e;
  font-size: 38px;
}

.bn-category-error {
  margin-top: 18px;
  border-color: rgba(255, 120, 120, .2);
  color: #ffb8b8;
  font-size: 14px;
}

/* TABLET */

@media (max-width: 950px) {
  .bn-category-main {
    padding-right: 5%;
    padding-left: 5%;
  }

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

  .bn-category-card {
    padding: 22px;
  }
}

/* MOBILE */

@media (max-width: 600px) {
  .bn-category-main {
    min-height: 65vh;
    padding: 38px 5% 65px;
  }

  .bn-category-hero {
    margin-bottom: 38px;
  }

  .bn-back-link {
    margin-bottom: 27px;
    font-size: 12px;
  }

  .bn-category-eyebrow {
    font-size: 10px;
    letter-spacing: 2.2px;
  }

  .bn-category-hero h1 {
    font-size: clamp(35px, 10vw, 48px);
    letter-spacing: -1.5px;
  }

  .bn-category-hero p {
    font-size: 14px;
    line-height: 1.8;
  }

  .bn-category-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 17px;
    margin-bottom: 22px;
    padding-bottom: 20px;
  }

  .bn-category-toolbar h2 {
    font-size: 22px;
  }

  #categorySearch {
    width: 100%;
    min-height: 47px;
    box-sizing: border-box;
  }

  .bn-category-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .bn-category-card {
    min-height: 0;
    padding: 21px;
    border-radius: 16px;
  }

  .bn-category-card-icon {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
    margin-bottom: 16px;
  }

  .bn-category-card h3 {
    font-size: 18px;
  }

  .bn-category-card p {
    font-size: 13px;
  }

  .bn-category-card-actions {
    padding-top: 19px;
  }

  .bn-category-button {
    min-height: 41px;
    padding: 0 16px;
  }

  .bn-category-empty,
  .bn-category-loading,
  .bn-category-error {
    padding: 38px 18px;
  }
}

/* SMALL PHONES */

@media (max-width: 360px) {
  .bn-category-main {
    padding-right: 4%;
    padding-left: 4%;
  }

  .bn-category-card {
    padding: 18px;
  }

  .bn-category-hero h1 {
    font-size: 34px;
  }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
  .bn-category-card,
  .bn-category-button,
  .bn-back-link {
    transition: none;
  }

  .bn-category-card:hover,
  .bn-category-button:hover,
  .bn-back-link:hover {
    transform: none;
  }
}
