/* Archive-specific overrides for static Discourse export */

/* ── Header ─────────────────────────────────────────────── */
#archive-header {
  background: #1f38c5;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

#archive-header a {
  color: #fff !important;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

#archive-header a:hover {
  opacity: 0.9;
}

#archive-header nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

#archive-header nav a {
  font-size: 14px;
  font-weight: 400;
  color: #fff !important;
  opacity: 0.85;
}

#archive-header nav a:hover {
  opacity: 1;
}

/* ── Banner ─────────────────────────────────────────────── */
#archive-banner {
  text-align: center;
  max-width: 1100px;
  margin: 20px auto;
  padding: 20px;
  background: #f2f3fc;
  font-size: 16px;
  font-family: Arial, sans-serif;
  line-height: 1.5;
  box-sizing: border-box;
  border-radius: 4px;
}

#archive-banner p {
  margin: 4px 0;
}

#archive-banner a {
  font-weight: bold;
  color: #1f38c5;
}

#archive-header .archive-badge {
  font-size: 11px;
  font-weight: 400;
  background: rgba(255,255,255,0.2);
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

#archive-header > a > img {
  height: 30px;
  width: auto;
}

/* ── Typography ─────────────────────────────────────────── */
body {
  font-family: Arial, sans-serif !important;
  color: #222 !important;
  background: #f8f8f8 !important;
  line-height: 1.5;
  margin: 0;
  padding: 0;
}

#main-outlet {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  background: #fff;
  min-height: 80vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Arial, sans-serif !important;
  color: #222;
}

#topic-title h1 a {
  color: #222;
  text-decoration: none;
  font-size: 1.8em;
  line-height: 1.2;
}

/* ── Links ──────────────────────────────────────────────── */
a {
  color: #1f38c5;
}

a:hover {
  color: #172a94;
}

/* ── Category badges ────────────────────────────────────── */
.badge-wrapper .badge-category-bg {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}

.badge-wrapper {
  text-decoration: none;
  font-size: 0.85em;
}

/* ── Posts ───────────────────────────────────────────────── */
.topic-body {
  padding: 15px 0;
  border-bottom: 1px solid #e9e9e9;
}

.topic-avatar {
  padding-right: 12px;
}

.topic-avatar img {
  border-radius: 50%;
  width: 45px;
  height: 45px;
}

.topic-meta-data {
  margin-bottom: 8px;
}

.topic-meta-data .creator a {
  font-weight: 700;
  color: #222;
  text-decoration: none;
}

.topic-meta-data .post-infos {
  color: #919191;
  font-size: 0.85em;
}

.cooked {
  font-size: 1em;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.cooked img {
  max-width: 100%;
  height: auto;
}

.cooked pre, .cooked code {
  background: #f8f8f8;
  border: 1px solid #e9e9e9;
  border-radius: 3px;
  font-size: 0.9em;
}

.cooked pre {
  padding: 12px;
  overflow-x: auto;
}

.cooked code {
  padding: 2px 5px;
}

.cooked pre code {
  border: none;
  padding: 0;
  background: none;
}

.cooked blockquote {
  border-left: 4px solid #e9e9e9;
  margin: 10px 0;
  padding: 8px 15px;
  color: #646464;
  background: #f8f8f8;
}

/* ── Topic list (category pages) ────────────────────────── */
.topic-list {
  width: 100%;
  border-collapse: collapse;
}

.topic-list td, .topic-list th {
  padding: 10px 8px;
  border-bottom: 1px solid #e9e9e9;
}

.topic-list .main-link a.title {
  font-size: 1.05em;
  font-weight: 400;
  color: #222;
  text-decoration: none;
}

.topic-list .main-link a.title:hover {
  color: #1f38c5;
}

.topic-list .posters a img {
  width: 25px;
  height: 25px;
  border-radius: 50%;
}

/* ── Breadcrumbs ────────────────────────────────────────── */
.topic-category a {
  text-decoration: none;
}

/* ── Onebox (link previews) ─────────────────────────────── */
.onebox {
  border: 1px solid #e9e9e9;
  border-radius: 4px;
  padding: 12px;
  margin: 10px 0;
  background: #fdfdfd;
}

/* ── Footer ─────────────────────────────────────────────── */
#archive-footer {
  text-align: center;
  padding: 30px 20px;
  font-size: 0.85em;
  color: #919191;
  font-family: Arial, sans-serif;
  border-top: 1px solid #e9e9e9;
  margin-top: 40px;
}

#archive-footer a {
  color: #1f38c5;
}

/* ── Misc ───────────────────────────────────────────────── */
.crawler-post-meta {
  color: #919191;
  font-size: 0.85em;
  margin-top: 8px;
}

.post-likes, .post-replies {
  color: #919191;
  font-size: 0.85em;
}

.dates .date, .post-date {
  color: #919191;
}

.crawler-linkback-list {
  list-style: none;
  padding: 0;
}

.crawler-linkback-list li {
  margin: 4px 0;
}

/* Hide Discourse elements replaced by our archive header */
noscript { display: none; }
body > header, #main-outlet > header { display: none !important; }
