/* ════════════════════════════════════════════════════════════════════
   Wolf IPTV — Blog Section (M1.7.B Image-Less / Typography-Driven)
   ════════════════════════════════════════════════════════════════════

   File:    wolf-home-blog.css
   Loaded:  via index.php extra_css (after wolf-home-reviews.css)
   Scoped:  .blog-section, .blog-list, .blog-row, .blog-cta

   Philosophy:
     - Zero <img> tags → fast LCP + clean SEO/AEO
     - Big outline numbers (01, 02, 03) anchor each row visually
     - Hover reveals brand accent stripe on the right edge (RTL-aware)
     - Typography hierarchy: category badge → title → excerpt → meta

   Structure:
     1. Section background (subtle brand-tinted radial gradients)
     2. Blog list container (vertical stack with consistent gap)
     3. Blog row (article card with hover lift + accent stripe)
     4. Row link (grid: num | body | arrow)
     5. Outline number (big display font, brand color)
     6. Body content (top meta | title | excerpt | bottom meta)
     7. Arrow indicator (animates on hover)
     8. View-all CTA button
     9. Responsive breakpoints
   ════════════════════════════════════════════════════════════════════ */


/* ── 1. Section background (subtle brand-tinted gradients) ───────── */
.blog-section {
  background:
    radial-gradient(ellipse 50% 40% at 100% 0%, var(--brand-faint), transparent 70%),
    radial-gradient(ellipse 40% 35% at 0% 100%, var(--brand-faint), transparent 70%);
}


/* ── 2. Blog list container ──────────────────────────────────────── */
.blog-list {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}


/* ── 3. Blog row card ────────────────────────────────────────────── */
.blog-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

/* Brand accent stripe on the right edge (RTL — appears on hover) */
.blog-row::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--brand-soft) 0%, var(--brand) 50%, var(--brand-deep) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 0 var(--r-xl) var(--r-xl) 0;
}

.blog-row:hover {
  border-color: var(--border-brand);
  transform: translateX(-3px);
  box-shadow: 0 8px 24px rgba(137, 96, 199, 0.10);
}

.blog-row:hover::before {
  opacity: 1;
}

.blog-row:focus-within {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}


/* ── 4. Row link (grid layout) ───────────────────────────────────── */
.blog-row__link {
  display: grid;
  grid-template-columns: 80px 1fr 36px;
  gap: var(--sp-5);
  align-items: center;
  padding: var(--sp-5) var(--sp-6);
  text-decoration: none;
  color: inherit;
}


/* ── 5. Outline number ───────────────────────────────────────────── */
.blog-row__num {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--brand);
  text-align: center;
  letter-spacing: -3px;
  font-feature-settings: "tnum" 1;
  transition: color 0.3s ease;
}

.blog-row:hover .blog-row__num {
  color: var(--brand);
  -webkit-text-stroke-width: 0;
}


/* ── 6. Body content ─────────────────────────────────────────────── */
.blog-row__body {
  min-width: 0;
}

.blog-row__top {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
  flex-wrap: wrap;
}

.blog-row__cat {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: var(--brand-tint);
  border: 1px solid var(--border-brand);
}

.blog-row__time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
}

.blog-row__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: var(--sp-2);
  transition: color 0.3s ease;
}

.blog-row:hover .blog-row__title {
  color: var(--brand-soft);
}

.blog-row__excerpt {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-soft);
  margin-bottom: var(--sp-3);
}

.blog-row__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
}

.blog-row__date {
  font-family: var(--font-mono);
}

.blog-row__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
  display: inline-block;
}


/* ── 7. Arrow indicator ──────────────────────────────────────────── */
.blog-row__arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--bg-elev);
  transition: background-color 0.3s ease, color 0.3s ease,
              border-color 0.3s ease, transform 0.3s ease;
}

.blog-row__arrow svg {
  width: 14px;
  height: 14px;
}

.blog-row:hover .blog-row__arrow {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  transform: translateX(-4px);
}


/* ── 8. View-all CTA button ──────────────────────────────────────── */
.blog-cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: var(--sp-10);
}

.blog-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 14px 28px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
  text-decoration: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  box-shadow: var(--shadow-brand), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Override anchor's inherited color (compound specificity beats generic 'a') */
a.blog-cta {
  color: #fff;
}

.blog-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(137, 96, 199, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

.blog-cta:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.blog-cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.blog-cta:hover svg {
  transform: translateX(-3px);
}


/* ── 9. Responsive breakpoints ───────────────────────────────────── */
@media (max-width: 720px) {
  .blog-row__link {
    grid-template-columns: 56px 1fr 32px;
    gap: var(--sp-3);
    padding: var(--sp-4) var(--sp-5);
  }
  .blog-row__num { font-size: 42px; letter-spacing: -2px; }
  .blog-row__title { font-size: 16px; }
  .blog-row__excerpt { display: none; }
  .blog-row__arrow { width: 32px; height: 32px; }
}

@media (max-width: 480px) {
  .blog-row__link {
    grid-template-columns: 48px 1fr 28px;
    gap: var(--sp-2);
    padding: var(--sp-4);
  }
  .blog-row__num { font-size: 36px; letter-spacing: -1.5px; }
  .blog-row__title { font-size: 15px; line-height: 1.4; }
  .blog-row__cat { font-size: 9px; padding: 2px 7px; }
  .blog-row__time, .blog-row__meta { font-size: 10px; }
  .blog-row__arrow { width: 28px; height: 28px; }
  .blog-row__arrow svg { width: 12px; height: 12px; }
}


/* ── 10. Reduced motion accessibility ────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .blog-row,
  .blog-row__num,
  .blog-row__title,
  .blog-row__arrow,
  .blog-cta,
  .blog-cta svg {
    transition: none;
  }
  .blog-row:hover {
    transform: none;
  }
  .blog-cta:hover,
  .blog-row:hover .blog-row__arrow {
    transform: none;
  }
}
