/* Ciekawostki ginekologiczne — motyw na Bootstrap 5 */
:root {
    --brand: #b03a6e;
    --brand-dark: #8c2a56;
    --brand-soft: #fbeef4;
    --ink: #2b2230;
    --muted: #6d6472;
    --line: #eadfe6;
    --bg-soft: #fbf7f9;

    --bs-primary: var(--brand);
    --bs-primary-rgb: 176, 58, 110;
    --bs-link-color: var(--brand);
    --bs-link-color-rgb: 176, 58, 110;
    --bs-link-hover-color: var(--brand-dark);
    --bs-body-color: var(--ink);
    --bs-body-font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
    --bs-body-font-size: 1.0625rem;
    --bs-border-radius: .75rem;
}

body { background: #fff; }
h1, h2, h3, .h5, .navbar-brand, .footer-brand { font-family: "Lora", Georgia, serif; }

.btn-primary {
    --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand-dark); --bs-btn-hover-border-color: var(--brand-dark);
    --bs-btn-active-bg: var(--brand-dark); --bs-btn-active-border-color: var(--brand-dark);
}
.btn-outline-primary {
    --bs-btn-color: var(--brand); --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand);
    --bs-btn-active-bg: var(--brand-dark);
}
.pagination { --bs-pagination-color: var(--brand); --bs-pagination-active-bg: var(--brand); --bs-pagination-active-border-color: var(--brand); }

/* Nagłówek */
.site-header { background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.navbar-brand { color: var(--brand) !important; font-weight: 700; font-size: 1.35rem; }
.navbar .nav-link { color: var(--ink); font-weight: 600; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--brand); }

/* Hero */
.hero { background: linear-gradient(135deg, var(--brand-soft), #fff 70%); padding: 4rem 0; }
.hero-kicker { display: inline-block; color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: .75rem; }
.hero-title { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
.hero-lead { font-size: 1.2rem; color: var(--muted); margin-bottom: 1.75rem; }
.hero-img { width: 100%; height: auto; border-radius: 1.25rem; box-shadow: 0 20px 50px -20px rgba(140,42,86,.45); }

.section-title { font-size: 1.75rem; font-weight: 700; }
.link-more { font-weight: 600; text-decoration: none; }
.bg-soft { background: var(--bg-soft); }

/* Nagłówek podstrony */
.page-head { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 2.5rem 0 2rem; }
.page-title { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 700; line-height: 1.25; margin-bottom: .75rem; }
.breadcrumb { font-size: .9rem; margin-bottom: .75rem; }
.breadcrumb a { text-decoration: none; }

/* Karty wpisów */
.post-card { border: 1px solid var(--line); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(43,34,48,.35); }
.post-card-img { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--brand-soft); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; }
.img-placeholder { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #f6dbe7, #fbeef4 55%, #eaf3f1); color: rgba(176,58,110,.45); font-size: 3rem; }
.post-card .card-title a { color: var(--ink); text-decoration: none; }
.post-card:hover .card-title a { color: var(--brand); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; font-size: .875rem; color: var(--muted); }
.badge-cat { position: relative; z-index: 2; background: var(--brand-soft); color: var(--brand); border-radius: 2rem; padding: .15rem .7rem; font-weight: 600; text-decoration: none; font-size: .8rem; }
.badge-cat:hover { background: var(--brand); color: #fff; }

/* Treść artykułu */
.post-figure { margin-bottom: 2rem; }
.post-featured { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 1rem; }
.post-figure figcaption { font-size: .8rem; color: var(--muted); margin-top: .4rem; text-align: right; }
.post-figure figcaption a { color: inherit; }
.prose { line-height: 1.75; }
.prose h1, .prose h2 { font-size: 1.6rem; font-weight: 700; margin: 2.25rem 0 1rem; }
.prose h3 { font-size: 1.3rem; font-weight: 600; margin: 1.75rem 0 .75rem; }
.prose > :first-child { margin-top: 0; }
.prose img { max-width: 100%; height: auto; border-radius: .75rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: .35rem; }
.prose li::marker { color: var(--brand); }
.prose table { width: 100%; margin-bottom: 1.5rem; border-collapse: collapse; }
.prose td, .prose th { border: 1px solid var(--line); padding: .5rem .75rem; }

.post-nav-link { display: block; height: 100%; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--bs-border-radius); text-decoration: none; color: var(--ink); font-weight: 600; }
.post-nav-link:hover { border-color: var(--brand); color: var(--brand); }

/* Stopka */
.site-footer { background: #2b2230; color: #d9cfd6; }
.site-footer a { color: #f3dbe7; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand { font-size: 1.25rem; font-weight: 700; color: #fff !important; }
.footer-title { font-family: inherit; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: .75rem; }
.site-footer li { margin-bottom: .35rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); color: #a99ea6; }

@media (max-width: 991.98px) {
    .hero { padding: 2.5rem 0; }
}
@media (max-width: 420px) {
    .navbar-brand { font-size: 1.05rem; }
    .navbar-toggler { padding: .25rem .5rem; }
}

/* Spis treści i wstęp kategorii */
.page-intro { max-width: 52rem; color: var(--muted); font-size: 1.1rem; margin-bottom: .5rem; }
.toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--bs-border-radius); padding: 1.25rem 1.5rem; margin-bottom: 2rem; }
.toc-title { font-weight: 700; margin-bottom: .5rem; }
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc li { margin-bottom: .25rem; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.prose h2[id] { scroll-margin-top: 5rem; }

/* Ikony SVG (zamiast fontu Bootstrap Icons) i obrazy <picture> */
.bi-svg { display: inline-block; vertical-align: -.125em; flex-shrink: 0; }
.post-card-img picture, .post-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero picture, .post-figure picture { display: block; }
.post-card-img img, .hero-img, .post-featured { background: var(--brand-soft); }
