
/* FOCUS VISIBILITY (accessibility) */
input:focus, select:focus, textarea:focus, button:focus-visible {
  box-shadow: 0 0 0 3px rgba(108,64,196,.3);
  border-color: var(--purple) !important;
}

/* ============================================================
   blog.css — Shared styles for all EEE blog posts
   Single source of truth. Edit here, every post updates.
   ============================================================ */

/* READING PROGRESS */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--lavender));
  z-index: 9999;
  width: 0;
  transition: width .15s linear;
}

/* ARTICLE HERO */
.article-hero {
  padding: 11rem 5rem 4rem;
  background: var(--black);
  position: relative;
  overflow: hidden;
}
.article-hero::before {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  background: linear-gradient(135deg, #6C40C4, #4A2A9A);
  border-radius: 50%;
  filter: blur(140px);
  opacity: .18;
  top: -200px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}
.article-hero::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, #BEA9E7, #6C40C4);
  border-radius: 50%;
  filter: blur(120px);
  opacity: .06;
  bottom: -100px;
  left: 5%;
  animation: float 10s ease-in-out infinite reverse;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(20px); }
}
.article-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

/* BREADCRUMB */
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 2rem;
  font-size: .75rem;
  color: rgba(255,255,255,.35);
}
.breadcrumb a {
  color: rgba(255,255,255,.45);
  text-decoration: none;
  transition: color .3s;
}
.breadcrumb a:hover { color: var(--lavender); }
.breadcrumb svg {
  width: 12px;
  height: 12px;
  stroke: rgba(255,255,255,.25);
}

/* ARTICLE META */
.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.article-cat {
  font-size: .68rem;
  font-weight: 600;
  color: var(--lavender);
  text-transform: uppercase;
  letter-spacing: .14em;
  background: rgba(108,64,196,.15);
  border: 1px solid rgba(108,64,196,.3);
  padding: .35rem 1rem;
  border-radius: 50px;
}
.article-date, .article-read-time {
  font-size: .78rem;
  color: rgba(255,255,255,.35);
  font-weight: 300;
}
.article-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

/* HERO IMAGE */
.article-hero-img {
  max-width: 900px;
  margin: -2rem auto 0;
  position: relative;
  z-index: 2;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--gray);
}
.article-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-hero-img.no-image { display: none; }

/* ============================================================
   ARTICLE BODY — the main content area
   ============================================================ */
.article-body {
  max-width: 1060px;
  margin: 0 auto;
  padding: 4rem 5rem 6rem;
}
.article-body h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--black);
  margin: 3.5rem 0 1.25rem;
  line-height: 1.25;
  padding-left: 1.1rem;
  border-left: 3px solid var(--lavender);
}
.article-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--black);
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}
.article-body p {
  font-size: 1.08rem;
  color: #3a3a3a;
  line-height: 1.95;
  margin-bottom: 1.65rem;
  font-weight: 300;
}
.article-body p strong {
  font-weight: 600;
  color: var(--black);
}
.article-body a {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .3s;
}
.article-body a:hover { color: var(--purple-dark); }
.article-body ul, .article-body ol {
  margin: 0 0 1.65rem 1.5rem;
  color: #3a3a3a;
  font-size: 1.08rem;
  line-height: 1.95;
  font-weight: 300;
}
.article-body li { margin-bottom: .6rem; }
.article-body li::marker { color: var(--purple); }
.article-body blockquote {
  border-left: 4px solid var(--purple);
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
  background: rgba(108,64,196,.03);
  border-radius: 0 16px 16px 0;
  font-style: italic;
  color: #555;
  font-size: 1.1rem;
  line-height: 1.85;
}
.article-body img {
  width: 100%;
  border-radius: 16px;
  margin: 2.5rem 0;
  display: block;
}
.article-body .caption {
  text-align: center;
  font-size: .78rem;
  color: #999;
  margin-top: -.75rem;
  margin-bottom: 2rem;
  font-weight: 300;
}
.article-body hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lavender), transparent);
  margin: 3rem 0;
}

