/* ========================================
   BRIGHTSHAPE — Article Page Styles
   ======================================== */

/* --- Article Page — remove padding, hero extends behind fixed header --- */
.article-page {
  padding-top: 0 !important;
}

/* --- Article Hero --- */
.article-hero {
  padding: 140px 0 56px;
  background: var(--ink);
  border-bottom: none;
  position: relative;
  overflow: hidden;
}

/* Decorative grid pattern */
.article-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 80% 20%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 80% 20%, black 0%, transparent 70%);
}

/* Accent glow */
.article-hero::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(5, 150, 105, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

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

.article-hero .tag {
  margin-bottom: 20px;
  background: rgba(5, 150, 105, 0.15);
  color: var(--emerald-light);
  border-color: rgba(5, 150, 105, 0.25);
}

.article-hero h1 {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.5px;
  color: var(--white);
  margin-bottom: 24px;
}

.article-hero h1 .light {
  font-weight: 400;
  font-style: italic;
  color: var(--gray-400);
}

.article-intro {
  font-size: 18px;
  line-height: 1.7;
  color: var(--gray-400);
  margin-bottom: 32px;
  max-width: 600px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--gray-500);
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.article-meta .author {
  font-weight: 600;
  color: var(--white);
}

.article-meta span:not(:last-child)::after,
.article-meta time::after {
  content: "\00b7";
  margin-left: 16px;
  color: var(--gray-400);
}

/* --- Article Body --- */
.article-body {
  padding: 64px 0 80px;
}

.article-body > p:first-child {
  font-size: 18px;
  line-height: 1.8;
  color: var(--gray-600);
}

.article-body p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--slate);
  margin-bottom: 24px;
}

.article-body h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 56px;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  line-height: 1.3;
}

.article-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 36px;
  margin-bottom: 12px;
}

.article-body ul,
.article-body ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.article-body ul {
  list-style: disc;
}

.article-body ol {
  list-style: decimal;
}

.article-body li {
  font-size: 16px;
  line-height: 1.85;
  color: var(--slate);
  margin-bottom: 8px;
}

.article-body a:not(.btn) {
  color: var(--emerald);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(5, 150, 105, 0.3);
  transition: text-decoration-color var(--transition-fast);
}

.article-body a:not(.btn):hover {
  color: var(--emerald-dark);
  text-decoration-color: var(--emerald);
}

.article-body strong {
  font-weight: 600;
  color: var(--ink);
}

.article-body blockquote {
  border-left: 3px solid var(--emerald);
  padding: 16px 24px;
  margin: 32px 0;
  background: var(--gray-50);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-body blockquote p {
  font-style: italic;
  color: var(--gray-600);
  margin-bottom: 0;
}

/* --- Article CTA --- */
.article-cta {
  margin-top: 64px;
  padding: 40px;
  background: var(--mist);
  border-radius: var(--radius-lg);
  text-align: center;
}

.article-cta p {
  font-size: 15px;
  color: var(--gray-600);
  margin-bottom: 20px;
}

.article-cta .btn {
  display: inline-flex;
}

/* --- Related Articles --- */
.article-related {
  padding: 64px 0 80px;
  background: var(--mist);
}

.article-related h3 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--emerald);
  margin-bottom: 24px;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.related-card {
  display: block;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.related-card:hover {
  border-color: var(--emerald);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.related-card .tag {
  margin-bottom: 10px;
}

.related-card h4 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
  line-height: 1.4;
}

.related-card .read-more {
  font-size: 13px;
  font-weight: 500;
  color: var(--emerald);
}

/* --- Reading Progress Bar --- */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--emerald);
  z-index: 1001;
  width: 0%;
  transition: width 50ms linear;
}

/* --- Responsive --- */
@media (max-width: 1023px) {
  .article-hero {
    padding: 100px 0 44px;
  }

  .article-hero h1 {
    font-size: 32px;
  }
}

@media (max-width: 767px) {
  .article-hero {
    padding: 90px 0 36px;
  }

  .article-hero h1 {
    font-size: 28px;
    letter-spacing: -0.5px;
  }

  .article-intro {
    font-size: 16px;
  }

  .article-meta {
    flex-wrap: wrap;
    gap: 8px;
  }

  .article-body {
    padding: 40px 0 60px;
  }

  .article-body h2 {
    font-size: 22px;
    margin-top: 40px;
  }

  .article-cta {
    padding: 28px 20px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}
