/* content.css — Shared styles for blog, about, and support pages */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #1a1a2e;
  color: #e0e0e0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  background: #16213e;
  border-bottom: 1px solid #0f3460;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
}

.site-header .logo {
  color: #e0e0e0;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-header .logo span {
  color: #e94560;
}

.site-header nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.site-header nav a {
  color: #8899aa;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}

.site-header nav a:hover,
.site-header nav a[aria-current] {
  color: #e0e0e0;
}

/* Hamburger button — hidden on desktop */
.menu-btn {
  display: none;
  position: relative;
  width: 32px;
  height: 32px;
  border: 1px solid #0f3460;
  border-radius: 6px;
  background: transparent;
  color: #8899aa;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s;
}

.menu-btn:hover {
  border-color: #e94560;
  color: #e0e0e0;
}

/* Dropdown menu — hidden by default */
.menu-dropdown {
  display: none;
  flex-direction: column;
  background: #1a1a2e;
  border: 1px solid #0f3460;
  border-radius: 8px;
  padding: 4px 0;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  min-width: 160px;
  z-index: 200;
}

.menu-dropdown.open {
  display: flex;
}

.menu-dropdown a {
  padding: 8px 14px;
  color: #aabbcc;
  text-decoration: none;
  font-size: 13px;
  transition: background 0.15s, color 0.15s;
}

.menu-dropdown a:hover {
  background: #0f3460;
  color: #e0e0e0;
}

/* Main content */
main {
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  flex: 1;
}

/* Typography */
h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
  line-height: 1.3;
}

h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #e0e0e0;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: #e0e0e0;
}

p {
  margin-bottom: 1rem;
}

ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.35rem;
}

/* Links */
a {
  color: #e94560;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-style: solid;
}

/* Blockquote */
blockquote {
  border-left: 3px solid #e94560;
  padding: 0.5rem 1rem;
  margin: 1rem 0;
  color: #8899aa;
  background: #16213e;
  border-radius: 0 4px 4px 0;
}

/* Code */
code {
  background: #16213e;
  padding: 0.15em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
}

pre {
  background: #16213e;
  border: 1px solid #0f3460;
  border-radius: 6px;
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1rem;
}

pre code {
  background: none;
  padding: 0;
}

/* Images */
main img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 1rem 0;
}

/* Breadcrumb */
.breadcrumb {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: #8899aa;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #e0e0e0;
}

/* Post meta */
.post-meta {
  color: #8899aa;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* Changelog */
.changelog {
  margin: 2rem 0 1rem;
  border: 1px solid #0f3460;
  border-radius: 6px;
  background: #16213e;
  padding: 0.75rem 1rem;
}

.changelog h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: #8899aa;
}

.changelog ul {
  margin-bottom: 0;
  font-size: 0.85rem;
  color: #8899aa;
}

/* Blog index — post cards */
.post-list {
  list-style: none;
  padding: 0;
}

.post-list li {
  margin-bottom: 1.5rem;
}

.post-card {
  display: block;
  background: #16213e;
  border: 1px solid #0f3460;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.post-card:hover {
  border-color: #e94560;
  background: #1a2540;
}

.post-card h2 {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
  color: #fff;
}

.post-card .post-date {
  font-size: 0.85rem;
  color: #8899aa;
  margin-bottom: 0.35rem;
}

.post-card .post-description {
  color: #b0b8c4;
  font-size: 0.95rem;
  margin: 0;
}

/* Footer */
.site-footer {
  background: #16213e;
  border-top: 1px solid #0f3460;
  padding: 1.25rem 1.5rem;
  text-align: center;
  color: #8899aa;
  font-size: 0.85rem;
}

.site-footer a {
  color: #8899aa;
}

/* Responsive */
@media (max-width: 600px) {
  .site-header {
    padding: 0.5rem 1rem;
  }

  /* Hide inline nav links, show hamburger */
  .site-header nav .nav-link {
    display: none;
  }

  .menu-btn {
    display: flex;
  }

  main {
    padding: 1.5rem 1rem 3rem;
  }

  h1 {
    font-size: 1.6rem;
  }
}
