/* Medium Inspired Theme for Hugo */
:root {
  --primary-color: #292929;
  --secondary-color: #ffffff;
  --accent-color: #2980b9;
  --text-color: #333333;
  --light-text-color: #777777;
  --border-color: #e1e1e1;
  --max-width: 800px;
  --spacing-unit: 1.5rem; }

/* Base Styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--secondary-color);
  margin: 0;
  padding: 0; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-unit); }

/* Header Styles */
.site-header {
  border-bottom: 1px solid var(--border-color);
  padding: var(--spacing-unit) 0;
  margin-bottom: var(--spacing-unit); }

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; }

.site-title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700; }

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

.site-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: var(--spacing-unit); }

.site-nav a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease; }

.site-nav a:hover {
  color: var(--accent-color); }

/* Article List Styles */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 3rem; }

.article-preview {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color); }

.article-featured-image {
  margin-bottom: 1.5rem;
  overflow: hidden;
  border-radius: 8px; }

.article-featured-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease; }

.article-featured-image img:hover {
  transform: scale(1.02); }

.article-featured-image a {
  display: block; }

.single-featured-image {
  margin-bottom: 2rem; }

.single-featured-image img {
  max-height: 400px;
  object-fit: cover; }

.article-title {
  margin: 0 0 0.5rem 0;
  font-size: 2rem; }

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

.article-title a:hover {
  text-decoration: underline; }

.article-meta {
  display: flex;
  gap: 1rem;
  color: var(--light-text-color);
  font-size: 0.9rem;
  margin-bottom: 1rem; }

.article-excerpt {
  color: var(--text-color);
  margin-bottom: 1rem; }

.article-excerpt p {
  margin: 0; }

.article-tags {
  margin-bottom: 1rem; }

.tag {
  color: var(--accent-color);
  text-decoration: none;
  margin-right: 0.5rem;
  font-size: 0.9rem; }

.tag:hover {
  text-decoration: underline; }

.read-more {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500; }

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

/* Article Full Styles */
.article-full {
  max-width: 100%;
  margin: 0 auto; }

.article-header {
  margin-bottom: 2rem; }

.article-full .article-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem; }

.article-full .article-meta {
  font-size: 1rem; }

.article-content {
  font-size: 1.1rem;
  line-height: 1.8; }

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.4; }

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

.article-content h2 {
  font-size: 1.8rem; }

.article-content h3 {
  font-size: 1.6rem; }

.article-content p {
  margin-bottom: 1.5rem; }

.article-content a {
  color: var(--accent-color);
  text-decoration: none; }

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

.article-content code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
  background-color: #f5f5f5;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-size: 0.9em; }

.article-content pre {
  background-color: #f5f5f5;
  padding: 1rem;
  border-radius: 5px;
  overflow-x: auto;
  margin-bottom: 1.5rem; }

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

.article-content blockquote {
  border-left: 4px solid var(--border-color);
  padding-left: 1rem;
  margin-left: 0;
  color: var(--light-text-color);
  font-style: italic; }

.article-content img {
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0; }

.article-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color); }

.tags-list,
.categories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem; }

.article-footer h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--light-text-color); }

/* Pagination Styles */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 3rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--border-color); }

.pagination-prev,
.pagination-next {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500; }

.pagination-prev:hover,
.pagination-next:hover {
  text-decoration: underline; }

.pagination-page {
  color: var(--light-text-color);
  font-size: 0.9rem; }

/* Footer Styles */
.site-footer {
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--light-text-color); }

.footer-content p {
  margin: 0 0 1rem 0; }

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem; }

.social-links a {
  color: var(--text-color);
  text-decoration: none; }

.social-links a:hover {
  color: var(--accent-color); }

/* Language Switcher Styles */
.lang-switcher {
  margin-left: 1rem;
  display: flex;
  gap: 0.5rem; }

.lang-switcher a {
  color: var(--secondary-color);
  background-color: var(--primary-color);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: opacity 0.2s ease; }

.lang-switcher a:hover {
  opacity: 0.8; }

/* Comments Styles */
.comments {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color); }

/* Home Page Styles */
.home-page {
  max-width: 100%; }

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 0.5rem; }

.posts-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem; }

.post-list-item {
  background-color: var(--secondary-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease; }

.post-list-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }

.post-featured-image {
  height: 200px;
  overflow: hidden; }

.post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease; }

.post-featured-image img:hover {
  transform: scale(1.05); }

.post-content {
  padding: 1.5rem; }

.post-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.3rem; }

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

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

.post-meta {
  display: flex;
  gap: 1rem;
  color: var(--light-text-color);
  font-size: 0.9rem;
  margin-bottom: 1rem; }

.post-excerpt {
  color: var(--text-color);
  margin-bottom: 1rem;
  line-height: 1.6; }

.post-excerpt p {
  margin: 0; }

.read-more {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  display: inline-block; }

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

.view-all-posts {
  text-align: center;
  margin-top: 2rem; }

.btn-primary {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--secondary-color);
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease; }

.btn-primary:hover {
  background-color: #1a6ba0; }

/* Responsive Styles */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem; }
  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem; }
  .site-nav ul {
    gap: 0.5rem; }
  .article-full .article-title {
    font-size: 2rem; }
  .article-title {
    font-size: 1.6rem; }
  .posts-grid {
    grid-template-columns: 1fr; } }

/* Syntax Highlighting */
:not(pre) > code[class*="language-"],
pre[class*="language-"] {
  background: #f5f5f5; }

code[class*="language-"],
pre[class*="language-"] {
  color: #333;
  text-shadow: 0 1px white;
  font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
  direction: ltr;
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  line-height: 1.5;
  tab-size: 4;
  hyphens: none; }

pre[class*="language-"]::-moz-selection,
pre[class*="language-"] ::-moz-selection,
code[class*="language-"]::-moz-selection,
code[class*="language-"] ::-moz-selection {
  text-shadow: none;
  background: #b3d4fc; }

pre[class*="language-"]::selection,
pre[class*="language-"] ::selection,
code[class*="language-"]::selection,
code[class*="language-"] ::selection {
  text-shadow: none;
  background: #b3d4fc; }

/* Code blocks */
pre[class*="language-"] {
  padding: 1em;
  margin: .5em 0;
  overflow: auto;
  border-radius: 0.3em; }

:not(pre) > code[class*="language-"] {
  padding: .1em;
  border-radius: .3em; }

/* Inline code */
:not(pre) > code[class*="language-"] {
  color: #c7254e;
  background: #f9f2f4; }