/* PULL QUOTE */
.pull-quote {
  text-align: center;
  padding: 3rem 2.5rem;
  margin: 3rem 0;
  position: relative;
  background: linear-gradient(135deg, rgba(108,64,196,.025), rgba(190,169,231,.05));
  border-radius: 20px;
  border: 1px solid rgba(108,64,196,.08);
}
.pull-quote::before {
  content: "\201C";
  font-size: 6rem;
  font-weight: 900;
  color: rgba(108,64,196,.1);
  position: absolute;
  top: -.5rem;
  left: 50%;
  transform: translateX(-50%);
  line-height: 1;
  font-family: Georgia, serif;
}
.pull-quote p {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.5;
  max-width: 600px;
  margin: 0 auto;
}

/* AUTHOR CARD */
.author-card {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1.25rem 0.75rem 0.75rem;
  border-radius: 12px;
  background: var(--gray);
  margin: 3rem 0 0;
  border: 1px solid rgba(108,64,196,.08);
}
.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #7C3AED, #A78BFA);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--white);
  flex-shrink: 0;
  align-self: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(124,58,237,0.2);
}
.author-avatar::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  pointer-events: none;
}
.author-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.author-info h4 {
  font-size: .82rem;
  font-weight: 700;
  margin: 0;
  padding: 0;
  color: var(--black);
  line-height: 1.2;
}
.author-info p {
  font-size: .65rem;
  color: var(--purple);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0.15rem 0 0;
  padding: 0;
}

/* SHARE BAR */
.share-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2rem 0;
  margin-top: 2rem;
  border-top: 1px solid var(--mid-gray);
}
.share-label {
  font-size: .75rem;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1.5px solid var(--mid-gray);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .3s;
}
.share-btn:hover {
  border-color: var(--purple);
  background: rgba(108,64,196,.06);
}
.share-btn svg {
  width: 18px;
  height: 18px;
  stroke: #666;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.share-btn:hover svg { stroke: var(--purple); }

/* RELATED POSTS */
.related-section {
  background: var(--gray);
  padding: 6rem 5rem;
}
.related-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.related-inner h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 2.5rem;
  text-align: center;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.related-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2rem;
  border: 1.5px solid rgba(0,0,0,.06);
  transition: all .4s ease;
  text-decoration: none;
  color: var(--black);
}
.related-card:hover {
  border-color: var(--lavender);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(108,64,196,.1);
}
.related-card-cat {
  font-size: .65rem;
  font-weight: 600;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .65rem;
  display: block;
}
.related-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: .5rem;
}
.related-card p {
  font-size: .82rem;
  color: #666;
  font-weight: 300;
  line-height: 1.7;
}

/* COMPARISON TABLE (used in some posts) */
.table-scroll-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2rem 0;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.08);
}
.table-scroll-wrapper .comparison-table {
  margin: 0;
  border: none;
  border-radius: 0;
  min-width: 640px;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: .9rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
}
.comparison-table th {
  background: var(--black);
  color: var(--white);
  padding: .85rem 1rem;
  font-weight: 600;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-align: left;
}
.comparison-table td {
  padding: .75rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,.05);
  color: #3a3a3a;
}
.comparison-table tbody tr:hover {
  background: rgba(108,64,196,.02);
}

/* ============================================================
   FEATURED IMAGE
   ============================================================ */
.article-hero-image {
  max-width: 1060px;
  margin: 0 auto;
  padding: 2.5rem 5rem 0;
}
.article-featured-image {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

@media (max-width: 900px) {
  .article-hero-image { padding: 1.5rem 1.75rem 0; }
  .article-featured-image { max-height: 260px; border-radius: 10px; }
}

/* ============================================================
   RESPONSIVE — mobile overrides
   ============================================================ */
@media (max-width: 900px) {
  .article-hero { padding: 8rem 1.75rem 3rem; }
  .article-body { padding: 2.5rem 1.75rem 4rem; max-width: 100%; }
  .article-body h2 { padding-left: 0; border-left: none; }
  .pull-quote { padding: 2rem 1.25rem; margin: 2rem 0; }
  .article-hero-img { margin-left: 1.75rem; margin-right: 1.75rem; border-radius: 14px; }
  .author-card { padding: 0.65rem 1rem 0.65rem 0.65rem; }
  .related-section { padding: 4rem 1.75rem; }
  .related-grid { grid-template-columns: 1fr; }
  .share-bar { flex-wrap: wrap; }
  .comparison-table { font-size: .78rem; }
  .comparison-table th, .comparison-table td { padding: .6rem .5rem; }
}
