:root {
  --primary-color: #333;
  --bg-color: #fafafa;
  --text-color: #444;
  --accent-color: #ff8c00; /* Orange */
  --border-color: #eee;
  --max-width: 900px;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color 0.2s ease;
}

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

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

/* Header */
.site-header {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 3rem;
}

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

.header-left, .header-right {
  display: flex;
  gap: 1.5rem;
  flex: 1;
}

.header-right {
  justify-content: flex-end;
}

.nav-link {
  font-weight: 500;
  font-size: 1rem;
}

.nav-link.active {
  color: var(--accent-color);
}

.site-logo {
  font-family: 'Caveat', cursive;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary-color);
  flex-shrink: 0;
  text-align: center;
}

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

.lang-switch a {
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0 0.5rem;
}

.lang-switch a.active {
  color: var(--accent-color);
}

/* Post list */
.search-wrapper {
  margin-bottom: 3rem;
}

.search-input {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background-color: #fff;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.post-item {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.post-title {
  font-size: 2rem;
  color: var(--primary-color);
}

.post-body-preview {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

.post-image-placeholder {
  width: 100%;
  height: 200px;
  background-color: #e0e0e0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
  font-size: 0.9rem;
}

.post-excerpt-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post-excerpt {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  font-size: 0.9rem;
  color: #777;
}

.read-more {
  color: var(--accent-color);
  font-weight: 600;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 4rem 0 2rem;
  list-style: none;
}

.pagination-item .page-link {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--primary-color);
}

.pagination-item.active .page-link {
  background-color: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}

/* Single Post */
.single-post {
  max-width: 800px;
  margin: 0 auto;
}

.single-header {
  margin-bottom: 2rem;
  text-align: center;
}

.single-title {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  line-height: 1.2;
}

.single-meta {
  color: #777;
  font-size: 0.95rem;
}

.single-image-placeholder {
  width: 100%;
  height: 400px;
  background-color: #e0e0e0;
  border-radius: 8px;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
}

.single-content {
  font-size: 1.15rem;
  line-height: 1.8;
}

.single-content h2, .single-content h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

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

/* Footer */
.site-footer {
  text-align: center;
  padding: 3rem 0;
  margin-top: 5rem;
  border-top: 1px solid var(--border-color);
  color: #777;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .header-left, .header-right {
    justify-content: center;
  }
  
  .post-body-preview {
    grid-template-columns: 1fr;
  }
  
  .post-image-placeholder {
    height: 250px;
  }
}

.no-results {
  font-size: 1.2rem;
  color: #777;
  text-align: center;
  padding: 3rem 0;
  width: 100%;
}
