/* ========== ARTICLE LAYOUT & STRUCTURE ========== */
.article-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* BREADCRUMB */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  flex-wrap: wrap;
  font-weight: 500;
}
.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--accent-solid); }
.breadcrumb span { opacity: .5; }

/* ARTICLE HEADER */
.article-tag {
  display: inline-block;
  background: rgba(123, 93, 246, 0.08);
  color: var(--accent-solid);
  padding: 6px 16px;
  border-radius: 40px;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 20px;
  border: 1px solid rgba(123, 93, 246, 0.15);
}
h1.article-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--text-secondary);
  font-size: .9rem;
  margin-bottom: 40px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 24px;
}
.article-meta i { color: var(--accent-solid); }

/* ARTICLE BODY */
.article-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-primary);
}
.article-body p { margin-bottom: 24px; }
.article-body h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 48px 0 20px;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}
.article-body h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--text-primary);
}

/* IDEA CARDS */
.idea-card {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: 24px;
  padding: 32px;
  margin: 24px 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}
.idea-card:hover {
  border-color: var(--accent-solid);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.idea-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--accent-gradient);
  color: #fff;
  border-radius: 50%;
  font-weight: 800;
  font-size: .9rem;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px var(--glow);
}
.idea-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  margin-top: 0;
  color: var(--text-primary);
}
.idea-card p {
  font-size: .95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 0;
}
.best-label {
  display: inline-block;
  background: var(--accent-gradient);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 750;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px var(--glow);
}

/* INLINE CTA */
.inline-cta {
  background: linear-gradient(135deg, #7b5df6 0%, #ff7a2f 100%);
  color: #fff;
  border-radius: 24px;
  padding: 36px 40px;
  margin: 40px 0;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.inline-cta::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 10% 20%, rgba(255,255,255,0.15), transparent 40%);
  z-index: -1;
}
.inline-cta h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.inline-cta p {
  opacity: .9;
  font-size: .95rem;
  margin-bottom: 20px;
}
.inline-cta a {
  background: #fff;
  color: #7b5df6;
  padding: 12px 32px;
  border-radius: 40px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.inline-cta a:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
  color: #ff7a2f;
}

/* SHARE BAR */
.share-bar {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: 20px;
  padding: 24px 28px;
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}
.share-bar p {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}
.share-btns {
  display: flex;
  gap: 12px;
}
.share-btn {
  padding: 10px 20px;
  border-radius: 40px;
  border: 1.5px solid var(--card-border);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  transition: all 0.3s;
  box-shadow: var(--shadow-sm);
}
.share-btn:hover {
  background: var(--accent-solid);
  color: #fff;
  border-color: var(--accent-solid);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px var(--glow);
}

/* RELATED ARTICLES */
.related { margin-top: 64px; }
.related h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-primary);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.related-card {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: 20px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.related-card:hover {
  border-color: var(--accent-solid);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.related-card .emoji {
  font-size: 2.25rem;
  margin-bottom: 12px;
  display: block;
  transition: transform 0.3s ease;
}
.related-card:hover .emoji {
  transform: scale(1.2) rotate(-5deg);
}
.related-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}

/* PROGRESS BAR */
#readProgress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, #7b5df6, #ff7a2f);
  z-index: 9999; transition: width .1s linear;
  box-shadow: 0 0 8px rgba(123,93,246,.5);
}

/* HERO BANNER */
.article-hero {
  background: linear-gradient(135deg, rgba(123,93,246,.12) 0%, rgba(255,122,47,.08) 100%);
  border: 1.5px solid var(--card-border);
  border-radius: 28px;
  padding: 48px 40px 40px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.article-hero::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(123,93,246,.18), transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.article-hero::after {
  content: '';
  position: absolute; bottom: -40px; left: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(255,122,47,.15), transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.hero-emoji {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 16px;
  animation: floatEmoji 3s ease-in-out infinite;
}
@keyframes floatEmoji {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* SCROLL REVEAL EFFECT */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left  { opacity:0; transform:translateX(-32px); transition: opacity .6s ease, transform .6s ease; }
.reveal-left.visible  { opacity:1; transform:translateX(0); }
.reveal-right { opacity:0; transform:translateX(32px);  transition: opacity .6s ease, transform .6s ease; }
.reveal-right.visible { opacity:1; transform:translateX(0); }

/* CALLOUT / QUOTE BLOCK */
.callout {
  background: linear-gradient(135deg, rgba(123,93,246,.07), rgba(255,122,47,.05));
  border-left: 4px solid var(--accent-solid);
  border-radius: 0 16px 16px 0;
  padding: 20px 24px;
  margin: 32px 0;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.7;
  position: relative;
}
.callout::before {
  content: '"';
  position: absolute; top: -12px; left: 16px;
  font-size: 4rem; color: var(--accent-solid);
  opacity: .15; font-family: Georgia, serif; line-height: 1;
}

/* STAT CHIPS */
.stat-chips {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin: 28px 0;
}
.stat-chip {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: 40px;
  padding: 10px 20px;
  font-size: .88rem;
  font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px;
  backdrop-filter: blur(8px);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}
.stat-chip i { color: var(--accent-solid); }

/* IDEA ICON CHIP */
.idea-icon {
  font-size: 1.6rem;
  display: inline-block;
  margin-bottom: 12px;
  background: linear-gradient(135deg,rgba(123,93,246,.1),rgba(255,122,47,.08));
  border-radius: 14px;
  padding: 10px 14px;
  transition: transform .3s ease;
}
.idea-card:hover .idea-icon { transform: rotate(-8deg) scale(1.15); }

/* FAQ ACCORDION */
.faq-item {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition: border-color .2s;
}
.faq-item:hover { border-color: var(--accent-solid); }
.faq-question {
  width: 100%; background: none; border: none;
  padding: 20px 24px; display: flex;
  align-items: center; justify-content: space-between;
  cursor: pointer; font-weight: 700;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem; color: var(--text-primary);
  text-align: left; gap: 16px;
}
.faq-question .faq-chevron {
  flex-shrink: 0;
  width: 28px; height: 28px;
  background: rgba(123,93,246,.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s ease, background .2s;
  font-size: .75rem; color: var(--accent-solid);
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  background: var(--accent-solid); color: #fff;
}
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height .4s cubic-bezier(.16,1,.3,1), padding .3s;
  padding: 0 24px;
  font-size: .95rem; color: var(--text-secondary); line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 300px; padding: 0 24px 20px; }

/* BACK TO TOP FLOAT BUTTON */
#backToTop {
  position: fixed; bottom: 32px; right: 32px;
  width: 48px; height: 48px;
  background: var(--accent-gradient);
  border: none; border-radius: 50%;
  color: #fff; font-size: 1.1rem;
  cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  box-shadow: 0 8px 20px var(--glow);
  opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s;
  z-index: 500;
}
#backToTop.visible { opacity: 1; pointer-events: auto; }
#backToTop:hover { transform: translateY(-4px); }

/* ARTICLE MEDIA QUERIES */
@media (max-width: 768px) {
  .share-bar { flex-direction: column; text-align: center; }
  .share-btns { width: 100%; justify-content: center; }
}
@media (max-width: 600px) {
  .article-hero { padding: 32px 20px; }
  .stat-chips { gap: 8px; }
  .stat-chip { font-size: .8rem; padding: 8px 14px; }
}
