/*
Theme Name: Oddech Medyka
Theme URI: https://niejestessam.org
Author: Oddech Medyka
Description: Motyw informacyjnego portalu wsparcia dla młodych lekarzy, rezydentów i pielęgniarek w wypaleniu zawodowym. Spokojna paleta (miękka mięta, granat, ciepła biel), strona główna z testem wypalenia i mapą wsparcia na województwa.
Version: 1.6.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: oddech-medyka
Tags: blog, one-column, custom-menu, translation-ready
*/

/* =========================================================
   1. Design tokens — paleta portalu "Oddech Medyka"
   ========================================================= */
:root {
  --bg: oklch(0.977 0.007 85);
  --fg: oklch(0.24 0.045 250);
  --card: oklch(1 0 0);
  --primary: oklch(0.53 0.075 200);
  --primary-fg: oklch(0.99 0.005 190);
  --secondary: oklch(0.935 0.035 165);
  --secondary-fg: oklch(0.3 0.045 210);
  --muted: oklch(0.955 0.01 200);
  --muted-fg: oklch(0.465 0.03 250);
  --border: oklch(0.915 0.015 200);
  --emergency: oklch(0.55 0.21 25);
  --emergency-fg: oklch(0.99 0.005 85);
  --mint: oklch(0.87 0.07 165);
  --mint-soft: oklch(0.955 0.025 165);
  --radius: 0.75rem;
  --radius-lg: 1.5rem;
  --shadow-sm: 0 1px 2px oklch(0.24 0.045 250 / 0.06);
  --shadow-lift: 0 16px 40px -18px oklch(0.24 0.045 250 / 0.25);
}

/* =========================================================
   2. Base
   ========================================================= */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Sora", "Manrope", sans-serif;
  line-height: 1.2;
  margin: 0;
}

p { margin: 0; }

a { color: var(--primary); text-decoration: none; }
a:hover { filter: brightness(1.1); }

img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 72rem; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 640px) { .wrap { padding-inline: 1.5rem; } }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 0.5rem;
}

.section-sub {
  margin-top: 0.75rem;
  max-width: 42rem;
  color: var(--muted-fg);
}

