/* ============================================
   BLOG — Styles
   ============================================ */

.blog-hero {
  padding: 160px 2rem 80px;
  text-align: center;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: radial-gradient(circle at 50% -20%, rgba(0, 212, 255, 0.15), transparent 70%);
  pointer-events: none;
}

.blog-hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.blog-hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.blog-hero-sub {
  color: #94a3b8;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Blog Grid */
.blog-list-section {
  padding: 5rem 2rem 10rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

.blog-card {
  background: rgba(10, 14, 28, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.2, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 212, 255, 0.3);
  background: rgba(10, 14, 28, 0.6);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 212, 255, 0.1);
}

.blog-card-img-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

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

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

.blog-card-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(0, 212, 255, 0.2);
  backdrop-filter: blur(8px);
  color: var(--c-cyan);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

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

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: #64748b;
}

.blog-card-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.4;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.blog-card:hover .blog-card-title {
  color: var(--c-cyan);
}

.blog-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  color: var(--c-cyan);
  font-weight: 600;
  font-size: 0.9rem;
  gap: 0.5rem;
}

.blog-card-footer svg {
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-footer svg {
  transform: translateX(5px);
}

.blog-loader {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem;
}

/* Spinner */
.blog-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(0, 212, 255, 0.1);
  border-top-color: var(--c-cyan);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1.5rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .blog-hero { padding: 120px 1rem 60px; }
  .blog-grid { grid-template-columns: 1fr; }
}
