/* ============================================
   PROFITPILOT — Article Shared Styles
   ============================================ */

.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 4rem; align-items: start; }
.article-body { max-width: 760px; }
.article-body h2 { font-size: 1.65rem; margin: 3rem 0 1rem; padding-top: 1.5rem; border-top: 1px solid rgba(155,77,192,0.15); color: var(--white); }
.article-body h3 { font-size: 1.2rem; margin: 2rem 0 0.8rem; color: var(--purple-light); font-family: var(--font-display); }
.article-body p  { font-size: 1.02rem; line-height: 1.9; color: var(--gray-light); margin-bottom: 1.3rem; }
.article-body ul, .article-body ol { padding-left: 1.6rem; margin-bottom: 1.4rem; }
.article-body li { font-size: 0.98rem; color: var(--gray-light); line-height: 1.85; margin-bottom: 0.5rem; }
.article-body ul li::marker { color: var(--purple); font-size: 1.1em; }
.article-body ol li::marker { color: var(--purple); font-weight: 700; }
.article-body strong { color: var(--white); font-weight: 600; }
.article-body em { color: var(--purple-light); font-style: italic; }
.article-body a { color: var(--purple-light); border-bottom: 1px solid rgba(155,77,192,0.3); transition: 0.2s; text-decoration: none; }
.article-body a:hover { color: var(--white); border-color: var(--purple-light); }

/* Article Header */
.article-header { margin-bottom: 2.5rem; }
.article-header h1 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); line-height: 1.2; margin-bottom: 1.2rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; font-size: 0.83rem; color: var(--gray); padding: 1.2rem 0; border-top: 1px solid rgba(255,255,255,0.07); border-bottom: 1px solid rgba(255,255,255,0.07); margin-bottom: 2rem; }
.article-meta span { display: flex; align-items: center; gap: 0.4rem; }

