/* ==========================================================================
   MY WEIZEROUTER · INTEGRATION HUB (DEVELOPER TOOLS & APPS)
   ========================================================================== */

.ih-hub {
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  padding: 0 0 64px;
  color: var(--text-main);
  font-family: var(--font);
}

.ih-heading {
  padding: 24px 0 28px;
  border-bottom: 1px solid var(--border-subtle);
}

.ih-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.28);
  color: var(--cyan);
  font: 700 10px var(--mono);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.ih-heading h1 {
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin: 0 0 10px;
  background: linear-gradient(135deg, #ffffff 40%, #cce2f5 75%, #8cb3d6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ih-heading p {
  font-size: clamp(14px, 1.2vw, 15px);
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0;
  max-width: 680px;
}

/* Endpoint Bar */
.ih-endpoint {
  margin: 28px 0;
  padding: 22px 26px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(10, 18, 28, 0.8) 0%, rgba(5, 10, 16, 0.9) 100%);
  border: 1px solid var(--border-cyan);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.ih-endpoint code {
  font: 700 16px var(--mono);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  background: #060c14;
  border: 1px solid rgba(0, 242, 254, 0.3);
  display: inline-block;
  margin-top: 6px;
}

#ih-copy-base, #ih-copy-model {
  font: 600 12px var(--mono);
  padding: 11px 18px;
  border-radius: 10px;
  background: #112030;
  border: 1px solid var(--border-cyan);
  color: var(--cyan-bright);
  cursor: pointer;
  transition: all 0.2s ease;
}

#ih-copy-base:hover, #ih-copy-model:hover {
  background: #172c44;
  box-shadow: 0 4px 14px rgba(0, 242, 254, 0.25);
}

/* Protocols Cards */
.ih-protocols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.ih-protocols article {
  padding: 24px;
  border-radius: 18px;
  background: rgba(11, 17, 27, 0.7);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ih-protocols article:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
}

.ih-protocols article span {
  font: 700 10px var(--mono);
  color: var(--gold);
  letter-spacing: 1.5px;
}

.ih-protocols article h2 {
  font-size: 19px;
  font-weight: 700;
  margin: 8px 0;
}

.ih-protocols article code {
  font: 600 12px var(--mono);
  color: var(--cyan-bright);
  padding: 6px 10px;
  border-radius: 6px;
  background: #060b12;
  display: inline-block;
  margin-bottom: 10px;
}

.ih-protocols article p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
  margin: 0;
}

/* Controls Bar (Model Picker) */
.ih-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 16px;
  background: rgba(14, 22, 34, 0.75);
  border: 1px solid var(--border-subtle);
  margin-bottom: 32px;
}

.ih-controls h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px;
}

.ih-controls p {
  font-size: 12px;
  color: var(--text-dim);
  margin: 0;
}

.ih-controls label {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 12px var(--mono);
  color: var(--text-dim);
}

.ih-controls select {
  font: 600 12px var(--mono);
  padding: 9px 14px;
  border-radius: 10px;
  background: #080f19;
  border: 1px solid var(--border-cyan);
  color: #fff;
  cursor: pointer;
}

/* Catalog Heading & Search */
.ih-catalog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}

.ih-catalog-heading h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

#ih-search {
  min-width: 280px;
  padding: 10px 16px;
  border-radius: 11px;
  background: #080e18;
  border: 1px solid var(--border-subtle);
  color: #fff;
  font: 13px var(--font);
}

#ih-search:focus {
  outline: none;
  border-color: var(--cyan);
}

/* Apps Grid */
.ih-apps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}

.ih-app {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(11, 17, 27, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  color: #fff;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ih-app:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(18, 28, 42, 0.85);
}

.ih-app[aria-pressed="true"] {
  border-color: var(--border-cyan);
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.15) 0%, rgba(14, 25, 38, 0.9) 100%);
  box-shadow: 0 4px 18px rgba(0, 242, 254, 0.2);
}

.ih-app-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}

.ih-app-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.ih-app strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.ih-app small {
  font: 500 11px var(--mono);
  color: var(--text-dim);
}

/* Guide Drawer */
.ih-guide {
  padding: 28px;
  border-radius: 20px;
  background: #091019;
  border: 1px solid var(--border-cyan);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.4);
  margin-bottom: 36px;
}

.ih-guide h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 6px 0 18px;
}

.ih-guide ol {
  padding-left: 20px;
  margin: 0 0 20px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.8;
}

.ih-codebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #060b12;
  border-radius: 10px 10px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: none;
  font: 600 11px var(--mono);
  color: var(--text-muted);
}

.ih-codebar button {
  font: 600 11px var(--mono);
  padding: 5px 12px;
  border-radius: 6px;
  background: #111f30;
  border: 1px solid var(--border-cyan);
  color: var(--cyan);
  cursor: pointer;
}

.ih-guide pre {
  margin: 0 0 16px;
  padding: 18px;
  border-radius: 0 0 10px 10px;
  background: #04080e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
}

.ih-guide code {
  font: 500 13px var(--mono);
  color: #a5f3fc;
  line-height: 1.6;
}

.ih-guide a {
  color: var(--cyan);
  font: 600 13px var(--mono);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 12px;
}

.ih-guide a:hover {
  text-decoration: underline;
}

.ih-note {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Troubleshooting Details Accordion */
.ih-troubleshoot {
  margin-top: 40px;
  padding: 28px;
  border-radius: 20px;
  background: rgba(11, 17, 27, 0.7);
  border: 1px solid var(--border-subtle);
}

.ih-troubleshoot h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 16px;
}

.ih-troubleshoot details {
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 8px;
}

.ih-troubleshoot summary {
  font: 600 13px var(--mono);
  color: var(--text-main);
  cursor: pointer;
}

.ih-troubleshoot p {
  font-size: 13px;
  color: var(--text-dim);
  margin: 10px 0 0;
  line-height: 1.6;
}

.ih-troubleshoot a {
  display: inline-block;
  margin-top: 14px;
  font: 600 12px var(--mono);
  color: var(--gold-bright);
  text-decoration: none;
}

@media (max-width: 768px) {
  .ih-protocols {
    grid-template-columns: 1fr;
  }
  .ih-apps {
    grid-template-columns: repeat(2, 1fr);
  }
}
