/* =========================================================
   Mag Opony — widok wpisu bloga + lista "Poradniki" (bez Elementora)
   Motyw potomny: elementor-hello-theme-master-child
   ========================================================= */

:root {
	--mo-accent: #0c71c3;
	--mo-accent-dark: #095591;
	--mo-ink: #1d2733;
	--mo-muted: #6b7787;
	--mo-line: #e6eaef;
	--mo-bg-soft: #f5f7fa;
	--mo-radius: 12px;
	--mo-maxw: 860px;
}

/* Owijka i kontener */
.mo-single-wrap { background: #fff; padding: 32px 20px 64px; }
.mo-container { max-width: var(--mo-maxw); margin: 0 auto; }

/* Breadcrumbs (Yoast) */
.mo-breadcrumbs { font-size: 14px; color: var(--mo-muted); margin: 0 0 22px; line-height: 1.5; }
.mo-breadcrumbs a { color: var(--mo-muted); text-decoration: none; }
.mo-breadcrumbs a:hover { color: var(--mo-accent); text-decoration: underline; }
.mo-breadcrumbs .breadcrumb_last { color: var(--mo-ink); font-weight: 600; }

/* Naglowek wpisu */
.mo-post-header { margin-bottom: 24px; }
.mo-post-cats { margin-bottom: 14px; }
.mo-post-cats a {
	display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em;
	text-transform: uppercase; color: var(--mo-accent); background: rgba(12,113,195,.09);
	padding: 5px 12px; border-radius: 999px; text-decoration: none; margin: 0 6px 6px 0;
	transition: background .15s ease, color .15s ease;
}
.mo-post-cats a:hover { background: var(--mo-accent); color: #fff; }
.mo-post-title { font-size: clamp(28px,4vw,42px); line-height: 1.18; font-weight: 800; color: var(--mo-ink); margin: 0 0 16px; }
.mo-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--mo-muted); }
.mo-meta-sep { color: var(--mo-line); }

/* Grafika wyrozniajaca */
.mo-post-thumb { margin: 0 0 32px; border-radius: var(--mo-radius); overflow: hidden; box-shadow: 0 12px 32px rgba(29,39,51,.10); }
.mo-post-thumb img { display: block; width: 100%; height: auto; }

/* Tresc */
.mo-post-content { font-size: 18px; line-height: 1.75; color: #33404f; }
.mo-post-content > *:first-child { margin-top: 0; }
.mo-post-content p { margin: 0 0 1.35em; }
.mo-post-content h2 { font-size: 28px; line-height: 1.3; font-weight: 800; color: var(--mo-ink); margin: 1.8em 0 .6em; }
.mo-post-content h3 { font-size: 22px; line-height: 1.35; font-weight: 700; color: var(--mo-ink); margin: 1.6em 0 .5em; }
.mo-post-content h4 { font-size: 19px; font-weight: 700; color: var(--mo-ink); margin: 1.4em 0 .5em; }
.mo-post-content a { color: var(--mo-accent); text-decoration: underline; text-underline-offset: 2px; }
.mo-post-content a:hover { color: var(--mo-accent-dark); }
.mo-post-content ul, .mo-post-content ol { margin: 0 0 1.35em; padding-left: 1.4em; }
.mo-post-content li { margin-bottom: .5em; }
.mo-post-content img { max-width: 100%; height: auto; border-radius: var(--mo-radius); margin: 1.2em 0; }
.mo-post-content blockquote {
	margin: 1.6em 0; padding: 6px 22px; border-left: 4px solid var(--mo-accent);
	background: var(--mo-bg-soft); border-radius: 0 var(--mo-radius) var(--mo-radius) 0;
	color: var(--mo-ink); font-style: italic;
}
.mo-post-content blockquote p:last-child { margin-bottom: 0; }
.mo-post-content table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 16px; }
.mo-post-content th, .mo-post-content td { border: 1px solid var(--mo-line); padding: 10px 14px; text-align: left; }
.mo-post-content th { background: var(--mo-bg-soft); }
.mo-post-content figure { margin: 1.6em 0; padding: 0; }
.mo-post-content figcaption { font-size: 14px; color: var(--mo-muted); text-align: center; margin-top: 8px; }

/* Tagi */
.mo-post-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; padding: 24px 0 0; border-top: 1px solid var(--mo-line); }
.mo-post-tags li a { font-size: 13px; color: var(--mo-muted); background: var(--mo-bg-soft); padding: 5px 12px; border-radius: 999px; text-decoration: none; }
.mo-post-tags li a:hover { color: var(--mo-accent); }

