/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --text-primary: #1a1a1a;
  --text-secondary: #888888;
  --text-light: #999999;
  --bg-primary: #ffffff;
  --border-color: #e5e5e5;
  --link-color: #1a1a1a;
  --link-hover: #888888;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Header */
.header {
  background-color: var(--bg-primary);
  padding: 20px 0;
  margin-bottom: 40px;
}

.header-content {
  margin: 0 auto;
}

.header-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
  line-height: 1.1;
  background: linear-gradient(135deg, #000000 0%, #dc2626 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.header-link:hover {
  color: var(--text-secondary);
}

.header-tagline {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 15px;
  line-height: 1.4;
}

.header-socials {
  display: flex;
  gap: 20px;
  margin-top: 15px;
}

.header-socials a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.header-socials a:hover {
  color: var(--text-primary);
}

/* Main content */
.main {
  min-height: calc(100vh - 200px);
}

/* Home Page Styles */
.home-content {
  margin: 0 auto;
}

.home-header {
  margin-bottom: 60px;
}

.home-title {
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: -1px;
  line-height: 1.1;
  color: var(--text-primary);
}

.home-tagline {
  font-size: 20px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.4;
}

.home-socials {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.home-socials a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.home-socials a:hover {
  color: var(--text-primary);
}

/* Sections */
section {
  margin-bottom: 60px;
}

section h2 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 30px;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

/* About Section */
.about-content p {
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.about-content p strong {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Blog Section */
.recent-posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recent-posts li {
  margin-bottom: 12px;
}

.recent-posts a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 16px;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.recent-posts a:hover {
  color: var(--text-secondary);
}

/* Projects Section */
.projects-list p {
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.projects-content ul {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
}

.projects-content li {
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.6;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 16px;
  background: none;
}

.btn-primary {
  color: var(--text-primary);
  border: 1px solid var(--text-primary);
}

.btn-primary:hover {
  color: var(--text-secondary);
  border-color: var(--text-secondary);
}

/* Blog Post Styles */
.blog-post {
  margin-bottom: 60px;
}

.post-header {
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.post-title {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 16px;
  color: var(--text-secondary);
}

.post-date {
  font-weight: 500;
  font-size: 14px;
}

.post-tags {
  display: flex;
  gap: 10px;
}

.tag {
  background-color: var(--border-color);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.post-content {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  max-width: 700px;
  margin: 0 auto;
}

.post-content h1 {
  font-size: 36px;
  font-weight: 600;
  margin: 50px 0 20px 0;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.post-content h2 {
  font-size: 28px;
  font-weight: 600;
  margin: 40px 0 15px 0;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.post-content h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 30px 0 12px 0;
  line-height: 1.4;
}

.post-content h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 25px 0 10px 0;
  line-height: 1.4;
}

.post-content p {
  margin-bottom: 20px;
  line-height: 1.7;
}

.post-content ul, .post-content ol {
  margin: 20px 0;
  padding-left: 20px;
}

.post-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.post-content blockquote {
  border-left: 3px solid var(--border-color);
  padding-left: 20px;
  margin: 30px 0;
  font-style: italic;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
}

.post-content code {
  background-color: var(--border-color);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

/* Ensure all pre elements get the full width */
.post-content pre:not([class*="language-"]) {
  max-width: 1000px;
  margin-left: calc(-150px);
  margin-right: calc(-150px);
}

.post-content pre {
  background-color: var(--border-color);
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 25px 0;
  font-size: 14px;
  line-height: 1.5;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  max-width: 1000px;
  margin-left: calc(-150px);
  margin-right: calc(-150px);
}

/* Prism.js customization */
.post-content pre[class*="language-"] {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  max-width: 1000px;
  margin-left: calc(-150px);
  margin-right: calc(-150px);
}

.post-content code[class*="language-"] {
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.5;
}

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

.post-content a {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.post-content a:hover {
  color: var(--text-secondary);
}

.post-content img {
  max-width: 1000px;
  margin-left: calc(-150px);
  margin-right: calc(-150px);
  border-radius: 8px;
}

.post-content table {
  max-width: 1000px;
  margin-left: calc(-150px);
  margin-right: calc(-150px);
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.4;
}

.post-content table th,
.post-content table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.post-content table th {
  font-weight: 600;
  background-color: #d4e6b5;
  color: var(--text-primary);
}

.post-content table tr:hover {
  background-color: transparent;
}

.post-content table tr.section-header {
  background-color: #f5f5f5;
  font-weight: 600;
  color: var(--text-primary);
}

.post-content strong {
  font-weight: 600;
}

.post-content em {
  font-style: italic;
}

.post-content hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 40px 0;
}

.post-footer {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.back-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--text-primary);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  margin-top: 60px;
  color: var(--text-secondary);
  font-size: 14px;
}

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

.footer a:hover {
  color: var(--text-secondary);
}



/* Comments Section */
#comments-section {
  margin: 30px 0;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

#comments-section p {
  margin-bottom: 15px;
  color: var(--text-secondary);
  font-size: 14px;
  font-style: italic;
}

/* Giscus styling */
.giscus {
  margin-top: 20px;
}

.giscus-frame {
  border: none;
  border-radius: 8px;
}

/* Share Section */
.share-section {
  margin: 40px 0;
  padding: 20px 0;
}

.share-text {
  text-align: center;
  margin-bottom: 15px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.share-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  background: var(--bg-color);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.share-button:hover {
  transform: translateY(-2px);
}

.share-button svg {
  width: 24px;
  height: 24px;
}

.share-button.twitter:hover {
  background: #1da1f2;
  color: white;
  border-color: #1da1f2;
}

.share-button.linkedin:hover {
  background: #0077b5;
  color: white;
  border-color: #0077b5;
}

.share-button.copy:hover {
  background: #6b7280;
  color: white;
  border-color: #6b7280;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 36px;
  }
  
  .tagline {
    font-size: 18px;
  }
  
  .nav-right {
    gap: 15px;
  }
  
  .nav-social {
    font-size: 13px;
  }
  
  section h2 {
    font-size: 28px;
  }
  
  .post-title {
    font-size: 36px;
  }
  
  .post-content {
    font-size: 16px;
  }
  
  .post-content h1 {
    font-size: 28px;
  }
  
  .post-content h2 {
    font-size: 24px;
  }
  
  .post-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 28px;
  }
  
  .tagline {
    font-size: 16px;
  }
  
  .bio {
    font-size: 16px;
  }
  
  .nav {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  
  .nav-right {
    gap: 20px;
  }
  
  .container {
    padding: 0 15px;
  }
  
  .post-title {
    font-size: 28px;
  }
  
  .post-content {
    font-size: 16px;
  }
  
  .post-content h1 {
    font-size: 24px;
  }
  
  .post-content h2 {
    font-size: 20px;
  }
  
  .post-content pre {
    padding: 15px;
    font-size: 13px;
  }
} 