/* =========================================================
   3. Buttons & chips
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 999px;
  padding: 0.875rem 1.5rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease;
}
.btn:hover { filter: brightness(1.1); }

.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-emergency {
  background: var(--emergency);
  color: var(--emergency-fg);
  box-shadow: 0 10px 30px -10px oklch(0.55 0.21 25 / 0.5);
}
.btn-emergency:hover { transform: scale(1.02); }
.btn-ghost-light {
  background: oklch(0.99 0.005 190 / 0.1);
  color: var(--primary-fg);
  border: 1px solid oklch(0.99 0.005 190 / 0.3);
}
.btn-ghost-light:hover { background: oklch(0.99 0.005 190 / 0.2); }
.btn-outline {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
  opacity: 0.85;
}

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--secondary);
  color: var(--secondary-fg);
}
.chip-hot { background: oklch(0.55 0.21 25 / 0.1); color: var(--emergency); }

.hidden { display: none !important; }

/* =========================================================
   4. Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(0.977 0.007 85 / 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--fg);
}
.brand .mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-fg);
  flex-shrink: 0;
}
.brand .name {
  font-family: "Sora", sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.site-nav ul { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--muted-fg); font-weight: 600; font-size: 0.875rem; }
.site-nav a:hover { color: var(--fg); }
.header-cta { padding: 0.625rem 1.25rem; font-size: 0.875rem; }
@media (max-width: 767px) { .site-nav { display: none; } }

/* =========================================================
   5. Hero
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--primary-fg);
  background: linear-gradient(155deg, oklch(0.33 0.055 238) 0%, oklch(0.4 0.065 215) 55%, oklch(0.48 0.07 198) 100%);
}
.hero .glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  pointer-events: none;
}
.hero .glow-1 { width: 28rem; height: 28rem; right: -8rem; top: -8rem; background: oklch(0.99 0.005 190 / 0.05); }
.hero .glow-2 { width: 24rem; height: 24rem; left: -6rem; bottom: -10rem; background: oklch(0.87 0.07 165 / 0.1); }
.hero .grid {
  position: relative;
  display: grid;
  gap: 3rem;
  padding-block: 4rem;
}
@media (min-width: 768px) {
  .hero .grid { grid-template-columns: 1fr 1fr; align-items: center; padding-block: 6rem; }
}
.hero .pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid oklch(0.99 0.005 190 / 0.25);
  background: oklch(0.99 0.005 190 / 0.1);
  border-radius: 999px;
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero h1 {
  margin-top: 1.5rem;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.02em;
}
.hero .hook {
  font-family: "Sora", sans-serif;
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  font-weight: 600;
  color: var(--mint);
  margin-top: 0.75rem;
}
.hero .lead {
  margin-top: 1.25rem;
  max-width: 36rem;
  color: oklch(0.99 0.005 190 / 0.85);
}
.hero .actions { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 640px) { .hero .actions { flex-direction: row; flex-wrap: wrap; } }
.hero .trust {
  margin-top: 2.25rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: oklch(0.99 0.005 190 / 0.8);
}
@media (min-width: 640px) { .hero .trust { flex-direction: row; flex-wrap: wrap; gap: 1.5rem; } }
.hero .trust svg { color: var(--mint); flex-shrink: 0; }
.hero .trust .ic { display: inline-flex; align-items: center; margin-right: 0.4rem; color: var(--mint); vertical-align: -2px; }
.hero .pill svg { margin-right: 0.25rem; }
.hero .media { position: relative; }
.hero .media img {
  width: 100%;
  aspect-ratio: 6 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid oklch(0.99 0.005 190 / 0.15);
  box-shadow: 0 25px 60px -20px oklch(0.2 0.05 240 / 0.6);
}
.hero .hotline-card {
  position: absolute;
  bottom: -1.5rem;
  left: 1rem;
  max-width: 18rem;
  background: var(--card);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 20px 40px -15px oklch(0.24 0.045 250 / 0.35);
}
.hero .hotline-card strong { font-family: "Sora", sans-serif; font-size: 1.125rem; }
.hero .hotline-card span { display: block; margin-top: 0.125rem; font-size: 0.75rem; color: var(--muted-fg); line-height: 1.5; }

/* =========================================================
   6. Sections
   ========================================================= */
.section { padding-block: 4rem; }
@media (min-width: 768px) { .section { padding-block: 6rem; } }
.section-mint {
  background: linear-gradient(180deg, var(--mint-soft) 0%, var(--bg) 100%);
}
.section-muted { background: oklch(0.955 0.01 200 / 0.4); }
.section-narrow { max-width: 48rem; margin-inline: auto; }

/* =========================================================
   7. Quiz
   ========================================================= */
.quiz-card {
  margin-top: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 640px) { .quiz-card { padding: 2rem; } }