/* Stopka wpisu: powrot + CTA */
.mo-post-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--mo-line); }
.mo-back-blog { font-weight: 600; color: var(--mo-muted); text-decoration: none; }
.mo-back-blog:hover { color: var(--mo-accent); }
.mo-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.mo-btn { display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; transition: all .15s ease; line-height: 1; }
.mo-btn-primary { background: var(--mo-accent); color: #fff; }
.mo-btn-primary:hover { background: var(--mo-accent-dark); }
.mo-btn-ghost { border: 2px solid var(--mo-accent); color: var(--mo-accent); }
.mo-btn-ghost:hover { background: var(--mo-accent); color: #fff; }

/* Powiazane wpisy */
.mo-related { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--mo-line); }
.mo-related-title { font-size: 24px; font-weight: 800; color: var(--mo-ink); margin: 0 0 22px; }
.mo-related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.mo-related-card { display: block; text-decoration: none; background: #fff; border: 1px solid var(--mo-line); border-radius: var(--mo-radius); overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.mo-related-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(29,39,51,.12); }
.mo-related-thumb { aspect-ratio: 16/10; background: var(--mo-bg-soft); overflow: hidden; }
.mo-related-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mo-related-noimg { display: block; width: 100%; height: 100%; background: linear-gradient(135deg,#dfe6ee,#eef2f6); }
.mo-related-name { font-size: 16px; font-weight: 700; line-height: 1.35; color: var(--mo-ink); margin: 0; padding: 14px 16px 18px; }
.mo-related-card:hover .mo-related-name { color: var(--mo-accent); }

/* Numeracja stron wpisu */
.mo-page-links { margin: 24px 0; font-weight: 600; color: var(--mo-muted); }
.mo-page-links a { color: var(--mo-accent); text-decoration: none; margin: 0 4px; }

@media (max-width: 782px) { .mo-related-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
	.mo-single-wrap { padding: 22px 16px 48px; }
	.mo-post-content { font-size: 17px; }
	.mo-related-grid { grid-template-columns: 1fr; }
	.mo-post-footer { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   Lista "Poradniki" (indeks wpisow)
   ========================================================= */
.mo-archive-container { max-width: 1140px; }
.mo-archive-header { text-align: center; max-width: 720px; margin: 6px auto 40px; }
.mo-archive-title { font-size: clamp(30px,4.4vw,44px); font-weight: 800; color: var(--mo-ink); margin: 0 0 12px; }
.mo-archive-sub { font-size: 18px; line-height: 1.6; color: var(--mo-muted); margin: 0; }

.mo-archive-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }

.mo-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--mo-line); border-radius: var(--mo-radius); overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.mo-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(29,39,51,.12); }
.mo-card-thumb { display: block; aspect-ratio: 16/10; background: var(--mo-bg-soft); overflow: hidden; }
.mo-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.mo-card:hover .mo-card-thumb img { transform: scale(1.04); }
.mo-card-noimg { display: block; width: 100%; height: 100%; background: linear-gradient(135deg,#dfe6ee,#eef2f6); }
.mo-card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 22px; }
.mo-card-title { font-size: 19px; line-height: 1.35; font-weight: 700; margin: 0 0 10px; }
.mo-card-title a { color: var(--mo-ink); text-decoration: none; }
.mo-card-title a:hover { color: var(--mo-accent); }
.mo-card-excerpt { font-size: 15px; line-height: 1.6; color: var(--mo-muted); margin: 0 0 16px; }
.mo-card-meta { font-size: 13px; color: var(--mo-muted); margin-top: auto; }

/* Paginacja */
.mo-pagination { margin-top: 44px; display: flex; justify-content: center; }
.mo-pagination .page-numbers { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.mo-pagination .page-numbers li { margin: 0; }
.mo-pagination a.page-numbers, .mo-pagination span.page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px;
	padding: 0 14px; border: 1px solid var(--mo-line); border-radius: 8px; color: var(--mo-ink);
	text-decoration: none; font-weight: 600; transition: all .15s ease;
}
.mo-pagination a.page-numbers:hover { border-color: var(--mo-accent); color: var(--mo-accent); }
.mo-pagination span.current { background: var(--mo-accent); border-color: var(--mo-accent); color: #fff; }
.mo-pagination .dots { border: 0; }

.mo-archive-empty { text-align: center; color: var(--mo-muted); font-size: 18px; padding: 40px 0; }

@media (max-width: 900px) { .mo-archive-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
	.mo-archive-grid { grid-template-columns: 1fr; gap: 22px; }
	.mo-archive-sub { font-size: 16px; }
}
