/* =====================================================
   Handbook Catalog — Scoped Styles
   All classes prefixed with .hb- to avoid collisions
   ===================================================== */

/* ---- Category tab pills ---- */
.hb-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 10px;
  scrollbar-width: none;
}
.hb-tabs::-webkit-scrollbar { display: none; }

.hb-tab {
  flex-shrink: 0;
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 10px;
  font-family: 'Orbitron', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(16, 24, 38, 0.85);
  border: 1.5px solid #223047;
  color: rgba(200, 220, 240, 0.55);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, box-shadow 0.15s;
  line-height: 1;
}
.hb-tab:hover {
  border-color: rgba(46, 190, 204, 0.5);
  color: rgba(200, 220, 240, 0.8);
}
.hb-tab.is-active {
  border-color: #2EBECC;
  color: #b7eff5;
  box-shadow: 0 0 8px rgba(46, 190, 204, 0.3);
  background: rgba(46, 190, 204, 0.07);
}

/* ---- 2-column card grid ---- */
.hb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hb-card {
  background: rgba(16, 24, 38, 0.85);
  border: 1.5px solid #1e2d42;
  border-radius: 12px;
  padding: 14px 10px 12px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.hb-card:hover,
.hb-card:focus-visible {
  border-color: #2EBECC;
  box-shadow: 0 0 12px rgba(46, 190, 204, 0.2);
  background: rgba(20, 30, 48, 0.9);
  outline: none;
}
.hb-card:active {
  background: rgba(46, 190, 204, 0.06);
}

.hb-card__icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.hb-card__title {
  font-family: 'Orbitron', Arial, sans-serif;
  font-size: 10px;
  text-transform: uppercase;
  color: #b7eff5;
  letter-spacing: 0.04em;
  margin-bottom: 5px;
  line-height: 1.3;
}

.hb-card__teaser {
  font-size: 11px;
  color: rgba(200, 220, 240, 0.6);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- Demo strip (looping video or GIF) ---- */
.hb-demo {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
  background: #060e1a;
  border: 1.5px solid #1e2d42;
}
.hb-demo__media {
  display: block;
  width: 100%;
  height: auto;
  max-height: 185px;
  object-fit: cover;
}

/* ---- DEMO badge on grid cards ---- */
.hb-card__demo-badge {
  display: inline-block;
  font-family: 'Orbitron', Arial, sans-serif;
  font-size: 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #D325C0;
  border: 1px solid rgba(211, 37, 192, 0.5);
  border-radius: 8px;
  padding: 2px 6px;
  margin-top: 5px;
  line-height: 1;
}

/* ---- Detail view ---- */
.hb-detail {
  display: flex;
  flex-direction: column;
}

.hb-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #2EBECC;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 0 12px 0;
  font-family: 'Orbitron', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
  flex-shrink: 0;
}
.hb-back-btn:hover { color: #6ee8f0; }
.hb-back-btn svg { flex-shrink: 0; }

.hb-detail__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.hb-detail__header-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.hb-detail__title {
  font-family: 'Orbitron', Arial, sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  color: #b7eff5;
  letter-spacing: 0.05em;
  line-height: 1.3;
  text-shadow: 0 0 8px rgba(46, 190, 204, 0.35);
}

.hb-detail__badge {
  display: inline-block;
  font-family: 'Orbitron', Arial, sans-serif;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(46, 190, 204, 0.8);
  border: 1px solid rgba(46, 190, 204, 0.35);
  border-radius: 10px;
  padding: 2px 8px;
  margin-bottom: 12px;
}

.hb-detail__desc {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(210, 230, 245, 0.85);
  white-space: pre-line;
  margin: 0 0 14px 0;
}

.hb-detail__tips-title {
  font-family: 'Orbitron', Arial, sans-serif;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #2EBECC;
  margin-bottom: 8px;
}

.hb-detail__tip {
  font-size: 12px;
  color: rgba(200, 220, 240, 0.75);
  line-height: 1.5;
  padding-left: 10px;
  border-left: 2px solid #2EBECC;
  margin-bottom: 7px;
}

.hb-detail__stats {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-top: 4px;
}
.hb-detail__stats td {
  padding: 6px 8px;
  border-bottom: 1px solid #1a2538;
  vertical-align: middle;
}
.hb-detail__stats tr:last-child td {
  border-bottom: none;
}
.hb-detail__stats td:first-child {
  color: rgba(200, 220, 240, 0.5);
}
.hb-detail__stats td:last-child {
  color: #b7eff5;
  font-weight: 600;
  text-align: right;
}
