/* Site Title & Description */
.site-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
}

.site-title a {
  color: #fff;
  text-decoration: none;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.site-description {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
  margin: 0;
  padding-left: 2rem;
  border-left: 2px solid rgba(255, 255, 255, 0.2);
  line-height: 1.6;
  max-width: 400px;
}

/* Post Card Component */
.post-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: 420px;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.post-card__link {
  display: block;
  text-decoration: none;
  height: 100%;
  color: inherit;
}

.post-card__image {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card__content {
  padding: 1.5rem;
  height: 170px;
  display: flex;
  flex-direction: column;
}

.post-card__title {
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 600;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-card__meta {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.post-card__excerpt {
  font-size: 0.95rem;
  color: var(--text-color);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Pagination Component */
.pagination {
  margin: 4rem auto 2rem;
  text-align: center;
}

.pagination ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  list-style: none;
  padding: 1.5rem;
  margin: 0;
  min-height: 5rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--border-radius);
}

.pagination li {
  padding: 0.375rem 0;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 1rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.pagination .prev,
.pagination .next {
  padding: 0 1.5rem;
}

.pagination .page-numbers:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.pagination .page-numbers.current {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: 600;
}

/* Sidebar Components */
.sidebar {
  min-width: 0;
}

.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  margin-top: 0.5rem;
}

.sidebar li {
  padding-block: 0.5rem;
  position: relative;
  border-bottom: 1px solid #ddd;
}
.sidebar li:last-child {
  border-bottom: none;
}

.sidebar a {
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
  display: block;
  border-radius: var(--border-radius);
}

.sidebar a:hover {
  background: rgba(33, 147, 176, 0.1);
  color: #2193b0;
}

/* Popular Posts in Sidebar */
.popular-posts__image img,
.popular-posts__image svg {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.popular-posts a {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0;
}

.popular-posts__title {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 0.5rem;
}

/* Widget Component */
.widget {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}
.widget-title {
  padding-bottom: 1rem;
  position: relative;
}
.widget-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
}
