/* HB Outliners - Bridge Page Specific Styles
   Layered on top of /css/style.css (shared design tokens) */

/* ---- Bridge layout ---- */

.bridge-main {
  padding: 96px 0 60px;
  min-height: 100vh;
}

.bridge-hero {
  text-align: center;
  margin-bottom: 56px;
}

.bridge-hero h1 {
  font-family: 'Orbitron', monospace;
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 900;
  letter-spacing: 4px;
  margin-bottom: 12px;
  text-shadow: 0 0 30px rgba(200, 168, 85, 0.25);
}

.bridge-hero p {
  max-width: 640px;
  margin: 0 auto 24px;
  color: var(--text-dim);
  font-size: 17px;
  line-height: 1.7;
}

.network-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(200, 168, 85, 0.08);
  border: 1px solid var(--gold-dark);
  border-radius: 999px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.network-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 8px #4ade80;
}

/* ---- Step indicator ---- */

.step-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.step-indicator .step-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-dim);
}

.step-indicator .step-pill .num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--bg-dark);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-family: 'Orbitron', monospace;
}

.step-indicator .arrow {
  color: var(--gold-dark);
  font-size: 18px;
}

/* ---- Cards / sections ---- */

.bridge-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  margin-bottom: 24px;
  transition: border-color 0.3s;
}

.bridge-section h2 {
  font-family: 'Orbitron', monospace;
  font-size: 18px;
  color: var(--gold);
  margin-bottom: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.bridge-section .lead {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.7;
}

/* ---- Wallet status row ---- */

.wallet-status-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.status-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}

.status-card:hover {
  border-color: var(--gold-dark);
  transform: translateY(-2px);
}

.status-card .label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.status-card .value {
  font-family: 'Orbitron', monospace;
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  word-break: break-word;
}

.status-card .value.small {
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

/* ---- Bridge tabs ---- */

.bridge-tabs {
  display: flex;
  gap: 8px;
  background: var(--bg-card);
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 24px;
  max-width: 480px;
}

.bridge-tab {
  flex: 1;
  padding: 12px 20px;
  background: transparent;
  color: var(--text-dim);
  border: none;
  border-radius: 8px;
  font-family: 'Orbitron', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.25s;
  text-transform: uppercase;
}

.bridge-tab:hover {
  color: var(--gold);
}

.bridge-tab.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-dark);
  box-shadow: 0 4px 16px rgba(200, 168, 85, 0.25);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---- Flow steps (numbered) ---- */

.flow-step {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.flow-step:last-child { border-bottom: none; }

.flow-step .num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-dark);
  font-family: 'Orbitron', monospace;
  font-size: 16px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-step .body {
  flex: 1;
  min-width: 0;
}

.flow-step h3 {
  font-family: 'Orbitron', monospace;
  font-size: 15px;
  color: var(--gold);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.flow-step p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 10px;
}

.flow-step code {
  display: inline-block;
  background: rgba(200, 168, 85, 0.08);
  border: 1px solid var(--gold-dark);
  color: var(--gold);
  padding: 3px 10px;
  border-radius: 4px;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 13px;
}

.flow-step .step-action {
  margin-top: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* ---- Buttons (extends .btn from style.css) ---- */

.btn-bridge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-dark);
  transition: all 0.25s;
}

.btn-bridge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 168, 85, 0.35);
}

.btn-bridge:disabled {
  background: #2a2a3a;
  color: #555;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-bridge.success {
  background: linear-gradient(135deg, #4ade80, #22a84e);
  color: var(--bg-dark);
}

.connect-btn-nav {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-dark);
  border: none;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  transition: all 0.25s;
}

.connect-btn-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(200, 168, 85, 0.3);
}

.connect-btn-nav.connected {
  background: var(--bg-card);
  color: #4ade80;
  border: 1px solid #4ade80;
}

/* ---- Status pills ---- */

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.status-pill.approved {
  background: rgba(74, 222, 128, 0.12);
  color: #4ade80;
  border: 1px solid #2a6a3a;
}

.status-pill.not-approved {
  background: rgba(231, 76, 60, 0.12);
  color: #e74c3c;
  border: 1px solid #6a2a2a;
}

.status-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ---- Status messages ---- */

.status-msg {
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 12px;
  font-size: 13px;
  display: none;
  line-height: 1.6;
}

.status-msg.success {
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid #2a6a3a;
  color: #4ade80;
  display: block;
}

.status-msg.error {
  background: rgba(231, 76, 60, 0.08);
  border: 1px solid #6a2a2a;
  color: #e74c3c;
  display: block;
}

.status-msg.info {
  background: rgba(96, 165, 250, 0.08);
  border: 1px solid #2a4a6a;
  color: #60a5fa;
  display: block;
}

/* ---- What is the Bridge cards ---- */

.explainer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.explainer-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}

.explainer-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.explainer-card .icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.explainer-card h3 {
  font-family: 'Orbitron', monospace;
  font-size: 16px;
  color: var(--gold);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.explainer-card p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.7;
}

/* ---- Pending NFTs list ---- */

.pending-nft-card {
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  transition: border-color 0.3s;
}

.pending-nft-card:hover {
  border-color: var(--gold-dark);
}

.pending-nft-card .item-name {
  font-family: 'Orbitron', monospace;
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
}

.pending-nft-card .item-meta {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
}

.pending-nft-card .item-id {
  font-size: 10px;
  color: #555;
  margin-top: 2px;
  font-family: 'Consolas', monospace;
}

/* ---- FAQ ---- */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item[open] {
  border-color: var(--gold-dark);
}

.faq-item summary {
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary:hover { color: var(--gold); }

.faq-item summary::after {
  content: '+';
  font-family: 'Orbitron', monospace;
  font-size: 22px;
  color: var(--gold);
  font-weight: 400;
  transition: transform 0.3s;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item .answer {
  padding: 0 22px 20px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.8;
}

.faq-item .answer code {
  background: rgba(200, 168, 85, 0.08);
  border: 1px solid var(--gold-dark);
  color: var(--gold);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}

/* ---- Contracts panel ---- */

.contracts-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contract-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: 8px;
  flex-wrap: wrap;
  gap: 12px;
}

.contract-row .label {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.contract-row .addr-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.copy-addr {
  font-family: 'Consolas', monospace;
  font-size: 13px;
  color: var(--gold);
  text-decoration: none;
}

.copy-addr:hover {
  text-decoration: underline;
}

.copy-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}

.copy-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.copy-btn.copied {
  border-color: #4ade80;
  color: #4ade80;
}

.contract-balance-row {
  background: rgba(200, 168, 85, 0.05);
  border: 1px dashed var(--gold-dark);
}

/* ---- Spinner ---- */

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0, 0, 0, 0.25);
  border-top-color: var(--bg-dark);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Bridge container override ---- */

.bridge-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Responsive ---- */

@media (max-width: 600px) {
  .bridge-main { padding: 84px 0 40px; }
  .bridge-section { padding: 24px 18px; }
  .bridge-tabs { max-width: 100%; }
  .bridge-tab { font-size: 12px; padding: 10px 12px; }
  .step-indicator .step-pill { font-size: 12px; padding: 8px 14px; }
  .step-indicator .arrow { display: none; }
  .flow-step { gap: 14px; }
  .flow-step .num { width: 32px; height: 32px; font-size: 14px; }
  .pending-nft-card { flex-direction: column; align-items: flex-start; }
  .contract-row { flex-direction: column; align-items: flex-start; }
}
