/* Kari Blog Custom Styles - Matching main app */

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
  margin-top: 1rem;
}

footer {
  flex-shrink: 0;
  margin-top: auto;
}

/* Navigation styles matching main app */
.nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 1.5rem;
  font-weight: bold;
}

nav {
  margin-bottom: 0;
}

/* Blog post styling */
.post-single {
  max-width: 800px;
  margin: 0 auto 3rem auto;
}

.post-single header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--pico-muted-border-color);
  padding-bottom: 1rem;
}

.post-single h1 {
  margin-bottom: 0.5rem;
}

.post-single .meta {
  color: var(--pico-muted-color);
  font-size: 0.9rem;
}

.post-single .content {
  line-height: 1.8;
}

.post-single .content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--pico-border-radius);
  margin: 2rem 0;
}

.post-single .content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.post-single .content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

/* Blog list styling */
.post-list {
  max-width: 800px;
  margin: 0 auto;
}

.post-item {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--pico-muted-border-color);
}

.post-item:last-child {
  border-bottom: none;
}

.post-item h2 {
  margin-bottom: 0.5rem;
}

.post-item h2 a {
  text-decoration: none;
  color: inherit;
}

.post-item h2 a:hover {
  color: var(--pico-primary);
}

.post-item .meta {
  color: var(--pico-muted-color);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.post-item .summary {
  color: var(--pico-muted-color);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 3rem 0;
}

/* Code blocks */
code {
  background-color: var(--pico-code-background-color);
  padding: 0.2rem 0.4rem;
  border-radius: var(--pico-border-radius);
}

pre code {
  display: block;
  padding: 1rem;
  overflow-x: auto;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .nav-register {
    display: none;
  }

  .post-single, .post-list {
    padding: 0 1rem;
  }
}
