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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fafafa;
}

/* Header & Navbar */
header {
  background: white;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.navbar {
  padding: 1rem 0;
}

.nav-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: #000;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.logo:hover {
  color: #555;
}

.nav-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: #555;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #000;
}

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

/* Hero Section */
.hero {
  text-align: center;
  padding: 4rem 0;
}

.profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border: 3px solid #eee;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
}

.subtitle {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 2rem;
}

.buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.social-icons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 8px;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.icon-btn:hover {
  background: #333;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-primary {
  background: #000;
  color: white;
}

.btn-primary:hover {
  background: #333;
  transform: translateY(-2px);
}

.btn-secondary {
  background: #fff;
  color: #000;
  border: 1px solid #ddd;
}

.btn-secondary:hover {
  background: #f5f5f5;
  border-color: #999;
  transform: translateY(-2px);
}

/* Post & Article */
.post {
  background: white;
  padding: 2rem;
  border-radius: 6px;
  margin-bottom: 2rem;
}

.post h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.post h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.post h3 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.post p {
  margin-bottom: 1rem;
}

.post ul, .post ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.post li {
  margin-bottom: 0.5rem;
}

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

.post a:hover {
  text-decoration: underline;
}

.post-content code {
  background: #f4f4f4;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.9em;
}

.post-content pre {
  background: #f4f4f4;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.post-content pre code {
  background: none;
  padding: 0;
  border-radius: 0;
}

.meta {
  color: #999;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.back-link {
  color: #0066cc;
  text-decoration: none;
  font-size: 0.95rem;
}

.back-link:hover {
  text-decoration: underline;
}

/* Cusdis Comments */
.cusdis {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

/* Blog List */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.blog-item {
  background: white;
  padding: 1.5rem;
  border-radius: 6px;
}

.blog-item h2 {
  margin: 0 0 0.5rem 0;
}

.blog-item h2 a {
  color: #000;
  text-decoration: none;
}

.blog-item h2 a:hover {
  color: #0066cc;
}

.blog-item .meta {
  margin: 0 0 1rem 0;
}

.blog-item p {
  color: #666;
  margin-bottom: 1rem;
}

.read-more {
  color: #0066cc;
  text-decoration: none;
  font-weight: 500;
}

.read-more:hover {
  text-decoration: underline;
}

/* Error Page */
.error-page {
  text-align: center;
  padding: 4rem 0;
}

.error-page h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: #ccc;
}

.error-page p {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 2rem;
}

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

/* Responsive */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    gap: 1rem;
    font-size: 0.85rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .social-icons {
    gap: 0.8rem;
  }

  .icon-btn {
    width: 32px;
    height: 32px;
    padding: 6px;
  }

  .icon-btn svg {
    width: 18px;
    height: 18px;
  }

  .post {
    padding: 1.5rem;
  }

  .post h1 {
    font-size: 1.5rem;
  }

  .post h2 {
    font-size: 1.2rem;
  }
}
