/**
 * Site styles
 */

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

/* Header */
.site-header {
  border-top: 3px solid #424242;
  border-bottom: 1px solid #e8e8e8;
  min-height: 56px;
  position: relative;
  background-color: #fff;
}

.wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header .wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  padding-bottom: 15px;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 54px;
  letter-spacing: -1px;
  margin-bottom: 0;
  color: #424242;
  text-decoration: none;
}

.site-title:hover {
  text-decoration: none;
  color: #000;
}

/* Navigation */
.site-nav {
  position: relative;
}

.nav-trigger {
  display: none;
}

.menu-icon {
  display: none;
}

.trigger {
  display: flex;
  gap: 20px;
  align-items: center;
}

.page-link {
  color: #424242;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s;
}

.page-link:hover {
  color: #000;
  text-decoration: none;
}

.language-switcher {
  margin-left: 10px;
  padding-left: 15px;
  border-left: 1px solid #e8e8e8;
}

.lang-link {
  display: inline-block;
  padding: 5px 12px;
  background-color: #f5f5f5;
  color: #424242;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.lang-link:hover {
  background-color: #2a7ae2;
  color: #fff;
  text-decoration: none;
}

/* Main content */
.page-content {
  padding: 30px 0;
  min-height: calc(100vh - 200px);
}

/* Home page */
.home-header {
  text-align: center;
  margin-bottom: 50px;
  padding: 40px 0;
}

.profile-image-container {
  margin-bottom: 30px;
}

.profile-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #e8e8e8;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.page-heading {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.site-description {
  font-size: 1.2rem;
  color: #666;
  margin: 0;
}

.posts {
  margin-bottom: 60px;
}

.post-list-heading {
  font-size: 1.8rem;
  margin-bottom: 30px;
  border-bottom: 2px solid #e8e8e8;
  padding-bottom: 10px;
}

.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-list > li {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #f0f0f0;
}

.post-list > li:last-child {
  border-bottom: none;
}

.post-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 8px;
}

.post-link {
  color: #2a7ae2;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.post-link:hover {
  color: #1a5bc2;
  text-decoration: underline;
}

.post-excerpt {
  color: #555;
  margin: 10px 0;
  line-height: 1.7;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  background-color: #f5f5f5;
  border-radius: 3px;
  font-size: 0.85rem;
  color: #666;
}

/* About preview */
.about-preview {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 8px;
  margin-top: 40px;
  text-align: center;
}

.about-preview h2 {
  margin-top: 0;
  font-size: 1.8rem;
}

.about-preview p {
  color: #555;
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #2a7ae2;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  transition: background-color 0.2s;
}

.btn:hover {
  background-color: #1a5bc2;
  text-decoration: none;
  color: #fff;
}

/* Post page */
.post {
  max-width: 700px;
  margin: 0 auto;
}

.post-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e8e8e8;
}

.post-translation {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #e8e8e8;
}

.translation-link {
  font-size: 0.95rem;
  color: #666;
  margin: 0;
}

.translation-link a {
  color: #2a7ae2;
  text-decoration: none;
  font-weight: 500;
}

.translation-link a:hover {
  text-decoration: underline;
}

.post-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.3;
}

.post-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.post-content h2 {
  font-size: 1.8rem;
  border-bottom: 1px solid #e8e8e8;
  padding-bottom: 10px;
}

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

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

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

.post-content img {
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-height: 600px;
  object-fit: contain;
}

/* Standardize image sizes - set a consistent max-width */
@media (min-width: 768px) {
  .post-content img {
    max-width: 700px;
  }
}

.post-content p img {
  margin: 30px auto;
}

.post-content figure {
  margin: 30px 0;
  text-align: center;
}

.post-content figure img {
  margin: 0 auto;
}

.post-content figcaption {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
}

.post-content code {
  background-color: #f5f5f5;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
  font-family: 'Courier New', monospace;
}

.post-content pre {
  background-color: #f5f5f5;
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
  margin-bottom: 20px;
}

.post-content pre code {
  background-color: transparent;
  padding: 0;
}

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

.post-content a {
  color: #2a7ae2;
  text-decoration: none;
}

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

.post-navigation {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #e8e8e8;
}

.post-footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e8e8e8;
  color: #666;
  font-size: 0.9rem;
}

.post-footer a {
  color: #2a7ae2;
  text-decoration: none;
}

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

/* Page layout */
.page .post-title {
  font-size: 2.5rem;
  margin-bottom: 30px;
}

.about-header {
  text-align: center;
  margin-bottom: 30px;
}

.about-profile-image {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #e8e8e8;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Social links */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  padding: 8px 15px;
  background-color: #f5f5f5;
  color: #333;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.2s;
  font-size: 0.95rem;
}

.social-links a:hover {
  background-color: #e8e8e8;
  text-decoration: none;
  color: #000;
}

.social-links i {
  margin-right: 8px;
  font-size: 1.1rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid #e8e8e8;
  padding: 30px 0;
  margin-top: 60px;
  background-color: #f9f9f9;
}

.footer-col-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-col {
  flex: 1;
  min-width: 200px;
}

.footer-col .text {
  color: #666;
  margin-bottom: 10px;
}

.footer-col .social-links {
  margin-top: 10px;
}

.footer-col .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 50%;
  color: #666;
  text-decoration: none;
  transition: all 0.2s;
}

.footer-col .social-links a:hover {
  background-color: #2a7ae2;
  border-color: #2a7ae2;
  color: #fff;
  transform: translateY(-2px);
}

.footer-col .social-links i {
  margin: 0;
}

/* Responsive */
@media screen and (max-width: 600px) {
  .site-header .wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu-icon {
    display: block;
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
  }

  .nav-trigger:checked ~ .trigger {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    padding: 10px;
    min-width: 150px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }

  .nav-trigger ~ .trigger {
    display: none;
  }

  .page-heading {
    font-size: 2rem;
  }

  .post-title {
    font-size: 1.8rem;
  }

  .footer-col-wrapper {
    flex-direction: column;
  }

  .profile-image {
    width: 150px;
    height: 150px;
  }

  .about-profile-image {
    width: 150px;
    height: 150px;
  }

  .post-content img {
    max-width: 100%;
    margin: 20px auto;
    max-height: 400px;
  }
}
