/* ============================================
   WHEELWARRIORSNY — blog.css
   Blog-specific styles matching WW theme
   ============================================ */

/* ============================================
   BLOG HERO
   ============================================ */
.blog-hero {
  padding: 120px 0 64px;
  background: var(--gray-900);
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--red);
}

.blog-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, #0f0f1c);
}

.blog-hero .container {
  position: relative;
  z-index: 1;
}

.blog-hero__inner {
  max-width: 700px;
}

.blog-hero__eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(230, 57, 70, 0.12);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.blog-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.0;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.blog-hero__title span {
  color: var(--red);
}

.blog-hero__sub {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 520px;
  line-height: 1.7;
}

/* ============================================
   BLOG LISTING SECTION
   ============================================ */
.blog-listing {
  padding: var(--space-xl) 0;
  background: #0f0f1c;
  min-height: 400px;
}

/* ============================================
   BLOG GRID
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 56px;
}

@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   BLOG CARD
   ============================================ */
.blog-card {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(42, 74, 158, 0.25), 0 4px 16px rgba(0,0,0,0.5);
  border-color: rgba(42, 74, 158, 0.4);
}

/* Image placeholder area */
.blog-card__img {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--gray-200) 0%, var(--blue-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.blog-card__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(26,26,46,0.8) 100%);
}

.blog-card__img-icon {
  position: relative;
  z-index: 1;
  opacity: 0.35;
}

.blog-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--gray-500);
  font-family: var(--font-body);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.blog-card__meta-sep {
  opacity: 0.4;
}

.blog-card__read-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.blog-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.blog-card__tag {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-light);
  background: rgba(42, 74, 158, 0.15);
  padding: 3px 9px;
  border-radius: 100px;
}

.blog-card__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
  flex: 1;
}

.blog-card__excerpt {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--gray-500);
  line-height: 1.65;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  transition: gap 0.2s ease, color 0.2s ease;
  margin-top: auto;
}

.blog-card__cta:hover {
  color: var(--white);
  gap: 10px;
}

/* ============================================
   BLOG EMPTY STATE
   ============================================ */
.blog-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--gray-500);
}

.blog-empty__icon {
  margin: 0 auto 24px;
  width: 64px;
  height: 64px;
  background: var(--gray-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
}

.blog-empty__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--gray-700);
  margin-bottom: 10px;
}

.blog-empty__text {
  font-size: 0.95rem;
  max-width: 360px;
  margin: 0 auto;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.pagination__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid var(--red);
  color: var(--red);
  background: transparent;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.pagination__btn:hover {
  background: var(--red);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230,57,70,0.35);
}

.pagination__btn--active,
.pagination__btn.active {
  background: var(--red);
  color: var(--white);
}

.pagination__btn--disabled,
.pagination__btn[aria-disabled="true"] {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.pagination__info {
  font-size: 0.85rem;
  color: var(--gray-500);
  padding: 0 8px;
}

/* ============================================
   POST HERO (single post)
   ============================================ */
.post-hero {
  padding: 120px 0 60px;
  background: var(--gray-900);
  position: relative;
  overflow: hidden;
}

.post-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--red);
}

.post-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, #0f0f1c);
}

.post-hero .container {
  position: relative;
  z-index: 1;
}

.post-hero__inner {
  max-width: 820px;
}

/* Breadcrumb */
.post-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--gray-500);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.post-breadcrumb a {
  color: var(--gray-500);
  transition: color 0.2s;
}

.post-breadcrumb a:hover {
  color: var(--red);
}

.post-breadcrumb__sep {
  opacity: 0.5;
  font-size: 0.75rem;
}

.post-breadcrumb__current {
  color: var(--gray-700);
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.post-hero__tag {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(230,57,70,0.12);
  padding: 4px 12px;
  border-radius: 100px;
}

.post-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.post-hero__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--gray-500);
  flex-wrap: wrap;
}

.post-hero__meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.post-hero__meta-item svg {
  opacity: 0.6;
  flex-shrink: 0;
}

.post-hero__kw-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-light);
  background: rgba(42,74,158,0.18);
  padding: 4px 12px;
  border-radius: 100px;
}

/* ============================================
   POST LAYOUT (content + sidebar)
   ============================================ */
.post-layout {
  padding: var(--space-xl) 0;
  background: #0f0f1c;
}

.post-layout__inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

@media (max-width: 1024px) {
  .post-layout__inner {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   POST BODY (article content)
   ============================================ */
.post-body {
  max-width: 740px;
}

.post-body h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--blue-light);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-top: 44px;
  margin-bottom: 16px;
}

.post-body h2:first-child {
  margin-top: 0;
}

.post-body h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.2;
  margin-top: 32px;
  margin-bottom: 12px;
}

.post-body p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 18px;
}

.post-body ul,
.post-body ol {
  margin: 0 0 20px 0;
  padding-left: 24px;
  list-style: revert;
}

.post-body li {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.75;
  margin-bottom: 6px;
  padding-left: 4px;
}

.post-body strong {
  color: var(--white);
  font-weight: 600;
}

.post-body em {
  color: var(--gray-500);
}

.post-body a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-body a:hover {
  color: var(--white);
}

.post-body blockquote {
  border-left: 3px solid var(--red);
  padding: 16px 20px;
  background: var(--gray-100);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
  font-style: italic;
  color: var(--gray-700);
}

.post-body hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: 40px 0;
}

/* ============================================
   POST SIDEBAR
   ============================================ */
.post-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Sidebar Card */
.sidebar-card {
  background: var(--gray-100);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.sidebar-card__header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: var(--gray-200);
}

.sidebar-card__title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
}

.sidebar-card__body {
  padding: 20px;
}

/* Business info card */
.sidebar-info-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--gray-500);
}

.sidebar-info-item svg {
  color: var(--red);
  flex-shrink: 0;
  margin-top: 2px;
}

.sidebar-info-item strong {
  display: block;
  font-size: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-700);
  margin-bottom: 2px;
}

/* CTA card */
.sidebar-cta {
  text-align: center;
  padding: 28px 20px;
  background: linear-gradient(135deg, var(--gray-200) 0%, rgba(42,74,158,0.15) 100%);
}

.sidebar-cta__icon {
  width: 52px;
  height: 52px;
  background: rgba(230,57,70,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--red);
}

.sidebar-cta__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.sidebar-cta__text {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* ============================================
   POST NAVIGATION (prev/next)
   ============================================ */
.post-nav {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 600px) {
  .post-nav {
    grid-template-columns: 1fr;
  }
}

.post-nav__item {
  background: var(--gray-100);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-nav__item:hover {
  border-color: rgba(230,57,70,0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}

.post-nav__item--next {
  text-align: right;
}

.post-nav__direction {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 5px;
}

.post-nav__item--next .post-nav__direction {
  justify-content: flex-end;
}

.post-nav__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
  .blog-hero {
    padding: 100px 0 48px;
  }

  .blog-hero__title {
    font-size: 2.2rem;
  }

  .post-hero {
    padding: 100px 0 48px;
  }

  .post-hero__title {
    font-size: 1.9rem;
  }

  .post-body h2 {
    font-size: 1.45rem;
  }

  .post-sidebar {
    position: static;
  }
}

@media (max-width: 480px) {
  .blog-hero__title {
    font-size: 1.9rem;
  }

  .blog-card__title {
    font-size: 1.15rem;
  }

  .post-hero__title {
    font-size: 1.65rem;
  }
}
