/* ============================================
   BitDevs Addis Ababa — Nairobi-style theme
   ============================================ */

/* --- Variables --- */
:root {
  --bg-color: #000000;
  --text-main: #C8C8C8;
  --text-muted: #888888;
  --accent-primary: #FF8C00; /* Orange — matches BitDevs NBO */
  --accent-hover: #FFB347;
  --font-mono: "Courier New", Courier, monospace;
  --separator-char: "=";
}

[data-theme="light"] {
  --bg-color: #F5F5F0;
  --text-main: #1C1C1C;
  --text-muted: #555555;
  --accent-primary: #CC6600;
  --accent-hover: #FF8C00;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s, color 0.3s;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: var(--accent-hover);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-family: var(--font-mono);
  font-weight: bold;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 30px 20px;
}

/* --- Header --- */
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}

.site-title {
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: 1px;
}

.site-title a {
  color: var(--accent-primary);
  text-decoration: none;
}

.site-title a:hover {
  text-decoration: none;
  opacity: 0.85;
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 0.95em;
}

.nav-links a {
  color: var(--text-main);
}

.nav-links a:hover {
  color: var(--accent-primary);
  text-decoration: none;
}

/* Theme Toggle — small circle button like NBO's sun icon */
.theme-toggle {
  background: none;
  border: 2px solid var(--accent-primary);
  color: var(--accent-primary);
  cursor: pointer;
  padding: 2px 6px;
  font-family: inherit;
  font-size: 0.9em;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, color 0.2s;
}

.theme-toggle:hover {
  background: var(--accent-primary);
  color: var(--bg-color);
}

/* --- Separator (ascii line like NBO) --- */
.separator {
  border: none;
  color: var(--accent-primary);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: -1px;
  text-align: center;
  margin: 20px 0;
  overflow: hidden;
  white-space: nowrap;
}

.separator::before {
  content: "============================================================================================================================";
  color: var(--accent-primary);
  opacity: 0.7;
}

/* --- Intro paragraph --- */
.intro {
  margin: 10px 0 20px 0;
  font-size: 0.95em;
  line-height: 1.7;
}

/* --- Events section --- */
.events-section {
  margin: 10px 0 30px 0;
}

.events-section h2 {
  font-size: 1.15rem;
  margin-bottom: 15px;
  color: var(--text-main);
}

/* --- Posts List --- */
.posts-list {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
}

.post-item {
  margin-bottom: 8px;
  line-height: 1.5;
  display: flex;
  align-items: baseline;
  gap: 0;
}

.post-date {
  color: var(--text-muted);
  display: inline-block;
  min-width: 130px;
  flex-shrink: 0;
}

.post-separator {
  color: var(--text-muted);
  margin: 0 8px;
}

.post-title {
  color: var(--accent-primary);
}

.post-title:hover {
  color: var(--accent-hover);
}

/* See all events link */
.see-all {
  display: inline-block;
  margin-top: 5px;
  color: var(--accent-primary);
  font-size: 0.9em;
}

/* --- Post / Event page content --- */
main h1 {
  color: var(--accent-primary);
  font-size: 1.4rem;
  margin-top: 0.5em;
}

main h2 {
  color: var(--accent-primary);
  font-size: 1.1rem;
  border-bottom: 1px dashed var(--text-muted);
  padding-bottom: 4px;
}

main ul, main ol {
  padding-left: 20px;
}

main li {
  margin-bottom: 4px;
}

main strong {
  color: var(--accent-hover);
}

/* --- Footer --- */
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9em;
  color: var(--text-muted);
}

.footer-inner a {
  color: var(--accent-primary);
}

.rss-link {
  color: var(--accent-primary);
}

/* --- All Events page --- */
main > h2 {
  font-size: 1.15rem;
  color: var(--text-main);
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .nav-links {
    gap: 12px;
    flex-wrap: wrap;
  }

  .post-item {
    flex-direction: column;
    gap: 2px;
  }

  .post-date {
    min-width: unset;
  }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
