* {
  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;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

header {
  border-bottom: 2px solid #eee;
  margin-bottom: 40px;
  padding-bottom: 20px;
}

nav {
  display: flex;
  gap: 20px;
}

nav a {
  color: #0066cc;
  text-decoration: none;
  font-weight: 500;
}

nav a:hover {
  text-decoration: underline;
}

main {
  min-height: 60vh;
}

h1 {
  color: #2c3e50;
  margin-bottom: 10px;
  font-size: 2.5em;
}

.post-date-container {
  margin-top: 0;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.post-date {
  color: #666;
  font-size: 0.9em;
  font-style: italic;
}

.language-switcher-inline {
  margin-left: auto;
}

h2 {
  color: #34495e;
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.8em;
}

p {
  margin-bottom: 15px;
}

ul, ol {
  margin-left: 30px;
  margin-bottom: 15px;
  padding-left: 10px;
}

ol li {
  margin-bottom: 8px;
}

a {
  color: #0066cc;
}

img {
  max-width: 60%;
  height: auto;
  display: block;
  margin: 20px 0;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: max-width 0.3s ease;
}

img.zoomed {
  max-width: 100%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}


img.thumbnail {
  max-width: 30%;
  margin: 10px 0;
}

img.thumbnail.zoomed {
  max-width: 100%;
}

img.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

img.center.zoomed {
  max-width: 100%;
}

img.header-image {
  max-width: 100%;
  width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

img.header-image.zoomed {
  max-width: 100%;
}

.thumbnail-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 20px 0;
  align-items: flex-start;
}

.thumbnail-row p {
  display: contents;
  margin: 0;
}

.thumbnail-row img.thumbnail {
  max-width: calc(33.333% - 10px);
  flex: 0 0 auto;
  margin: 0;
  display: block;
}

.thumbnail-row img.thumbnail.zoomed {
  max-width: 100%;
  width: 100%;
  flex: 1 1 100%;
}


/* Mobile Styles */
@media (max-width: 768px) {
  body {
    padding: 15px;
  }

  h1 {
    font-size: 1.8em;
    margin-bottom: 8px;
  }

  h2 {
    font-size: 1.4em;
    margin-top: 24px;
    margin-bottom: 12px;
  }

  .post-date-container {
    margin-bottom: 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .post-date {
    font-size: 0.85em;
  }

  .language-switcher-inline {
    margin-left: 0;
    margin-top: 8px;
  }

  header {
    margin-bottom: 24px;
    padding-bottom: 15px;
  }

  nav {
    gap: 15px;
    flex-wrap: wrap;
  }

  nav a {
    font-size: 0.95em;
  }

  img {
    max-width: 100%;
    margin: 15px 0;
  }

  img.thumbnail {
    max-width: 100%;
    margin: 10px 0;
  }

  .thumbnail-row {
    gap: 10px;
    margin: 15px 0;
  }

  .thumbnail-row img.thumbnail {
    max-width: calc(50% - 5px);
  }

  ul, ol {
    margin-left: 20px;
    padding-left: 8px;
  }

  table {
    font-size: 0.85em;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table th,
  table td {
    padding: 8px 10px;
  }

  footer {
    margin-top: 40px;
    padding-top: 15px;
    font-size: 0.85em;
  }
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.95em;
}

table th {
  background-color: #f5f5f5;
  padding: 12px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #ddd;
}

table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
}

table tr:hover {
  background-color: #f9f9f9;
}

footer {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 2px solid #eee;
  text-align: center;
  color: #666;
  font-size: 0.9em;
}

.lang-link {
  display: inline-block;
  padding: 4px 12px;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  font-size: 0.85em;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.lang-link:hover {
  background-color: #0066cc;
  color: white;
  border-color: #0066cc;
  text-decoration: none;
}
