/*
Theme Name: Pani Patrycja
Theme URI: https://panipatrycja.pl/
Author: Antigravity & Mariusz
Description: Dedykowany, lekki i przyjazny sensorycznie motyw WordPress stworzony od podstaw dla portalu terapeutycznego Pani Patrycja.
Version: 1.1.0
Text Domain: panipatrycja
*/

/* ==========================================
   SYSTEM PROJEKTOWY (DESIGN TOKENS)
   ========================================== */
:root {
  --bg-color: #FAFCFF; /* Bardzo jasny, chłodny błękit, uspokajający */
  --text-color: #1E293B; /* Slate 800 */
  --text-muted: #64748B; /* Slate 500 */
  
  --primary: #2563EB;       /* Wyrazisty, ufny błękit (Blue 600) */
  --primary-hover: #1D4ED8; /* Blue 700 */
  --primary-light: #EFF6FF; /* Blue 50 */
  --primary-glow: rgba(37, 99, 235, 0.4);
  
  --secondary: #0F766E;     /* Głęboka, kojąca zieleń morksa (Teal 700) */
  --secondary-hover: #0D635D;
  --secondary-light: #F0FDFA; /* Teal 50 */
  
  --accent: #EA580C;        /* Ciepły pomarańcz (Orange 600) */
  --accent-light: #FFF7ED;  /* Orange 50 */
  
  --card-bg: #FFFFFF;
  --border-color: #E2E8F0; /* Slate 200 */
  --focus-ring: rgba(37, 99, 235, 0.5);
  
  --font-headings: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 24px -4px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px -8px rgba(15, 23, 42, 0.12);
  
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================
   RESET & BAZA
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Dostepnosc */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ==========================================
   TYPOGRAFIA
   ========================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-color);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw + 1rem, 4rem); letter-spacing: -0.04em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--primary-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* ==========================================
   UKLAD & KOMPONENTY WSPOLNE
   ========================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Przyciski */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  border-radius: var(--radius-full);
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
  box-shadow: 0 8px 24px -6px var(--primary-glow);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: #fff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px -8px var(--primary-glow);
}

.btn-secondary {
  background-color: #fff;
  color: var(--text-color);
  border: 2px solid transparent;
  box-shadow: 0 4px 12px -4px rgba(0,0,0,0.1);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 24px -6px rgba(0,0,0,0.1);
}

/* ==========================================
   NAGLOWEK & NAWIGACJA (GLASSMORPHISM)
   ========================================== */
.site-header {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition-smooth);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: var(--font-headings);
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.5px;
}

.site-logo span {
  color: var(--primary);
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 8px;
}

.main-navigation a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
  color: var(--primary);
  background: var(--primary-light);
}

/* Hamburger Menu (Mobile) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-color);
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }
  .main-navigation ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
  }
  .main-navigation.toggled ul {
    display: flex;
  }
  .main-navigation ul li {
    width: 100%;
    text-align: center;
  }
  .main-navigation a {
    display: block;
    padding: 16px;
  }
}

/* ==========================================
   STOPKA
   ========================================== */
.site-footer {
  background-color: #0F172A; /* Slate 900 */
  color: #F8FAFC;
  padding: 80px 0 40px;
  margin-top: 100px;
  border-top: none;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.site-footer p {
  color: #94A3B8; /* Slate 400 */
  font-size: 1rem;
}

.site-footer a {
  color: var(--primary-light);
  font-weight: 500;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ==========================================
   STYLIZACJA FORUM (BBPRESS) - Premium Look
   ========================================== */
#bbpress-forums {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-color);
  margin-top: 40px;
}

#bbpress-forums ul.bbp-forums,
#bbpress-forums ul.bbp-topics,
#bbpress-forums ul.bbp-replies {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  margin-bottom: 40px;
  list-style: none !important;
  backdrop-filter: blur(10px);
}

#bbpress-forums li.bbp-header {
  background: transparent;
  border-bottom: 2px solid var(--primary-light);
  font-family: var(--font-headings);
  font-weight: 800;
  color: var(--primary);
  padding: 12px 16px 20px;
  font-size: 1.1rem;
}

#bbpress-forums li.bbp-body {
  padding: 16px 0;
}

#bbpress-forums li.bbp-footer {
  display: none;
}

#bbpress-forums .bbp-forum-info,
#bbpress-forums .bbp-topic-title {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.2rem;
}

#bbpress-forums a.bbp-forum-title,
#bbpress-forums a.bbp-topic-permalink {
  color: var(--text-color);
  transition: var(--transition-fast);
}

#bbpress-forums a.bbp-forum-title:hover,
#bbpress-forums a.bbp-topic-permalink:hover {
  color: var(--primary);
}

#bbpress-forums .bbp-forums-list li {
  border-bottom: 1px solid var(--border-color);
  padding: 24px 16px;
  transition: var(--transition-fast);
  border-radius: var(--radius-md);
}

#bbpress-forums .bbp-forums-list li:hover {
  background: var(--primary-light);
  transform: translateX(4px);
}

div.bbp-reply-header {
  background: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
}

div.bbp-reply-author {
  float: none;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: #fff;
  border-right: 1px solid var(--border-color);
  min-width: 220px;
}

@media (max-width: 768px) {
  div.bbp-reply-author {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
}

div.bbp-reply-author img.avatar {
  border-radius: 50%;
  border: 3px solid var(--primary-light);
  box-shadow: var(--shadow-sm);
}

div.bbp-reply-author .bbp-author-name {
  font-family: var(--font-headings);
  font-weight: 800;
  color: var(--text-color);
  font-size: 1.1rem;
}

div.bbp-reply-content {
  padding: 32px;
  font-size: 1.05rem;
  line-height: 1.8;
  background: #fff;
  border-bottom-right-radius: var(--radius-md);
}

#bbpress-forums fieldset.bbp-form {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-top: 60px;
  box-shadow: var(--shadow-md);
}

#bbpress-forums legend {
  font-family: var(--font-headings);
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--text-color);
  padding: 0 16px;
  margin-bottom: 24px;
}

#bbpress-forums input[type="text"],
#bbpress-forums select,
#bbpress-forums textarea {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1.05rem;
  margin-bottom: 24px;
  background: #fff;
  outline: none;
  transition: var(--transition-fast);
}

#bbpress-forums input[type="text"]:focus,
#bbpress-forums select:focus,
#bbpress-forums textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--focus-ring);
  background: #fff;
}

#bbpress-forums button[type="submit"] {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 16px 36px;
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.05rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: 0 8px 24px -6px var(--primary-glow);
  transition: var(--transition-smooth);
}

#bbpress-forums button[type="submit"]:hover {
  background: var(--primary-hover);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px -8px var(--primary-glow);
}
