/* ============================================================
   BLOG LIST PAGE — Premium redesign
   Deep hero + editorial card layout
   ============================================================ */

/* ---------- Page wrapper ---------- */
.blog-page {
  padding-top: 66px;
  min-height: 100vh;
}

/* ============================================================
   HERO — Dark deep-space theme
   ============================================================ */
.blog-hero {
  position: relative;
  overflow: hidden;
  background: #080D1A;
  padding: 88px 0 80px;
}

/* Orb effects */
.blog-hero::before,
.blog-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.blog-hero::before {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(123,63,228,0.45) 0%, transparent 70%);
  top: -180px; left: -120px;
  animation: heroDrift 18s ease-in-out infinite alternate;
}
.blog-hero::after {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,45,91,0.3) 0%, transparent 70%);
  bottom: -160px; right: -80px;
  animation: heroDrift 22s ease-in-out infinite alternate-reverse;
}

@keyframes heroDrift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, 40px) scale(1.12); }
}

/* Subtle grid overlay */
.blog-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.blog-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.blog-hero-text { flex: 1; min-width: 300px; }

.blog-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,45,91,0.12);
  border: 1px solid rgba(255,45,91,0.35);
  color: #FF6080;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 22px;
}

.blog-hero-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 18px;
}

.blog-hero-title .text-accent {
  background: linear-gradient(90deg, #FF2D5B, #7B3FE4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-hero-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
  max-width: 520px;
}

/* Stats badge */
.blog-hero-stats {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 28px 36px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  text-align: center;
}

.blog-count-num {
  font-size: 56px;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  background: linear-gradient(135deg, #FF2D5B, #7B3FE4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-count-label {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-top: 6px;
}

.blog-count-label strong {
  display: block;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  margin-bottom: 2px;
}

/* ============================================================
   CONTENT AREA
   ============================================================ */
.blog-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 28px 100px;
}

/* Section divider label */
.blog-section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8AA0BF;
  margin-bottom: 24px;
}
.blog-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(0,0,0,0.1), transparent);
}

/* ============================================================
   FEATURED CARD — Full-width editorial style
   ============================================================ */
.featured-card {
  display: block;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 64px;
  box-shadow: 0 2px 24px rgba(0,0,0,0.06);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s cubic-bezier(0.4,0,0.2,1);
  text-decoration: none;
  color: inherit;
  animation: fadeUp 0.5s 0.05s ease both;
}

.featured-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 64px rgba(0,0,0,0.13);
}

/* Visual banner (gradient + icon) */
.featured-visual {
  position: relative;
  height: 300px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-visual-noise {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

.featured-visual-glow {
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  filter: blur(60px);
  top: -80px; right: -60px;
}

.featured-visual > i {
  position: relative;
  z-index: 1;
  font-size: 88px;
  color: rgba(255,255,255,0.8);
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.3));
  transition: transform 0.3s ease;
}

.featured-card:hover .featured-visual > i {
  transform: scale(1.06) translateY(-4px);
}

.featured-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
}

.featured-badge i,
.featured-visual .featured-badge i {
  font-size: 10px;
}

/* Text content below visual */
.featured-content {
  padding: 36px 44px 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}

.featured-content-main {}

.featured-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.post-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(123,63,228,0.08);
  color: #7B3FE4;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 100px;
  border: 1px solid rgba(123,63,228,0.16);
  transition: background 0.2s, border-color 0.2s;
}

.featured-title {
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.28;
  color: #0F1829;
  margin-bottom: 12px;
}

.featured-summary {
  font-size: 15px;
  color: #4A6080;
  line-height: 1.78;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: #8AA0BF;
  margin-top: 18px;
}

.featured-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.featured-content-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  height: 100%;
  gap: 12px;
  padding-top: 4px;
}

.featured-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  background: #FF2D5B;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 100px;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(255,45,91,0.32);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.featured-card:hover .featured-cta {
  background: #E01F4A;
  box-shadow: 0 8px 32px rgba(255,45,91,0.46);
  transform: translateX(3px);
}

/* ============================================================
   POSTS GRID — Magazine style
   ============================================================ */
.posts-section-header {
  margin-bottom: 24px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* ---- Post card ---- */
.post-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1), box-shadow 0.28s cubic-bezier(0.4,0,0.2,1);
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

/* Visual area */
.post-visual {
  position: relative;
  height: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.post-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.18) 100%);
}

.post-visual i {
  position: relative;
  z-index: 1;
  font-size: 44px;
  color: rgba(255,255,255,0.82);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.25));
  transition: transform 0.28s ease;
}

.post-card:hover .post-visual i {
  transform: scale(1.1) translateY(-3px);
}

/* Category strip */
.post-category {
  position: absolute;
  bottom: 10px;
  right: 12px;
  z-index: 2;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 3px 9px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.15);
}

/* Card body */
.post-body {
  padding: 20px 20px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.post-title {
  font-size: 15.5px;
  font-weight: 750;
  letter-spacing: -0.018em;
  line-height: 1.42;
  color: #0F1829;
  margin-bottom: 9px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.post-card:hover .post-title { color: #7B3FE4; }

.post-summary {
  font-size: 13px;
  color: #5A7099;
  line-height: 1.68;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}

.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: #8AA0BF;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,0.055);
  margin-top: auto;
}

.post-date, .post-reading-time {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Arrow indicator on hover */
.post-arrow {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(123,63,228,0.08);
  display: flex; align-items: center; justify-content: center;
  color: #7B3FE4;
  font-size: 11px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.24s, transform 0.24s;
}

.post-card:hover .post-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.blog-empty {
  text-align: center;
  padding: 80px 20px;
  color: #8AA0BF;
}
.blog-empty i { font-size: 48px; display: block; margin-bottom: 14px; opacity: 0.35; }
.blog-empty p { font-size: 16px; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .featured-content {
    grid-template-columns: 1fr;
    padding: 28px 28px 32px;
  }
  .featured-content-side { align-items: flex-start; }
  .blog-hero-stats {
    width: 100%;
    flex-direction: row;
    justify-content: center;
    padding: 20px 28px;
  }
}

@media (max-width: 640px) {
  .blog-hero { padding: 64px 0 56px; }
  .blog-hero-inner { flex-direction: column; align-items: flex-start; }
  .blog-content { padding: 40px 20px 80px; }
  .featured-visual { height: 220px; }
  .featured-content { padding: 22px 20px 26px; }
  .featured-visual > i { font-size: 64px; }
  .posts-grid { grid-template-columns: 1fr; }
  .blog-hero-inner { padding: 0 20px; }
}
