:root {
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  --primary-accent: #3b82f6;
  --secondary-accent: #10b981;
  --text-dim: #4b5563;
  --card-radius: 16px;
}

body.colorscheme-dark {
  --glass-bg: rgba(31, 41, 55, 0.6);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-dim: #9ca3af;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  box-shadow: var(--glass-shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-accent);
}

/* Post List Item */
.list ul {
  list-style: none;
  padding: 0;
}

.post-item {
  display: flex;
  margin-bottom: 2rem;
  padding: 1.5rem;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
}

.post-content {
  flex: 1;
}

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

.post-series a {
  color: var(--primary-accent);
  font-weight: 600;
  text-decoration: none;
}

.post-title {
  margin: 0.5rem 0;
  font-size: 1.5rem;
  line-height: 1.2;
}

.post-title a {
  text-decoration: none;
  color: inherit;
  background: linear-gradient(to right, var(--primary-accent), var(--secondary-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: opacity 0.3s;
}

.post-summary {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.post-image {
  width: 200px;
  height: 130px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
}

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

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

.post-footer {
  margin-top: auto;
}

.read-more a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-accent);
  text-decoration: none;
}

@media (max-width: 768px) {
  .post-item {
    flex-direction: column-reverse;
  }
  .post-image {
    width: 100%;
    height: 200px;
  }
}
