/**
 * Single Post Styles — Agent Driven Development Blog
 *
 * Loaded only on singular post pages.
 *
 * @package addb
 */

/* Reading-optimized body text */
.addb-single .wp-block-post-content {
	font-size: 1.125rem;
	line-height: 1.75;
	color: var(--addb-color-text);
}

.addb-single .wp-block-post-content p {
	margin-bottom: 1.5rem;
}

.addb-single .wp-block-post-content h2 {
	margin-top: 3rem;
	margin-bottom: 1rem;
}

.addb-single .wp-block-post-content h3 {
	margin-top: 2.25rem;
	margin-bottom: 0.75rem;
}

.addb-single .wp-block-post-content ul,
.addb-single .wp-block-post-content ol {
	margin-bottom: 1.5rem;
}

.addb-single .wp-block-post-content li {
	margin-bottom: 0.5rem;
}

.addb-single .wp-block-post-content blockquote {
	margin: 2rem 0;
}

.addb-single .wp-block-post-content pre {
	margin: 2rem 0;
	overflow-x: auto;
}

.addb-single .wp-block-post-content img {
	margin: 2rem 0;
}

.addb-single .wp-block-post-content figure {
	margin: 2.5rem 0;
}

.addb-single .wp-block-post-content figcaption {
	margin-top: 0.5rem;
	font-size: 0.85rem;
	color: var(--addb-color-text-faint);
}

/* ================================================================
   SINGLE — DARK MODE
   ================================================================ */

[data-theme="dark"] .addb-single .wp-block-post-content {
	color: var(--addb-color-text);
}

[data-theme="dark"] .addb-single .wp-block-post-content p {
	color: var(--addb-color-text);
}

[data-theme="dark"] .addb-single .wp-block-post-content h1,
[data-theme="dark"] .addb-single .wp-block-post-content h2,
[data-theme="dark"] .addb-single .wp-block-post-content h3,
[data-theme="dark"] .addb-single .wp-block-post-content h4,
[data-theme="dark"] .addb-single .wp-block-post-content h5,
[data-theme="dark"] .addb-single .wp-block-post-content h6 {
	color: var(--addb-color-text-strong);
}

[data-theme="dark"] .addb-single .wp-block-post-content strong,
[data-theme="dark"] .addb-single .wp-block-post-content b {
	color: var(--addb-color-text-strong);
	font-weight: 600;
}

[data-theme="dark"] .addb-single .wp-block-post-content em {
	color: var(--addb-color-text-muted);
}

[data-theme="dark"] .addb-single .wp-block-post-content a {
	color: var(--addb-color-accent);
	text-decoration-color: rgb(255 255 255 / 40%);
}

[data-theme="dark"] .addb-single .wp-block-post-content a:hover {
	color: #fff;
	text-decoration-color: rgb(255 255 255 / 65%);
}

[data-theme="dark"] .addb-single .wp-block-post-content blockquote,
[data-theme="dark"] .addb-single .wp-block-post-content .wp-block-quote {
	border-left-color: var(--addb-color-accent);
	color: var(--addb-color-text-muted);
}

[data-theme="dark"] .addb-single .wp-block-post-content pre,
[data-theme="dark"] .addb-single .wp-block-post-content .wp-block-code {
	background-color: #0a0a0a;
	border-color: var(--addb-color-border);
	color: #d4d4d4;
}

[data-theme="dark"] .addb-single .wp-block-post-content code {
	background-color: #0a0a0a;
	color: #d4d4d4;
	padding: 0.15em 0.35em;
	border-radius: 3px;
}

[data-theme="dark"] .addb-single .wp-block-post-content figcaption {
	color: var(--addb-color-text-faint);
}

[data-theme="dark"] .addb-single .wp-block-post-content hr {
	border-color: var(--addb-color-border);
}

[data-theme="dark"] .addb-single .wp-block-post-content ul li::marker,
[data-theme="dark"] .addb-single .wp-block-post-content ol li::marker {
	color: var(--addb-color-text-muted);
}

/* ── Progress bar color consistent in dark ── */
[data-theme="dark"] .addb-progress-bar__fill {
	background: var(--addb-color-accent);
}