.quiz-progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted-fg);
}
.quiz-bar { margin-top: 0.5rem; height: 0.5rem; border-radius: 999px; background: var(--muted); overflow: hidden; }
.quiz-bar > div { height: 100%; width: 0; border-radius: 999px; background: var(--primary); transition: width 0.3s ease; }
.quiz-q { margin-top: 2rem; }
.quiz-q:first-of-type { margin-top: 2rem; }
.quiz-q p { font-weight: 700; }
.quiz-q .qnum {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 0.5rem;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--secondary-fg);
  font-size: 0.8125rem;
  font-weight: 800;
}
.quiz-options { margin-top: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.quiz-option {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted-fg);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.quiz-option:hover { background: var(--muted); color: var(--fg); }
.quiz-option[aria-pressed="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-fg);
  box-shadow: var(--shadow-sm);
}
.quiz-submit { margin-top: 2rem; width: 100%; padding: 1rem; font-size: 1rem; background: var(--muted); color: var(--muted-fg); cursor: not-allowed; }
.quiz-submit.ready { background: var(--primary); color: var(--primary-fg); cursor: pointer; }
.quiz-result { display: none; margin-top: 2rem; }
.quiz-result.show { display: block; }
.quiz-result-box { border-radius: var(--radius); padding: 1.5rem; border: 1px solid transparent; }
.quiz-result-box .score { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.8; }
.quiz-result-box .label { font-family: "Sora", sans-serif; font-size: 1.5rem; font-weight: 700; margin-top: 0.25rem; }
.quiz-result-box .message { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.6; opacity: 0.9; }
.quiz-result-box .actions { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 640px) { .quiz-result-box .actions { flex-direction: row; } }
.tone-calm { background: oklch(0.53 0.075 200 / 0.05); border-color: oklch(0.53 0.075 200 / 0.3); color: var(--primary); }
.tone-warn { background: oklch(0.9 0.04 185 / 0.4); border-color: oklch(0.9 0.04 185); color: oklch(0.28 0.05 240); }
.tone-alert { background: oklch(0.55 0.21 25 / 0.05); border-color: oklch(0.55 0.21 25 / 0.3); color: var(--emergency); }
.quiz-note {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--muted-fg);
}
.quiz-note svg { flex-shrink: 0; margin-top: 0.125rem; }

/* =========================================================
   8. Help finder
   ========================================================= */
.region-tabs {
  margin-top: 2rem;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}
@media (min-width: 768px) { .region-tabs { flex-wrap: wrap; overflow: visible; } }
.region-tab {
  flex-shrink: 0;
  white-space: nowrap;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted-fg);
  border-radius: 999px;
  padding: 0.625rem 1.25rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.region-tab:hover { background: var(--muted); color: var(--fg); }
.region-tab[aria-selected="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-fg);
  box-shadow: var(--shadow-sm);
}
.facility-grid {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}
@media (min-width: 768px) { .facility-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .facility-grid { grid-template-columns: repeat(3, 1fr); } }
.facility {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.facility:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.facility h3 { font-size: 1.125rem; font-weight: 700; line-height: 1.4; }
.facility .desc { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-fg); flex: 1; }
.facility .meta { margin-top: 1.25rem; display: grid; gap: 0.625rem; font-size: 0.875rem; }
.facility .meta .line { display: flex; gap: 0.5rem; color: var(--muted-fg); align-items: flex-start; }
.facility .meta svg { flex-shrink: 0; margin-top: 0.175rem; color: var(--primary); }
.facility .meta a { display: flex; gap: 0.5rem; font-weight: 700; color: var(--primary); }
.facility .meta a svg { margin-top: 0.175rem; }
.facility .chips { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.375rem; }
.rzecznik-card {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 640px) { .rzecznik-card { flex-direction: row; align-items: center; } }
.rzecznik-card .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--primary);
}
.rzecznik-card h3 { font-size: 1.125rem; font-weight: 700; }
.rzecznik-card p { margin-top: 0.25rem; font-size: 0.875rem; color: var(--muted-fg); }
.data-note { margin-top: 1.5rem; font-size: 0.75rem; color: var(--muted-fg); }

/* =========================================================
   9. Articles / blog
   ========================================================= */
.article-grid { margin-top: 2rem; display: grid; gap: 1rem; }
@media (min-width: 768px) { .article-grid { grid-template-columns: repeat(3, 1fr); } }
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.article-card .meta { font-size: 0.75rem; font-weight: 700; color: var(--muted-fg); }
.article-card h3 { margin-top: 0.5rem; font-size: 1.125rem; font-weight: 700; line-height: 1.4; }
.article-card .excerpt {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-fg);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card .read {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
}

/* =========================================================
   10. Content pages & posts
   ========================================================= */
