/*
Theme Name: Astra – Hypoxi
Theme URI: https://www.hypoxi.com.pl/
Description: Motyw potomny Astry dla Hypoxi.com.pl: serwis informacyjny o treningu, spalaniu tłuszczu, cellulicie i zdrowiu (aktualności, poradniki, działy). Po aktywacji sam tworzy kategorie, strony, menu oraz 100 wpisów (50 startowych i 50 poradników z harmonogramem publikacji).
Author: Solwap Piotr Pawłoś
Template: astra
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: astra-hypoxi
*/

:root {
	--bs-ink: #111827;
	--bs-muted: #5b6575;
	--bs-line: #e3e7ed;
	--bs-bg: #f4f6f9;
	--bs-dark: #16323a;
	--bs-accent: #e8651a;
	--bs-accent-dark: #c24f10;
	--bs-radius: 12px;
	--ast-global-color-0: #e8651a;
	--ast-global-color-1: #c24f10;
	--ast-global-color-2: #111827;
	--ast-global-color-3: #5b6575;
	--ast-global-color-4: #f4f6f9;
}

body { color: var(--bs-ink); background: #fff; }
body.bs-news { overflow-x: clip; }
a { color: var(--bs-dark); }
a:hover { color: var(--bs-accent-dark); }
h1, h2, h3, h4 { color: var(--bs-dark); line-height: 1.22; }

/* ---------- Nagłówek ---------- */
.bs-topbar { background: var(--bs-dark); color: #c9d3e3; font-size: 13px; }
.bs-topbar__in { max-width: 1280px; margin: 0 auto; padding: 7px 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.main-header-bar { border-bottom: 3px solid var(--bs-accent); }
.site-title a, .site-title a:hover { font-weight: 800; letter-spacing: -.02em; color: var(--bs-dark); }
.main-header-menu > .menu-item > a { font-weight: 600; text-transform: none; }
.main-header-menu .sub-menu { border-top: 3px solid var(--bs-accent); box-shadow: 0 10px 24px rgba(22, 50, 58, .12); }

/* ---------- Układ ---------- */
body.bs-news .site-content > .ast-container { display: block; max-width: 1280px; padding: 0 20px; }
body.bs-news #primary, body.bs-news .bs-main { width: 100%; margin: 0; padding: 0; }
.bs-main { padding: 28px 0 50px; }
.bs-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; margin-top: 28px; }
.bs-col { min-width: 0; }

/* ---------- Pasek "Na gorąco" ---------- */
.bs-ticker { display: flex; align-items: stretch; background: var(--bs-bg); border-radius: var(--bs-radius); overflow: hidden; margin-bottom: 20px; }
.bs-ticker__label { background: var(--bs-accent); color: #fff; font-weight: 800; text-transform: uppercase; font-size: 12px; letter-spacing: .08em; padding: 12px 16px; white-space: nowrap; }
.bs-ticker__track { display: flex; gap: 28px; overflow-x: auto; padding: 12px 16px; scrollbar-width: none; white-space: nowrap; }
.bs-ticker__track::-webkit-scrollbar { display: none; }
.bs-ticker__track a { text-decoration: none; font-size: 14px; font-weight: 600; }
.bs-ticker__track a::before { content: "•"; color: var(--bs-accent); margin-right: 8px; }

/* ---------- Hero ---------- */
.bs-hero { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 230px 230px; gap: 14px; }
.bs-ov { position: relative; border-radius: var(--bs-radius); overflow: hidden; background: var(--bs-dark); }
.bs-ov--big { grid-row: 1 / span 2; }
.bs-ov img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.bs-ov:hover img { transform: scale(1.04); }
.bs-ov::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22, 50, 58, 0) 25%, rgba(22, 50, 58, .92) 100%); }
.bs-ov__link { position: absolute; inset: 0; z-index: 3; }
.bs-ov__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px; z-index: 2; color: #fff; }
.bs-ov__body h3 { color: #fff; font-size: 17px; margin: 8px 0 6px; }
.bs-ov--big .bs-ov__body h3 { font-size: 28px; }
.bs-ov .bs-meta { color: #cbd5e5; }

/* ---------- Chipy, meta ---------- */
.bs-chip { display: inline-block; background: var(--bs-accent); color: #fff !important; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 4px; text-decoration: none; position: relative; z-index: 4; }
.bs-chip--trening-i-spalanie-tluszczu, .bs-chip--plan-treningowy { background: #e8651a; }
.bs-chip--cellulit-fakty-i-mity, .bs-chip--pielegnacja-i-cellulit { background: #d6457a; }
.bs-chip--trening-w-podcisnieniu, .bs-chip--cwiczenia-nogi-i-posladki { background: #2f78d1; }
.bs-chip--dieta-i-sylwetka, .bs-chip--dieta-i-redukcja { background: #3a9d5d; }
.bs-chip--zdrowie-i-krazenie, .bs-chip--regeneracja-i-zdrowie { background: #c2412d; }
.bs-chip--technologie-i-zabiegi, .bs-chip--bezpieczny-trening { background: #e8651a; }
.bs-meta { font-size: 13px; color: var(--bs-muted); }

/* ---------- Sekcje ---------- */
.bs-sec-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--bs-dark); margin: 34px 0 18px; padding-bottom: 8px; }
.bs-sec-head h2 { margin: 0; font-size: 22px; text-transform: uppercase; letter-spacing: .02em; border-left: 6px solid var(--bs-accent); padding-left: 12px; }
.bs-sec-head a { font-size: 14px; font-weight: 600; text-decoration: none; }
.bs-col > .bs-sec-head:first-child { margin-top: 0; }

/* ---------- Lista ---------- */
.bs-list { display: flex; flex-direction: column; }
.bs-item { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--bs-line); }
.bs-item__img { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 10; }
.bs-item__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.bs-item:hover .bs-item__img img { transform: scale(1.05); }
.bs-item__body h3 { font-size: 20px; margin: 8px 0 6px; }
.bs-item__body h3 a { text-decoration: none; }
.bs-item__body h3 a:hover { color: var(--bs-accent-dark); }
.bs-item__body p { margin: 0 0 8px; color: var(--bs-muted); font-size: 15px; }

/* ---------- Siatka kart ---------- */
.bs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.bs-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bs-card { background: #fff; border: 1px solid var(--bs-line); border-radius: var(--bs-radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.bs-card:hover { box-shadow: 0 10px 24px rgba(22, 50, 58, .1); transform: translateY(-2px); }
.bs-card__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.bs-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bs-card__body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.bs-card__body h3 { font-size: 17px; margin: 4px 0 2px; }
.bs-card__body h3 a { text-decoration: none; }
.bs-card__body p { margin: 0; font-size: 14px; color: var(--bs-muted); }
.bs-card__body .bs-meta { margin-top: auto; padding-top: 6px; }
.bs-guides { margin-top: 50px; padding: 10px 0 20px; }

/* ---------- Pasek boczny ---------- */
.bs-sidebar { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 26px; }
.bs-widget { background: var(--bs-bg); border-radius: var(--bs-radius); padding: 20px; }
.bs-widget h3 { margin: 0 0 12px; font-size: 16px; text-transform: uppercase; letter-spacing: .04em; border-left: 5px solid var(--bs-accent); padding-left: 10px; }
.bs-rank { margin: 0; padding: 0; list-style: none; counter-reset: r; }
.bs-rank li { counter-increment: r; display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--bs-line); font-size: 14px; line-height: 1.35; }
.bs-rank li::before { content: counter(r); font-weight: 800; color: var(--bs-accent); }
.bs-rank li:last-child, .bs-plain li:last-child { border-bottom: 0; }
.bs-rank a, .bs-plain a { text-decoration: none; font-weight: 600; }
.bs-rank span { color: var(--bs-muted); font-size: 12px; }
.bs-plain { margin: 0; padding: 0; list-style: none; }
.bs-plain li { padding: 9px 0; border-bottom: 1px solid var(--bs-line); font-size: 14px; line-height: 1.35; }
.bs-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.bs-tags a { background: #fff; border: 1px solid var(--bs-line); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600; text-decoration: none; }
.bs-tags a:hover { background: var(--bs-accent); border-color: var(--bs-accent); color: #fff; }

/* ---------- Nagłówek listingu ---------- */
.bs-head { background: linear-gradient(120deg, var(--bs-dark), #244a54); color: #dbe4f3; padding: 44px 20px 30px; }
.bs-head__in { max-width: 1240px; margin: 0 auto; }
.bs-head h1 { color: #fff; font-size: clamp(28px, 4vw, 42px); margin: 0 0 8px; }
.bs-head__lead { max-width: 720px; font-size: 17px; }
.bs-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.bs-pills a { border: 1px solid rgba(255, 255, 255, .35); color: #fff; border-radius: 999px; padding: 6px 16px; font-size: 14px; font-weight: 600; text-decoration: none; }
.bs-pills a:hover, .bs-pills a.is-active { background: var(--bs-accent); border-color: var(--bs-accent); }
body.bs-news .bs-head { margin: 0 calc(50% - 50vw); padding-left: calc(50vw - 50% + 20px); padding-right: calc(50vw - 50% + 20px); }

/* ---------- Paginacja ---------- */
.bs-pagination { margin-top: 30px; }
.bs-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.bs-pagination .page-numbers { border: 1px solid var(--bs-line); border-radius: 8px; padding: 8px 14px; text-decoration: none; font-weight: 600; }
.bs-pagination .page-numbers.current, .bs-pagination .page-numbers:hover { background: var(--bs-dark); border-color: var(--bs-dark); color: #fff; }

/* ---------- Wpis ---------- */
.bs-crumbs { font-size: 13px; color: var(--bs-muted); margin-bottom: 14px; }
.bs-crumbs a { text-decoration: none; }
.bs-article__head h1 { font-size: clamp(28px, 3.6vw, 40px); margin: 10px 0 12px; }
.bs-lead { font-size: 19px; color: #2b3445; }
.bs-article__img { margin: 20px 0; }
.bs-article__img img { width: 100%; height: auto; border-radius: var(--bs-radius); display: block; }
.bs-article__content { font-size: 18px; line-height: 1.75; }
.bs-article__content h2 { font-size: 26px; margin: 1.8em 0 .5em; }
.bs-article__content h3 { font-size: 21px; margin: 1.5em 0 .4em; }
.bs-note { background: var(--bs-bg); border-left: 4px solid var(--bs-accent); padding: 14px 18px; font-size: 14px; color: var(--bs-muted); border-radius: 6px; margin: 32px 0 18px; }
.bs-share { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.bs-share a { background: var(--bs-dark); color: #fff; padding: 6px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.bs-share a:hover { background: var(--bs-accent); color: #fff; }
.bs-related { margin-top: 44px; }

/* ---------- Przyciski i formularz ---------- */
.bs-btn, .bs-form button { display: inline-block; background: var(--bs-accent); color: #fff !important; font-weight: 700; border: 0; border-radius: 999px; padding: 13px 28px; cursor: pointer; text-decoration: none; }
.bs-btn:hover, .bs-form button:hover { background: var(--bs-accent-dark); }
.bs-form p { margin: 0 0 14px; }
.bs-form label { display: block; font-weight: 600; font-size: 14px; }
.bs-form input[type=text], .bs-form input[type=email], .bs-form textarea { width: 100%; margin-top: 6px; border: 1px solid #c8d0dc; border-radius: 8px; padding: 11px 13px; font-size: 16px; }
.bs-form .bs-consent label { font-weight: 400; font-size: 13px; color: var(--bs-muted); }
.bs-hp { position: absolute; left: -9999px; }
.bs-notice { padding: 14px 18px; border-radius: 10px; margin-bottom: 16px; font-weight: 600; }
.bs-notice--ok { background: #e3f6e8; color: #1b5e30; }
.bs-notice--err { background: #fde8e8; color: #8a1c1c; }

/* ---------- Stopka ---------- */
.bs-prefooter { background: var(--bs-dark); color: #c9d3e3; padding: 46px 20px; }
.bs-prefooter__in { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; }
.bs-prefooter h3 { color: #fff; font-size: 17px; margin: 0 0 10px; }
.bs-prefooter ul { list-style: none; margin: 0; padding: 0; }
.bs-prefooter li { padding: 3px 0; }
.bs-prefooter a { color: #ffc9a3; text-decoration: none; }
.bs-prefooter a:hover { color: #fff; }

/* ---------- Responsywność ---------- */
@media (max-width: 1024px) {
	.bs-layout { grid-template-columns: 1fr; }
	.bs-sidebar { position: static; }
	.bs-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 782px) {
	.bs-hero { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 180px 180px; }
	.bs-ov--big { grid-column: 1 / span 2; grid-row: 1; }
	.bs-ov--big .bs-ov__body h3 { font-size: 22px; }
	.bs-grid, .bs-grid--4 { grid-template-columns: 1fr; }
	.bs-item { grid-template-columns: 120px minmax(0, 1fr); gap: 14px; }
	.bs-item__body h3 { font-size: 17px; }
	.bs-item__body p { display: none; }
	.bs-prefooter__in { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
	.bs-hero { grid-template-columns: 1fr; grid-template-rows: 280px repeat(4, 150px); }
	.bs-ov--big { grid-column: 1; }
}
