:root {
  --bg: #0f1115;
  --card: #151924;
  --text: #e6e9ee;
  --muted: #aab1bf;
  --brand: #32e875; /* bright green you liked */
  --accent: #5ea0ff;
  --border: #242b3a;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  padding-bottom: 60px;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 960px) {
  .container { grid-template-columns: 3fr 1fr; }
}

/* ================= HEADER ================= */
.site-header {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 16px;
  padding: 8px 24px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(15,17,21,0.95);
  backdrop-filter: blur(6px);
  z-index: 10;
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.site-header img.logo {
  display: block;
  height: 84px;   /* adjust logo size here */
  width: auto;
}

/* NAVIGATION */
.site-header nav.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
}

.site-header nav.site-nav a {
  color: var(--text);
  font-size: 16px;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.2s ease;
  padding: 6px 10px;
}

.site-header nav.site-nav a:hover {
  opacity: 1;
  color: var(--accent);
}

/* ================= CONTENT ================= */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}
.post-list li { margin: 12px 0; }
.post-meta { color: var(--muted); font-size: 14px; }

.sidebar .widget { margin-bottom: 16px; }
.widget h3 {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ad {
  background: #0c101a;
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.ad::before {
  content:"Ad spot";
  display:block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom:6px;
}

.content img { max-width:100%; border-radius: 10px; }
blockquote {
  margin: 0;
  padding: 12px 16px;
  background: #101521;
  border-left: 3px solid var(--brand);
  border-radius: 8px;
  color: var(--muted);
}
code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
pre {
  background: #101521;
  padding: 12px;
  border-radius: 10px;
  overflow: auto;
}

/* ================= FOOTER ================= */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(15,17,21,0.95); /* same style as header */
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 10px 0;
  z-index: 10; /* keeps it above other content */
}
footer .footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .site-header img.logo { height: 48px; }
  .site-header nav.site-nav { gap: 16px; }
}
@media (max-width: 700px) {
  .site-header img.logo { height: 42px; }
  /* .site-header nav.site-nav { display:none; } */
}

/* Pull content up slightly under the header */
.container { padding-top: 8px; }
.content h1:first-child { margin-top: 0; }

/* One-column layout (no sidebar) */
.container {
  max-width: 980px;               /* narrower, centered reading width */
  grid-template-columns: 1fr;     /* single column */
}

/* Give the main column full width */
.content.wide .card { margin: 0 auto; }

/* Optional: tighten top space a bit */
.container { padding-top: 8px; }

#search-box input::placeholder { color: var(--muted); }
#results .post-list li { margin: 14px 0; }

/* Basic ad styling */
.ad { 
  background: #0f1115; 
  border: 1px dashed var(--border); 
  border-radius: 12px; 
  padding: 12px; 
  text-align: center; 
  color: var(--muted); 
  font-size: 14px;
  margin: 16px 0;
}

/* Hide sidebar ads on small screens */
@media (max-width: 900px){
  .ad-sidebar { display: none !important; }
}