.content-area { padding-block: 4rem; }
.entry-content { margin-top: 1.5rem; max-width: 44rem; }
.entry-content p { margin-block: 1em; }
.entry-content h2 { margin-top: 1.75em; font-size: 1.5rem; }
.entry-content h3 { margin-top: 1.5em; font-size: 1.25rem; }
.entry-content ul, .entry-content ol { padding-left: 1.25rem; margin-block: 1em; }
.entry-content blockquote {
  margin: 1.5em 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--primary);
  background: var(--card);
  border-radius: var(--radius);
  color: var(--muted-fg);
}
.entry-title { font-size: clamp(1.75rem, 4vw, 2.5rem); letter-spacing: -0.02em; }
.entry-meta { margin-top: 0.75rem; font-size: 0.875rem; color: var(--muted-fg); }
.back-link { display: inline-block; margin-bottom: 1.5rem; font-weight: 700; font-size: 0.875rem; }
.posts-list { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 768px) { .posts-list { grid-template-columns: repeat(2, 1fr); } }

/* =========================================================
   11. Footer
   ========================================================= */
.site-footer {
  background: var(--fg);
  color: var(--bg);
  padding-block: 3.5rem;
}
.site-footer .grid { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .site-footer .grid { grid-template-columns: repeat(3, 1fr); } }
.site-footer .brand { color: var(--bg); }
.site-footer .brand .mark { background: var(--mint); color: var(--fg); }
.site-footer p, .site-footer a, .site-footer li { color: oklch(0.977 0.007 85 / 0.8); }
.site-footer .heading {
  font-family: "Sora", sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: oklch(0.977 0.007 85 / 0.6);
}
.site-footer ul { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.625rem; font-size: 0.875rem; }
.site-footer ul a { display: inline-flex; align-items: center; gap: 0.5rem; }
.site-footer ul a:hover { color: var(--mint); }
.site-footer .hotline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  background: var(--mint);
  color: var(--fg);
  border-radius: 999px;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 800;
}
.disclaimer {
  margin-top: 3rem;
  border: 1px solid oklch(0.977 0.007 85 / 0.15);
  background: oklch(0.977 0.007 85 / 0.05);
  border-radius: var(--radius);
  padding: 1.25rem;
  font-size: 0.875rem;
  color: oklch(0.977 0.007 85 / 0.75);
  display: flex;
  gap: 0.75rem;
}
.disclaimer svg { flex-shrink: 0; margin-top: 0.175rem; color: var(--mint); }
.copyright { margin-top: 2rem; text-align: center; font-size: 0.75rem; color: oklch(0.977 0.007 85 / 0.5); }

/* =========================================================
   12. Accessibility helpers
   ========================================================= */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: var(--primary-fg);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius) 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* Informacja o prywatności */
.privacy-notice[hidden] { display: none !important; }
.privacy-notice {
  position: fixed;
  z-index: 1000;
  bottom: 1rem;
  left: max(1rem, calc((100vw - 42rem) / 2));
  right: max(1rem, calc((100vw - 42rem) / 2));
  padding: 1.5rem;
  background: var(--card);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lift);
}
.privacy-notice h2 { font-size: 1.125rem; }
.privacy-notice p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-fg); }
.privacy-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 1rem; }
.privacy-actions .btn { padding: 0.625rem 1rem; }
.privacy-actions a { font-size: 0.875rem; font-weight: 700; }
.privacy-footer { margin-top: 0.75rem; text-align: center; font-size: 0.75rem; }
.entry-content h2 { margin-top: 2rem; margin-bottom: 0.75rem; }
.entry-content p { margin-bottom: 1rem; }

/* Powrót na górę */
.back-to-top[hidden] { display: none !important; }
.privacy-notice:not([hidden]) ~ .back-to-top { display: none; }
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 900;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--card);
  color: var(--fg);
  box-shadow: var(--shadow-lift);
  cursor: pointer;
}
.back-to-top:hover, .back-to-top:focus-visible { background: var(--secondary); }
.back-to-top:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