/* Highlight Boxes */
.highlight-box { background: rgba(155,77,192,0.08); border-left: 3px solid var(--purple); border-radius: 0 10px 10px 0; padding: 1.4rem 1.8rem; margin: 2rem 0; }
.highlight-box.gold { background: rgba(201,168,76,0.07); border-color: var(--gold); }
.highlight-box.danger { background: rgba(239,68,68,0.06); border-color: #ef4444; }
.highlight-box p { margin: 0; font-size: 0.97rem; }

/* Table */
.data-table { width: 100%; border-collapse: collapse; margin: 2rem 0; font-size: 0.88rem; border-radius: 8px; overflow: hidden; }
.data-table th { background: rgba(155,77,192,0.18); color: var(--purple-light); padding: 0.9rem 1.1rem; text-align: left; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.data-table td { padding: 0.85rem 1.1rem; border-bottom: 1px solid rgba(255,255,255,0.05); color: var(--gray-light); background: var(--navy-mid); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(155,77,192,0.05); }

/* Step Cards */
.step-card { display: flex; gap: 1.5rem; background: var(--navy-mid); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 1.8rem; margin-bottom: 1.2rem; transition: var(--transition); }
.step-card:hover { border-color: rgba(155,77,192,0.25); }
.step-num { width: 46px; height: 46px; min-width: 46px; background: var(--purple); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: white; box-shadow: 0 4px 15px rgba(155,77,192,0.35); }
.step-content h4 { font-size: 1.02rem; margin-bottom: 0.4rem; color: var(--white); }
.step-content p  { font-size: 0.9rem; margin: 0; line-height: 1.7; }

/* Keywords Cloud */
.kw-cloud { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.5rem 0; }
.kw-tag { font-size: 0.78rem; font-weight: 600; padding: 0.4rem 1rem; border-radius: 20px; background: rgba(155,77,192,0.1); color: var(--purple-light); border: 1px solid rgba(155,77,192,0.2); cursor: default; transition: 0.2s; }
.kw-tag:hover { background: rgba(155,77,192,0.2); }
.kw-tag.lg { font-size: 0.88rem; padding: 0.5rem 1.2rem; background: rgba(155,77,192,0.14); }
.kw-tag.sm { font-size: 0.7rem; padding: 0.3rem 0.8rem; opacity: 0.75; }

/* Table of Contents */
.toc { background: var(--navy-mid); border: 1px solid rgba(155,77,192,0.2); border-radius: 12px; padding: 1.8rem 2rem; margin-bottom: 2.5rem; }
.toc h4 { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--purple-light); margin-bottom: 1rem; font-family: var(--font-body); }
.toc ol { padding-left: 1.3rem; margin: 0; }
.toc li { font-size: 0.9rem; margin-bottom: 0.55rem; color: var(--gray-light); }
.toc a { color: var(--gray-light); border: none; text-decoration: none; }
.toc a:hover { color: var(--purple-light); }

/* Sidebar */
.sidebar-sticky { position: sticky; top: 7rem; }
.sidebar-widget { background: var(--navy-mid); border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; padding: 1.8rem; margin-bottom: 1.5rem; }
.sidebar-widget h5 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--purple-light); margin-bottom: 1.2rem; padding-bottom: 0.8rem; border-bottom: 1px solid rgba(155,77,192,0.15); font-family: var(--font-body); }
.related-link { display: flex; gap: 0.8rem; padding: 0.7rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.related-link:last-child { border-bottom: none; padding-bottom: 0; }
.related-link .icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.related-link a { font-size: 0.87rem; color: var(--gray-light); border: none; text-decoration: none; line-height: 1.45; }
.related-link a:hover { color: var(--purple-light); }

/* Author Card */
.author-card { background: var(--navy-mid); border: 1px solid rgba(155,77,192,0.2); border-radius: 14px; padding: 2rem; margin-top: 3.5rem; display: flex; gap: 1.5rem; align-items: flex-start; }
.author-photo { width: 82px; height: 82px; border-radius: 50%; overflow: hidden; border: 2.5px solid var(--purple); flex-shrink: 0; box-shadow: 0 0 20px rgba(155,77,192,0.3); }
.author-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.author-info h4 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.author-info .role { font-size: 0.82rem; color: var(--purple-light); margin-bottom: 0.8rem; display: block; }
.author-info p { font-size: 0.88rem; margin: 0; line-height: 1.7; }

/* FAQ */
.faq-item { border: 1px solid rgba(255,255,255,0.07); border-radius: 10px; margin-bottom: 0.8rem; overflow: hidden; }
.faq-q { padding: 1.2rem 1.5rem; font-weight: 600; font-size: 0.97rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; background: var(--navy-mid); transition: 0.2s; user-select: none; }
.faq-q:hover { background: rgba(155,77,192,0.08); }
.faq-a { padding: 0 1.5rem 1.3rem; font-size: 0.92rem; color: var(--gray-light); line-height: 1.78; display: none; background: var(--navy-mid); }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--purple-light); }
.faq-icon { color: var(--purple-light); font-size: 1.3rem; transition: 0.3s; line-height: 1; font-weight: 300; }

/* Internal links box */
.internal-links-box { margin-top: 3rem; padding: 2rem; background: var(--navy-mid); border-radius: 12px; border: 1px solid rgba(155,77,192,0.15); }
.internal-links-box h3 { margin-top: 0; font-size: 1.05rem; margin-bottom: 1rem; }
.internal-links-box ul { margin: 0; padding-left: 1.2rem; }
.internal-links-box li { margin-bottom: 0.65rem; font-size: 0.93rem; }

/* Blog tags in header */
.blog-tag-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.blog-tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.28rem 0.75rem; border-radius: 4px; background: rgba(155,77,192,0.12); color: var(--purple-light); border: 1px solid rgba(155,77,192,0.25); }

/* Responsive */
@media(max-width: 960px) {
  .article-layout { grid-template-columns: 1fr; gap: 3rem; }
  .sidebar-sticky { position: static; }
}
@media(max-width: 600px) {
  .article-body h2 { font-size: 1.4rem; }
  .article-header h1 { font-size: 1.7rem; }
  .author-card { flex-direction: column; align-items: center; text-align: center; }
  .data-table { font-size: 0.8rem; }
  .data-table th, .data-table td { padding: 0.6rem 0.7rem; }
}
