/* Styles for Deluge Help Blog page */
:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --muted: #6b7280;
  --accent: #1f386b;
  --accent-2: #2a70b8;
}
* {
  box-sizing: border-box;
}
body {
  font-family: Inter, Segoe UI, Arial, sans-serif;
  margin: 0;
  background: var(--bg);
  color: #0f172a;
}
.container {
  max-width: 1100px;
  margin: 36px auto;
  padding: 24px;
}
.header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.logo {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
}
.title {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}
.subtitle {
  color: var(--muted);
  font-size: 13px;
}
.grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
}
.sidebar {
  position: sticky;
  top: 18px;
  align-self: start;
}
.search {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.search input {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #e6eef8;
}
.search input:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(42, 112, 184, 0.08);
}
.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.post-item {
  background: var(--card);
  border-radius: 8px;
  padding: 10px;
  border: 1px solid #e6eef8;
  cursor: pointer;
}
.post-item:focus {
  outline: none;
  box-shadow: 0 4px 10px rgba(31, 56, 107, 0.06);
  transform: translateY(-1px);
}
.post-item:hover {
  transform: translateY(-2px);
}
.post-item.active {
  border-left: 4px solid var(--accent-2);
  background: linear-gradient(90deg, #fbfdff, #ffffff);
  box-shadow: 0 6px 18px rgba(31, 56, 107, 0.06);
}
.post-item h4 {
  margin: 0;
  font-size: 14px;
  color: #0f172a;
}
.post-item p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.content {
  background: var(--card);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #e6eef8;
}
.posts-title {
  font-size: 13px;
  color: #374151;
  margin-bottom: 8px;
}
.loading-text {
  padding: 24px;
  color: var(--muted);
}
.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.post-meta .meta-left {
  display: flex;
  gap: 10px;
  align-items: center;
}
.post-meta .chip {
  background: #eef2ff;
  color: var(--accent);
  padding: 6px 10px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 12px;
}
.explanation {
  color: #374151;
  line-height: 1.6;
}
.actions {
  margin-top: 14px;
  display: flex;
  gap: 8px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 0;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}
.btn.ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid #e6eef8;
}
.code {
  background: #0b1220;
  color: #dbeafe;
  padding: 12px;
  border-radius: 8px;
  font-family: Consolas, monaco, monospace;
  white-space: pre-wrap;
  overflow: auto;
  max-height: 420px;
}
.code code,
.code pre {
  font-family: Consolas, Monaco, monospace;
  font-size: 13px;
}
.code {
  tab-size: 4;
  -webkit-font-smoothing: antialiased;
}
.small {
  font-size: 13px;
  color: var(--muted);
}
.footer {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}
.sidebar {
  max-height: calc(100vh - 160px);
  overflow: auto;
}
@media (max-width: 880px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
  }
  .sidebar {
    max-height: none;
  }
}
