/* assets/css/blog.css */
.blog-hero {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 3rem;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-hero-image-wrap {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.blog-hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.blog-hero:hover .blog-hero-image-wrap img {
  transform: scale(1.05);
}

.blog-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 8, 19, 1) 0%, rgba(4, 8, 19, 0.4) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem;
}

.blog-category-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.badge-gold { background: rgba(251, 191, 36, 0.15); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.3); }
.badge-emerald { background: rgba(52, 211, 153, 0.15); color: #34d399; border: 1px solid rgba(52, 211, 153, 0.3); }
.badge-cyan { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }

.blog-hero-title {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.blog-hero-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 13px;
  color: var(--text-muted);
}

.blog-filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.blog-filter-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.3s ease;
  cursor: pointer;
}

.blog-filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.blog-filter-btn.active {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.blog-card-img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.blog-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-img-wrap img {
  transform: scale(1.05);
}

.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin: 0.75rem 0;
  line-height: 1.4;
}

.blog-card-excerpt {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
}

.blog-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface-light);
}

.blog-author-name {
  font-size: 12px;
  color: var(--text-secondary);
}

.blog-read-more {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s;
}

.blog-read-more:hover {
  opacity: 0.8;
}

/* Post Content Page */
.post-header {
  text-align: center;
  padding: 4rem 2rem 2rem;
}

.post-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.post-meta-big {
  display: flex;
  justify-content: center;
  gap: 2rem;
  color: var(--text-muted);
  font-size: 14px;
}

.post-featured-img {
  width: 100%;
  height: 500px;
  border-radius: 24px;
  object-fit: cover;
  margin-bottom: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.post-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
}

.post-content h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin: 3rem 0 1.5rem;
}

.post-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin: 2rem 0 1rem;
}

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

.post-content ul, .post-content ol {
  margin-bottom: 1.5rem;
  padding-right: 1.5rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content img {
  max-width: 100%;
  border-radius: 16px;
  margin: 2rem 0;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.post-content blockquote {
  border-right: 4px solid var(--primary);
  padding: 1rem 2rem 1rem 0;
  margin: 2rem 0;
  background: rgba(251, 191, 36, 0.05);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #fff;
}

@media (max-width: 768px) {
  .blog-hero-image-wrap { height: 300px; }
  .blog-hero-overlay { padding: 1.5rem; }
  .blog-hero-title { font-size: 1.5rem; }
  .post-title { font-size: 1.8rem; }
  .post-featured-img { height: 300px; }
}
