/* Minimalist CSS Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

/* Layout */
.container {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  right: 0;
  padding: 1rem;
  z-index: 100;
}

.nav-list {
  display: flex;
  gap: 1rem;
  list-style: none;
}

.nav-list a {
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.5rem;
  border-radius: 4px;
  transition: all 0.2s;
}

.nav-list a:hover,
.nav-list a.active {
  color: #000;
  background: #f5f5f5;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 2rem 0 1rem 0;
  line-height: 1.3;
  color: #222;
}

h1 {
  font-size: 2rem;
}
h2 {
  font-size: 1.5rem;
}
h3 {
  font-size: 1.25rem;
}

p {
  margin: 1rem 0;
}

a {
  color: #0066cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Lists */
ul,
ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

li {
  margin: 0.5rem 0;
}

/* Code */
code {
  background: #f5f5f5;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: "Monaco", "Consolas", monospace;
  font-size: 0.9rem;
}

pre {
  background: #f8f8f8;
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

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

/* Content spacing */
.content > *:first-child {
  margin-top: 0;
}

/* Post metadata */
.metadata {
  color: #666;
  font-size: 0.9rem;
  margin: 1rem 0;
}

.metadata span {
  margin-right: 1rem;
}

/* Tags */
.tag-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  text-align: right;
}

.tag-list li {
  display: inline-block;
  margin: 0 0 0 0.5rem;
}

.tag-button,
.tag {
  background: #f0f0f0;
  color: #666;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.8rem;
  transition: background 0.2s;
}

.tag-button:hover,
.tag:hover {
  background: #e0e0e0;
}

/* Post listings */
.post-summary {
  margin: 3rem 0;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eee;
}

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

.post-summary h2,
.post-summary h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
}

.post-summary a {
  color: #222;
}

.post-summary .summary {
  color: #666;
  margin: 1rem 0;
}

/* Single post styling */
.post-article {
  margin-bottom: 3rem;
}

.post-header {
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}

.post-title {
  font-size: 2.5rem;
  line-height: 1.2;
  margin: 0 0 1rem 0;
  color: #111;
}

.post-meta {
  color: #666;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.post-date {
  font-weight: 500;
}

.meta-separator {
  color: #ccc;
}

.reading-time {
  color: #888;
}

/* Single post specific styling */
.single-post {
  max-width: 900px;
}

.post-content {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 3rem;
}

.post-content img {
  width: 100%;
  height: auto;
  margin: 2rem 0;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-content img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Image zoom modal */
.image-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.image-modal img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  cursor: default;
}

.image-modal .close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
}

.image-modal .close:hover {
  opacity: 0.7;
}

.post-content h1,
.post-content h2,
.post-content h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.post-content h1 {
  font-size: 1.8rem;
}

.post-content h2 {
  font-size: 1.5rem;
}

.post-content h3 {
  font-size: 1.25rem;
}

.post-content p {
  margin: 1.5rem 0;
}

.post-content blockquote {
  border-left: 4px solid #ddd;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #666;
}

.post-footer {
  padding-top: 2rem;
  border-top: 1px solid #eee;
  margin-bottom: 2rem;
}

.post-tags {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tags-label {
  color: #666;
  font-size: 0.9rem;
  font-weight: 500;
}

.post-nav {
  margin: 6rem 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.back-to-posts {
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.back-to-posts:hover {
  color: #333;
}

.site-footer {
  margin-top: 2rem;
}

/* Footer */
footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
  text-align: center;
}

.social-list a {
  margin: 0 1rem;
  color: #666;
}

.copyright {
  margin-top: 1rem;
  color: #999;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  nav {
    position: static;
    padding: 1rem 0;
    text-align: center;
  }

  .nav-list {
    justify-content: center;
  }

  h1 {
    font-size: 1.75rem;
  }
  h2 {
    font-size: 1.25rem;
  }
}
