/* Popcorn Blog Design — front-end styles
   Colors/fonts come from CSS variables injected inline based on Settings → Popcorn Blog Design */

.pcbd-article-wrap {
	display: flex;
	gap: 40px;
	align-items: flex-start;
	max-width: 1200px;
	margin: 0 auto;
	font-family: var(--pcbd-body-font);
	color: var(--pcbd-text);
	background: var(--pcbd-bg);
	padding: 24px;
	border-radius: 24px;
}

.pcbd-article-body { flex: 1 1 auto; min-width: 0; }

/* Breadcrumb */
.pcbd-breadcrumb { font-size: 13px; color: #8a8578; margin-bottom: 14px; }
.pcbd-breadcrumb a { color: var(--pcbd-secondary); text-decoration: none; font-weight: 600; }
.pcbd-breadcrumb a:hover { text-decoration: underline; }
.pcbd-breadcrumb-current { color: #8a8578; }

/* Hero */
.pcbd-hero { position: relative; border-radius: 20px; overflow: hidden; margin-bottom: 18px; min-height: 220px; background: var(--pcbd-secondary); }
.pcbd-hero .pcbd-hero-img { width: 100%; height: 100%; max-height: 380px; object-fit: cover; display: block; }
.pcbd-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.45) 100%); }
.pcbd-hero-caption { position: absolute; left: 20px; bottom: 16px; }
.pcbd-hero-chip { background: var(--pcbd-primary); color: #fff; font-family: var(--pcbd-heading-font); font-weight: 600; font-size: 13px; padding: 6px 16px; border-radius: 999px; display: inline-block; }

/* Meta row */
.pcbd-meta-row { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #746f61; margin-bottom: 22px; flex-wrap: wrap; }
.pcbd-meta-dot { opacity: .5; }

/* Prose / article content */
.pcbd-prose { font-size: 17px; line-height: 1.75; }
.pcbd-prose h1, .pcbd-prose h2, .pcbd-prose h3, .pcbd-prose h4 {
	font-family: var(--pcbd-heading-font);
	color: var(--pcbd-text);
	font-weight: 700;
	line-height: 1.3;
	scroll-margin-top: 24px;
}
.pcbd-prose h2 { font-size: 26px; margin: 44px 0 16px; padding-top: 6px; border-top: 3px solid var(--pcbd-primary); padding-top: 18px; }
.pcbd-prose h3 { font-size: 20px; margin: 28px 0 10px; color: var(--pcbd-secondary); }
.pcbd-prose p { margin: 0 0 18px; }
.pcbd-prose a { color: var(--pcbd-secondary); font-weight: 600; }
.pcbd-prose strong { color: var(--pcbd-text); }
.pcbd-prose ul, .pcbd-prose ol { margin: 0 0 20px; padding-left: 4px; list-style: none; }
.pcbd-prose ul li, .pcbd-prose ol li {
	position: relative;
	padding: 8px 0 8px 30px;
	margin-bottom: 4px;
}
.pcbd-prose ul li::before {
	content: "";
	position: absolute; left: 0; top: 16px;
	width: 9px; height: 9px; border-radius: 50%;
	background: var(--pcbd-primary);
}
.pcbd-prose blockquote {
	background: #fff;
	border-left: 5px solid var(--pcbd-secondary);
	border-radius: 12px;
	padding: 18px 22px;
	margin: 24px 0;
	font-style: italic;
	box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.pcbd-prose table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.pcbd-prose table th { background: var(--pcbd-primary); color: #fff; font-family: var(--pcbd-heading-font); padding: 12px; text-align: left; }
.pcbd-prose table td { padding: 12px; border-bottom: 1px solid #e7e1d2; }
.pcbd-prose img { border-radius: 16px; max-width: 100%; height: auto; }

/* Sticky TOC sidebar */
.pcbd-toc-sidebar { flex: 0 0 260px; position: sticky; top: 24px; }
.pcbd-toc-inner {
	background: #fff;
	border-radius: 18px;
	padding: 22px;
	box-shadow: 0 4px 18px rgba(0,0,0,.06);
}
.pcbd-toc-title { font-family: var(--pcbd-heading-font); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--pcbd-primary); margin: 0 0 12px; }
.pcbd-toc-list { list-style: none; margin: 0 0 18px; padding: 0; }
.pcbd-toc-list li { margin-bottom: 10px; }
.pcbd-toc-list a { color: var(--pcbd-text); text-decoration: none; font-size: 14px; line-height: 1.4; display: block; border-left: 3px solid transparent; padding-left: 10px; transition: border-color .15s, color .15s; }
.pcbd-toc-list a:hover, .pcbd-toc-list a.pcbd-active { border-color: var(--pcbd-secondary); color: var(--pcbd-secondary); font-weight: 600; }
.pcbd-toc-cta {
	display: block; text-align: center;
	background: var(--pcbd-primary); color: #fff !important;
	font-family: var(--pcbd-heading-font); font-weight: 600;
	padding: 12px; border-radius: 999px; text-decoration: none;
}
.pcbd-toc-cta:hover { filter: brightness(1.08); }

/* CTA banner (mid/end article) */
.pcbd-cta-banner {
	background: var(--pcbd-secondary);
	border-radius: 20px;
	padding: 30px;
	text-align: center;
	margin: 36px 0;
}
.pcbd-cta-heading { color: #fff; font-family: var(--pcbd-heading-font); font-weight: 700; font-size: 20px; margin: 0 0 16px; }
.pcbd-cta-button {
	display: inline-block;
	background: var(--pcbd-primary); color: #fff !important;
	font-family: var(--pcbd-heading-font); font-weight: 600;
	padding: 12px 30px; border-radius: 999px; text-decoration: none;
}
.pcbd-cta-button:hover { filter: brightness(1.08); }

/* FAQ accordion */
.pcbd-faq-group { margin: 36px 0; }
.pcbd-faq-title { font-family: var(--pcbd-heading-font); font-size: 24px; margin-bottom: 16px; }
.pcbd-faq-item { background: #fff; border-radius: 14px; margin-bottom: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.pcbd-faq-question {
	width: 100%; display: flex; justify-content: space-between; align-items: center;
	background: none; border: none; cursor: pointer;
	padding: 18px 20px; text-align: left;
	font-family: var(--pcbd-heading-font); font-weight: 600; font-size: 16px; color: var(--pcbd-text);
}
.pcbd-faq-icon { width: 20px; height: 20px; position: relative; flex-shrink: 0; }
.pcbd-faq-icon::before, .pcbd-faq-icon::after { content: ""; position: absolute; background: var(--pcbd-primary); border-radius: 2px; transition: transform .2s; }
.pcbd-faq-icon::before { width: 100%; height: 3px; top: 8.5px; left: 0; }
.pcbd-faq-icon::after { width: 3px; height: 100%; left: 8.5px; top: 0; }
.pcbd-faq-item.pcbd-open .pcbd-faq-icon::after { transform: scaleY(0); }
.pcbd-faq-answer { max-height: 0; overflow: hidden; transition: max-height .25s ease; padding: 0 20px; }
.pcbd-faq-answer p { margin: 0 0 14px; }
.pcbd-faq-item.pcbd-open .pcbd-faq-answer { padding-bottom: 18px; }

/* Related reads */
.pcbd-related { margin-top: 40px; }
.pcbd-related h2 { font-family: var(--pcbd-heading-font); font-size: 24px; margin-bottom: 18px; }
.pcbd-related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.pcbd-related-card { display: block; background: #fff; border-radius: 16px; overflow: hidden; text-decoration: none; box-shadow: 0 2px 10px rgba(0,0,0,.05); transition: transform .15s; }
.pcbd-related-card:hover { transform: translateY(-3px); }
.pcbd-related-thumb img { width: 100%; height: 140px; object-fit: cover; display: block; }
.pcbd-related-body { padding: 14px 16px; }
.pcbd-related-cat { color: var(--pcbd-secondary); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.pcbd-related-body h3 { font-family: var(--pcbd-heading-font); font-size: 15px; margin: 6px 0 0; color: var(--pcbd-text); line-height: 1.35; }

/* Sticky WhatsApp button */
.pcbd-sticky-whatsapp {
	position: fixed; right: 22px; bottom: 22px; z-index: 999;
	width: 56px; height: 56px; border-radius: 50%;
	background: var(--pcbd-whatsapp);
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 4px 16px rgba(0,0,0,.25);
	transition: transform .15s;
}
.pcbd-sticky-whatsapp:hover { transform: scale(1.06); }

/* Responsive */
@media (max-width: 880px) {
	.pcbd-article-wrap { flex-direction: column; padding: 16px; border-radius: 16px; }
	.pcbd-toc-sidebar { position: static; width: 100%; flex-basis: auto; order: 2; }
	.pcbd-article-body { order: 1; }
}
