/* Extracted from blog/blog_list.html */
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; margin-top: 20px; }
@media (max-width: 900px) {
  .blog-layout { grid-template-columns: minmax(0, 1fr); }
}
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(350px, 100%), 1fr)); gap: 20px; }
.blog-card {
  background: #1c2333;
  border: 2px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: color 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
}
.blog-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0ea5e9 0%, #0284c7 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
  z-index: 2;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
.blog-card:hover::before {
  transform: scaleX(1);
}
.blog-card-image-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #1c2333;
}
.blog-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-card:hover .blog-card-image {
  transform: scale(1.08);
}
.blog-card-content { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.blog-card-category {
  display: inline-block;
  padding: 6px 12px;
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  color: white;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  align-self: flex-start;
}
.blog-card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1e293b;
  line-height: 1.3;
  transition: color 0.2s ease;
  letter-spacing: -0.01em;
}
.blog-card:hover .blog-card-title {
  color: #0ea5e9;
}
.blog-card-excerpt {
  color: #94a3b8;
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.6;
  flex: 1;
}
.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #94a3b8;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.blog-card-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.blog-card-tag {
  padding: 4px 10px;
  background: #e2e8f0;
  border-radius: 12px;
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
}
.blog-card-tag:hover {
  background: #0369a1;
  color: white;
}
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 32px; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 10px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: #1c2333;
  color: #475569;
  font-weight: 500;
  transition: color 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pagination a:hover {
  border-color: #0ea5e9;
  color: #0ea5e9;
  transform: translateY(-2px);
}
.pagination .current {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  color: #fff;
  border-color: transparent;
}
.blog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}
.blog-header h1 {
  margin: 0;
  font-size: 2.2em;
  font-weight: 900;
  letter-spacing: -0.02em; color: var(--text); }

/* Sidebar */
.sidebar { position: sticky; top: 100px; align-self: start; }
@media (max-width: 900px) { .sidebar { position: static; } }
.sidebar-section {
  background: #1c2333;
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.sidebar-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1e293b;
  padding-bottom: 10px;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, #0ea5e9 0%, #0284c7 100%) 1;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}
.sidebar-list { list-style: none; padding: 0; margin: 0; }
.sidebar-list li { margin-bottom: 6px; }
.sidebar-list a {
  color: #475569;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 10px;
  transition: color 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-weight: 500;
}
.sidebar-list a:hover {
  background: #e2e8f0;
  color: #0ea5e9;
  transform: translateX(4px);
}
.sidebar-list a.active {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  color: white;
}
.category-count, .tag-count {
  background: #e2e8f0;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
}
.sidebar-list a.active .category-count,
.sidebar-list a.active .tag-count {
  background: rgba(255,255,255,0.2);
  color: white;
}

/* Search */
.search-box { display: flex; gap: 8px; margin-bottom: 16px; }
.search-box input {
  flex: 1;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: #1c2333;
  color: #475569;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.search-box input:focus {
  outline: none;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}
.search-box button { padding: 12px 16px; white-space: nowrap; border-radius: 10px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  color: white;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(14, 165, 233, 0.3);
}
.filter-tag a { color: white; text-decoration: none; font-weight: 700; opacity: 0.9; transition: opacity 0.2s; }
.filter-tag a:hover { opacity: 1; }

/* Empty state */
.blog-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #94a3b8;
  background: #1c2333;
  border-radius: 16px;
  border: 2px dashed var(--border);
}
.blog-empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

/* Dark mode styles */
.dark-mode .blog-card {
  background: #1e293b;
  border-color: #334155;
}

.dark-mode .blog-card-image-wrapper {
  background: #0f172a;
}

.dark-mode .blog-card-title {
  color: #e2e8f0;
}

.dark-mode .blog-card-excerpt {
  color: #cbd5e1;
}

.dark-mode .blog-card-meta {
  border-color: #334155;
  color: #94a3b8;
}

.dark-mode .blog-card-tag {
  background: #334155;
  color: #cbd5e1;
}

.dark-mode .blog-card-tag:hover {
  background: #0369a1;
  color: white;
}

.dark-mode .blog-header {
  border-bottom-color: #334155;
}

.dark-mode .pagination a,
.dark-mode .pagination span {
  background: #1e293b;
  border-color: #334155;
  color: #cbd5e1;
}

.dark-mode .pagination a:hover {
  border-color: #0ea5e9;
  color: #0ea5e9;
}

.dark-mode .sidebar-section {
  background: #1e293b;
  border-color: #334155;
}

.dark-mode .sidebar-title {
  color: #e2e8f0;
}

.dark-mode .sidebar-list a {
  color: #cbd5e1;
}

.dark-mode .sidebar-list a:hover {
  background: #334155;
  color: #0ea5e9;
}

.dark-mode .category-count,
.dark-mode .tag-count {
  background: #334155;
  color: #cbd5e1;
}

.dark-mode .sidebar-list a.active .category-count,
.dark-mode .sidebar-list a.active .tag-count {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.dark-mode .search-box input {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
}

.dark-mode .search-box input:focus {
  border-color: #0ea5e9;
  background: #1e293b;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.dark-mode .search-box input::placeholder {
  color: #94a3b8;
}

.dark-mode .blog-empty-state {
  background: #1e293b;
  border-color: #334155;
  color: #94a3b8;
}

.dark-mode .blog-card:hover .blog-card-title {
  color: #0ea5e9;
}

.dark-mode .blog-card-meta-item svg {
  stroke: #94a3b8;
}

.dark-mode .filter-tag {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}
