/* ===================================================
   ACTAtek Knowledge Center — Additional Pages CSS
=================================================== */

/* ── Detail Page Layout ───────────────────────────── */
.page-hero {
  padding: calc(var(--topbar-h) + 60px) 0 60px;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg-base) 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero-inner {
  max-width: 900px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--accent-primary); }
.breadcrumb-sep { color: var(--text-muted); }

.page-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.page-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

.detail-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  padding: 64px 0;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: calc(var(--topbar-h) + 24px);
  height: fit-content;
}
.sidebar-nav {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px;
}
.sidebar-nav-item {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.sidebar-nav-item:hover, .sidebar-nav-item.active {
  background: rgba(0,180,216,0.1);
  color: var(--accent-primary);
}

/* Detail content */
.detail-content {
  min-width: 0;
}
.detail-section {
  margin-bottom: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}
.detail-section:last-child {
  border-bottom: none;
}
.detail-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  scroll-margin-top: calc(var(--topbar-h) + 24px);
}
.detail-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 24px 0 12px;
  color: var(--accent-cyan);
}
.detail-section p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 14px;
}

/* Spec table */
.spec-table-wrap { overflow-x: auto; }
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.spec-table th {
  background: var(--bg-card);
  padding: 12px 16px;
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.spec-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: top;
}
.spec-table td:first-child {
  color: var(--text-primary);
  font-weight: 600;
  white-space: nowrap;
}
.spec-table td:nth-child(2) { color: var(--accent-cyan); font-size: 0.82rem; }
.spec-table tr:last-child td { border-bottom: none; }
.spec-table tr:hover td { background: rgba(255,255,255,0.02); }

/* Alert boxes */
.alert-box {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin: 20px 0;
  font-size: 0.85rem;
  line-height: 1.6;
}
.alert-box svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.alert-info {
  background: rgba(0,180,216,0.06);
  border: 1px solid rgba(0,180,216,0.2);
  color: var(--accent-cyan);
}
.alert-warning {
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.2);
  color: var(--accent-amber);
}
