/*
 * Module detail & index pages — Trobz × OCA theme
 * Depends on /search/style.css for :root CSS variables and base resets.
 */

/* ---- card header (breadcrumb bar) ---- */
.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
}

/* ---- breadcrumb ---- */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-dim);
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  align-items: center;
}
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-h); }
.breadcrumb-sep { opacity: 0.45; margin: 0 0.1rem; }
.breadcrumb-current { color: var(--text); font-weight: 600; }

/* ---- page title block (title + GitHub button) ---- */
.title-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
h1.title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  word-break: break-word;
}

/* ---- content sections (purpose / features) ---- */
.section {
  border-left: 3px solid var(--accent);
  padding: 0.65rem 0.9rem;
  margin-bottom: 0.9rem;
  background: var(--bg-card);
  border-radius: 0 6px 6px 0;
}
.section-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.purpose-text {
  font-size: 0.92rem;
  color: var(--text-sub);
  line-height: 1.55;
}

/* ---- features list ---- */
.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.features-list li {
  font-size: 0.875rem;
  color: var(--text-sub);
  line-height: 1.5;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
}
.features-list li:last-child { border-bottom: none; }
.feature-model { color: var(--accent); font-weight: 600; }

/* ---- nav link (fixed top-right) ---- */
.nav-link {
  position: fixed;
  top: 1rem;
  right: 1.5rem;
  font-size: 0.82rem;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  z-index: 10;
}
.nav-link:hover { color: var(--accent-h); text-decoration: underline; }

/* ---- GitHub button ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.15s;
}
.btn:hover { background: var(--accent-h); }

/* ---- index pages: module/version list ---- */
.module-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.module-list li { border-bottom: 1px solid var(--border); }
.module-list li:last-child { border-bottom: none; }
.module-list a {
  display: block;
  padding: 0.5rem 0.9rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}
.module-list a:hover { color: var(--accent); }

/* ---- footer ---- */
.page-footer {
  margin-top: 2rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
}
.page-footer a { color: var(--accent); text-decoration: none; }
.page-footer a:hover { color: var(--accent-h); }
