/* ═══════════════════════════════════════════
   SINGLE ARTICLE PAGE STYLES
   ═══════════════════════════════════════════ */

.ar-page { background: var(--bg); }

/* ─── PROGRESS BAR ─────────────────────── */
.ar-progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(to right, var(--blue), var(--purple));
  z-index: 200;
  transition: width 0.1s linear;
}

/* ─── HERO ──────────────────────────────── */
.ar-hero {
  position: relative;
  min-height: 70svh;
  display: flex;
  align-items: flex-end;
  padding: 120px 5% 4rem;
  overflow: hidden;
}

.ar-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.ar-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.55) saturate(1.1);
  transform: scale(1.03); /* slight scale to avoid edge bleed */
}
.ar-hero-overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(to top, rgba(8,8,8,1) 0%, rgba(8,8,8,0.7) 30%, transparent 100%),
    linear-gradient(to right, rgba(8,8,8,0.7) 0%, transparent 50%);
}

.ar-hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.ar-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.ar-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  padding: 5px 12px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: 4px;
}
.ar-dot { opacity: 0.4; }

.ar-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--white);
  margin-bottom: 1.5rem;
  max-width: 850px;
}

.ar-intro {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  max-width: 750px;
  border-left: 2px solid var(--accent);
  padding-left: 1.2rem;
}

/* ─── CONTENT AREA ──────────────────────── */
.ar-main {
  position: relative;
  z-index: 2;
  padding: 4rem 5% 6rem;
}

.ar-content-wrapper {
  max-width: 720px;
  margin: 0 auto;
}

.ar-content-wrapper p {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.8;
  color: #dfdfdf;
  margin-bottom: 1.8rem;
}

.ar-content-wrapper p mark {
  background: rgba(59,130,246,0.15);
  color: #fff;
  padding: 0 4px;
  border-bottom: 1px solid var(--blue);
}

.ar-content-wrapper h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  color: var(--white);
  margin: 3rem 0 1.2rem;
  letter-spacing: 0.02em;
}

.ar-content-wrapper ul {
  margin: 0 0 2rem 1.5rem;
  padding: 0;
  color: #dfdfdf;
}

.ar-content-wrapper li {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 0.8rem;
  padding-left: 0.5rem;
}

.ar-content-wrapper li strong {
  color: var(--white);
  font-weight: 600;
}

/* Quote Blocks */
.ar-content-wrapper blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2vw, 1.8rem);
  line-height: 1.4;
  color: var(--accent);
  margin: 3.5rem 0;
  padding: 2rem 2.5rem;
  background: rgba(255,255,255,0.02);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
}

/* Tips Box */
.ar-tips-box {
  display: flex;
  gap: 1.2rem;
  margin: 2.5rem 0;
  padding: 1.5rem;
  background: rgba(59,130,246,0.06);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 12px;
}
.ar-tips-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.ar-tips-text {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: #dfdfdf;
}
.ar-tips-text strong {
  color: var(--white);
}

/* Images in body */
.ar-image-embed {
  margin: 3.5rem 0;
}
.ar-image-embed img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}
.ar-image-embed figcaption {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--gray);
  text-align: center;
  margin-top: 1rem;
}

/* Section divider */
.ar-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, var(--blue), var(--purple));
  margin: 4rem auto;
  border-radius: 2px;
}

/* ─── AUTHOR BOX ────────────────────────── */
.ar-author-box {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-top: 5rem;
}
.ar-author-img {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.ar-author-info h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 0.4rem;
}
.ar-author-info p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--gray);
  margin: 0;
}

/* ─── RELATED ARTICLES ──────────────────── */
.ar-related {
  background: var(--bg-2);
  padding: 6rem 5%;
  border-top: 1px solid var(--border);
}

.ar-related-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.ar-related-header {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--white);
  margin-bottom: 3rem;
}

.ar-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.ar-card {
  position: relative;
  transition: transform 0.4s var(--ease);
}
.ar-card:hover { transform: translateY(-5px); }

.ar-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.ar-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 1.2rem;
}

.ar-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.ar-card-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.1);
  transition: background 0.4s var(--ease);
}

.ar-card-link:hover .ar-card-thumb img { transform: scale(1.06); }
.ar-card-link:hover .ar-card-thumb-overlay { background: rgba(0,0,0,0.4); }

.ar-card-body {
  display: flex;
  flex-direction: column;
}

.ar-card-category {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.ar-card-title {
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--white);
  transition: color 0.3s;
}

.ar-card-link:hover .ar-card-title {
  color: var(--blue);
}

/* ─── RESPONSIVE ───────────────────────── */
@media (max-width: 900px) {
  .ar-related-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; }
  .ar-hero { padding: 100px 5% 4rem; min-height: 60svh; }
}

@media (max-width: 600px) {
  .ar-related-grid { grid-template-columns: 1fr; }
  .ar-author-box { flex-direction: column; text-align: center; gap: 1rem; }
  .ar-content-wrapper p { font-size: 1.05rem; }
  .ar-content-wrapper blockquote { padding: 1.5rem; }
}
