/* ELMOVE-BUILD 2026-12-01T23:45 */
/* ==========================================================================
   COMPONENTS — wspólne komponenty obu motywów (tylko zmienne semantyczne)
   --------------------------------------------------------------------------
   Ładowany po tokens.css i themes/<motyw>.css, przed css/pages/*.css.
   Każdy komponent działa w motywie Elation i Emlove bez zmian w HTML.
   Nazwy klas zachowane z oryginalnych arkuszy (kompatybilność z JS).
   ========================================================================== */

/* ---------- Reset / baza ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
html, body { min-height: 100%; max-width: 100%; margin: 0; overflow-x: hidden; }
body {
  background-color: var(--bg);
  color: var(--text-body);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--selection-bg); color: var(--selection-text); }
html { scrollbar-width: thin; scrollbar-color: var(--scrollbar-thumb) var(--bg); }
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-thumb); filter: brightness(1.2); }
button, a { -webkit-tap-highlight-color: transparent; }
button, input, textarea, select { font: inherit; }
button { color: inherit; cursor: pointer; }
img, video { max-width: 100%; }
a { text-decoration: none; transition: color var(--duration-fast) ease; }
a:hover { text-decoration: underline; }
button:focus-visible, a:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 2px;
}
[hidden] { display: none !important; }

/* ---------- Typografia ---------- */
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 var(--space-4); }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 500; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 500; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 var(--space-4); }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: var(--space-2); }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; color: var(--muted); }
.center { text-align: center; }
.lead { color: var(--muted); font-size: 1.05rem; }
.eyebrow {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin: 0 0 var(--space-2);
}
blockquote {
  border-left: 4px solid var(--accent);
  padding: var(--space-4);
  color: var(--muted);
  font-style: italic;
  max-width: 800px;
  margin: var(--space-5) auto;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
}

/* ---------- Layout ---------- */
main { max-width: var(--content-max); margin: 0 auto; padding: var(--space-8) var(--space-5); position: relative; z-index: 1; }
.wrap { max-width: var(--content-max); margin: 0 auto; padding: var(--space-5); }
.container { max-width: 800px; margin: 0 auto; text-align: center; }
header { position: relative; z-index: 1; }
footer, .foot {
  text-align: center; padding: var(--space-10) var(--space-5);
  margin-top: var(--space-10); border-top: 1px solid var(--line);
  font-size: 0.85rem; color: var(--muted);
}
footer a { color: var(--accent-bright); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  main { padding: var(--space-6) var(--space-4); }
}

/* ---------- Przyciski ---------- */
.btn {
  display: inline-block; padding: 10px 20px;
  border: 1px solid var(--accent); color: var(--accent);
  background: transparent; border-radius: var(--radius-sm);
  font-family: var(--font-sans); font-size: 0.95rem; font-weight: 500;
  text-decoration: none; cursor: pointer;
  transition: background var(--duration-med) ease, color var(--duration-med) ease,
              transform var(--duration-fast) ease, box-shadow var(--duration-med) ease;
}
.btn:hover { background: var(--accent); color: var(--bg); box-shadow: 0 0 12px var(--accent-soft); transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn:disabled, .btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-bright); border-color: var(--accent-bright); color: var(--bg); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-secondary:hover { background: var(--surface-soft); color: var(--accent-bright); border-color: var(--accent); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent-bright); box-shadow: none; }
.btn-small { padding: 6px 12px; font-size: 0.85rem; }
.return-btn, .back-link {
  display: inline-block; padding: 10px 18px;
  font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text); text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); transition: all var(--duration-med) ease;
}
.return-btn:hover, .back-link:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); text-decoration: none; }
.admin-btn {
  background: transparent; border: 1px solid var(--accent); color: var(--accent);
  padding: 6px 12px; border-radius: var(--radius-sm); cursor: pointer;
  font-size: 0.85rem; margin-left: var(--space-2);
}
.admin-btn.active { background: var(--accent); color: var(--bg); }
.button-container { margin-bottom: var(--space-6); }

/* ---------- Karty / panele ---------- */
.card, .box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-med) ease, border-color var(--duration-med) ease, box-shadow var(--duration-med) ease;
}
.card:hover, .box:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.card h2, .card h3 { margin-top: 0; }
.card p { color: var(--text-body); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.badge {
  display: inline-block; padding: 4px 10px; border-radius: var(--radius-pill);
  background: var(--accent-soft); color: var(--accent-bright);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em;
}
.live-badge {
  display: inline-block; background: #0a0; color: #fff;
  font-size: 0.7rem; padding: 2px 6px; border-radius: var(--radius-sm);
  margin-left: var(--space-2); animation: pulse 1.5s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.project-credit { font-size: 0.85rem; color: var(--muted); }
.project-credit a { color: var(--accent-bright); }

/* ---------- Formularze ---------- */
label, .field-label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: var(--space-2); }
input:not([type="range"]):not([type="checkbox"]):not([type="radio"]),
textarea, select {
  width: 100%; padding: 11px 14px; margin-bottom: var(--space-3);
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-md);
  outline: none; transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
input::placeholder, textarea::placeholder { color: var(--muted-2); }
textarea { min-height: 100px; resize: vertical; }
input[type="range"], .range { accent-color: var(--accent); }
.error { color: var(--danger); }
.success { color: var(--success); }
.search-box { margin-bottom: var(--space-5); }
.search-box input { margin-bottom: 0; }
.reply-form, .new-thread-form {
  max-width: 700px; margin: var(--space-4) auto;
  background: var(--surface); padding: var(--space-4);
  border: 1px solid var(--border); border-radius: var(--radius-md); text-align: left;
}

/* ---------- Czat (index-3 / thread) ---------- */
.chat-panel {
  position: fixed; right: 12px; bottom: 12px; width: 320px; max-height: 420px;
  background: var(--surface); border: 1px solid var(--accent);
  border-radius: var(--radius-md); display: flex; flex-direction: column;
  z-index: var(--z-header); box-shadow: var(--shadow-lg);
}
.chat-header {
  background: var(--surface-soft); color: var(--accent-bright);
  padding: var(--space-2) var(--space-3); font-weight: 700;
  display: flex; justify-content: space-between; align-items: center;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.chat-messages { flex: 1; overflow-y: auto; padding: var(--space-2); font-size: 0.85rem; text-align: left; max-height: 280px; }
.chat-msg { margin-bottom: var(--space-2); padding: var(--space-1) var(--space-2); background: var(--accent-soft); border-radius: var(--radius-sm); }
.chat-msg .author { color: var(--accent-bright); font-weight: 600; }
.chat-msg .time { color: var(--muted); font-size: 0.7rem; margin-left: var(--space-2); }
.chat-input-row { display: flex; gap: var(--space-1); padding: var(--space-2); border-top: 1px solid var(--line); }
.chat-input-row input { flex: 1; margin-bottom: 0; padding: var(--space-2); }
.chat-input-row button {
  background: var(--accent); color: var(--bg); border: none;
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm);
  cursor: pointer; font-weight: 600;
}

/* ---------- Wątki / posty (forum) ---------- */
.thread-list { list-style: none; padding: 0; max-width: 600px; margin: 0 auto; }
.thread-item { padding: var(--space-4); border-bottom: 1px solid var(--line); position: relative; }
.thread-item:hover { background: var(--accent-soft); }
.thread-card, .post {
  background: var(--surface); border: 1px solid var(--border);
  margin: var(--space-3) auto; max-width: 700px; padding: var(--space-4);
  border-radius: var(--radius-md); text-align: left; position: relative;
  transition: border-color var(--duration-med) ease, box-shadow var(--duration-med) ease;
}
.thread-card:hover, .post:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.thread-card h3 { margin: 0 0 var(--space-2); color: var(--accent-bright); }
.thread-meta, .post .meta { color: var(--muted); font-size: 0.85rem; margin-bottom: var(--space-2); }
.post strong { color: var(--accent-bright); }
.post small { color: var(--muted); }
.date { display: block; font-size: 0.75rem; color: var(--muted); margin-top: var(--space-1); }
.delete-btn {
  position: absolute; right: 10px; top: 10px; cursor: pointer;
  color: var(--danger); background: rgba(40, 0, 0, 0.85);
  border: 1px solid var(--danger); border-radius: var(--radius-sm);
  padding: 4px 10px; font-size: 0.85rem; line-height: 1.2;
  display: none; z-index: 20; transition: background var(--duration-fast) ease;
}
.delete-btn:hover { background: var(--danger); color: #fff; }
body.admin-mode .delete-btn { display: inline-block !important; }
#threads-list { min-height: 200px; }
.em-symbol { width: 40px; height: 40px; object-fit: contain; vertical-align: middle; }

/* ---------- Modale ---------- */
#add-modal {
  display: none; position: fixed; inset: 0; z-index: var(--z-modal);
  background: rgba(8, 6, 4, 0.82); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  justify-content: center; align-items: center; animation: amFade 0.25s ease;
}
@keyframes amFade { from { opacity: 0; } to { opacity: 1; } }
#add-modal .am-card {
  background: var(--surface); border: 1px solid var(--accent);
  border-radius: var(--radius-xl); padding: var(--space-6);
  max-width: 440px; width: min(92vw, 440px); color: var(--text);
  box-shadow: var(--shadow-lg); animation: amSlide 0.3s var(--ease-out);
}
@keyframes amSlide { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
#add-modal .am-card h2 { margin: 0 0 var(--space-2); color: var(--accent-bright); }
#add-modal .am-sub { margin: 0 0 var(--space-5); font-size: 0.85rem; color: var(--muted); }
#add-modal label { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; color: var(--accent); }
#add-modal .am-field { margin-bottom: var(--space-4); }
#add-modal textarea { min-height: 64px; }
#add-modal .am-file {
  position: relative; border: 1px dashed var(--accent); border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-4); text-align: center;
  background: var(--accent-soft); cursor: pointer;
  transition: border-color var(--duration-fast) ease, background var(--duration-fast) ease;
}
#add-modal .am-file:hover { border-color: var(--accent-bright); background: var(--accent-soft); }
#add-modal .am-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
#add-modal .am-file-label { font-size: 0.9rem; color: var(--text-body); pointer-events: none; }
#add-modal .am-file-label strong { color: var(--accent-bright); }
#add-modal .am-actions { display: flex; gap: 10px; margin-top: var(--space-5); }
#add-modal .am-btn {
  flex: 1; padding: 12px 16px; border: none; border-radius: var(--radius-md);
  font-size: 0.95rem; font-weight: 600; cursor: pointer;
  transition: transform 0.15s ease, box-shadow var(--duration-fast) ease;
}
#add-modal .am-btn:active { transform: scale(0.98); }
#add-modal .am-btn-primary { background: var(--accent); color: var(--bg); box-shadow: var(--shadow-sm); }
#add-modal .am-btn-primary:hover { background: var(--accent-bright); }
#add-modal .am-btn-ghost {
  flex: 0 0 auto; background: transparent; color: var(--muted);
  border: 1px solid var(--line); padding-left: 18px; padding-right: 18px;
}
#add-modal .am-btn-ghost:hover { color: var(--accent-bright); border-color: var(--accent); }
#add-status { margin: var(--space-3) 0 0; font-size: 0.85rem; min-height: 1.2em; text-align: center; }
#admin-pw-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.8);
  z-index: 99999; align-items: center; justify-content: center;
}
#admin-pw-overlay.open { display: flex; }
#admin-pw-box {
  background: var(--surface); border: 2px solid var(--accent);
  border-radius: var(--radius-md); padding: var(--space-6);
  max-width: 340px; width: 90%; color: var(--text);
}
#admin-pw-box h3 { margin: 0 0 var(--space-3); color: var(--accent-bright); }
#admin-pw-box input { margin: var(--space-3) 0; }
#admin-pw-box .row { display: flex; gap: var(--space-2); justify-content: flex-end; }
#admin-pw-box button { padding: var(--space-2) var(--space-4); border: none; border-radius: var(--radius-sm); cursor: pointer; font-weight: 600; }
#admin-pw-ok { background: var(--accent); color: var(--bg); }
#admin-pw-cancel { background: var(--surface-soft); color: var(--muted); }

/* ---------- Nawigacja / nagłówek ---------- */
nav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: var(--space-6); flex-wrap: wrap; }
nav ul li a, .nav-link {
  color: var(--text); text-decoration: none; font-weight: 600;
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm);
  transition: all var(--duration-med) ease;
}
nav ul li a:hover, .nav-link:hover { background: var(--accent); color: var(--bg); text-decoration: none; }
.top-bar {
  position: fixed; top: 0; left: 0; width: 100%; padding: 14px 20px;
  display: flex; justify-content: center; align-items: center;
  background: var(--surface); border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm); z-index: var(--z-header);
}
.top { text-align: center; padding: var(--space-16) var(--space-5) var(--space-10); }
.logo { width: 90px; filter: drop-shadow(0 0 18px var(--accent-soft)); }
.sub { color: var(--muted); font-size: 0.9rem; margin-top: 10px; }
.home-bar {
  display: flex; justify-content: space-between; width: 100%; height: 20px;
  background: var(--surface-soft); color: var(--text); text-decoration: none;
  font-weight: 900; font-size: clamp(1.2rem, 4vw, 2rem);
  padding: 0 20px; line-height: 20px; text-align: center;
  transition: background var(--duration-med) ease, color var(--duration-med) ease;
}
.home-bar:hover { background: var(--accent); color: var(--bg); text-decoration: none; }
.home-link {
  position: fixed; top: 20px; right: 20px; z-index: var(--z-header);
  width: 36px; height: 36px; padding: 0; margin: 0;
  display: flex; justify-content: center; align-items: center;
  font-size: 1.25rem; font-weight: 700; text-decoration: none; color: var(--text);
  border: 2px solid var(--text); border-radius: var(--radius-sm);
  transition: all var(--duration-med) ease;
}
.home-link:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); transform: translateY(-3px) scale(1.1); text-decoration: none; }

/* ---------- Sidebar (wąski pasek ikon, Elation) ---------- */
.sidebar {
  position: fixed; top: 0; left: 0; height: 100vh; width: var(--sidebar-w);
  display: flex; flex-direction: column; align-items: center;
  justify-content: flex-start; padding: 26px 0; gap: 24px; z-index: var(--z-sidebar);
  background: var(--surface); border-right: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  transform: translateX(-54px);
  transition: transform var(--duration-med) var(--ease-out), border-color var(--duration-med) ease;
}
.sidebar:hover { transform: translateX(0); border-right-color: var(--accent); }
.sidebar::before {
  content: ""; position: absolute; right: -12px; top: 0;
  width: 12px; height: 100%; background: transparent;
}
.sidebar::after {
  content: ""; position: absolute; right: 6px; top: 50%;
  transform: translateY(-50%); width: 3px; height: 44px; border-radius: 99px;
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
  opacity: 0.85; transition: opacity var(--duration-fast) ease; pointer-events: none;
}
.sidebar:hover::after { opacity: 0; }
.sidebar-icon {
  position: relative; width: 42px; height: 42px;
  display: flex; justify-content: center; align-items: center;
  border-radius: 11px; border: 1px solid transparent; cursor: pointer;
  transition: transform var(--duration-fast) ease, background var(--duration-fast) ease,
              border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}
.sidebar-icon:hover {
  transform: scale(1.1); background: var(--accent-soft);
  border-color: var(--accent); box-shadow: var(--shadow-sm);
}
.sidebar-icon img { width: 24px; height: 24px; object-fit: contain; }
.sidebar-icon--tomik img { filter: drop-shadow(0 0 6px var(--accent-soft)); }
.tooltip {
  position: absolute; left: 58px; top: 50%;
  transform: translateY(-50%) translateX(-4px);
  padding: 6px 12px; background: var(--surface);
  border: 1px solid var(--accent); box-shadow: var(--shadow-md);
  color: var(--accent-bright); font-family: var(--font-sans);
  font-size: 0.73rem; letter-spacing: 0.05em; border-radius: var(--radius-sm);
  white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity var(--duration-fast) ease, transform var(--duration-fast) ease;
}
.sidebar-icon:hover .tooltip { opacity: 1; transform: translateY(-50%) translateX(0); }
.elmoveicon {
  width: 40px; height: 40px; display: flex; justify-content: center;
  align-items: center; cursor: pointer; will-change: transform;
  transition: transform var(--duration-med) ease;
}
.elmoveicon img { width: 32px; height: 32px; border-radius: 50%; padding: 4px; }
.elmoveicon:hover { transform: scale(1.2); }
.elmoveicon .tooltip { top: 100%; left: 50%; transform: translateX(-50%) translateY(10px); max-width: 200px; white-space: normal; }
.elmoveicon:hover .tooltip { opacity: 1; transform: translateX(-50%) translateY(15px); }
.blogger-icon-img { width: 40px; height: 40px; }
@media (max-width: 900px) {
  .sidebar { transform: translateX(-57px); }
  .sidebar:active, .sidebar:focus-within { transform: translateX(0); }
}
@media (max-width: 768px) {
  .tooltip { display: none; }
}

/* ---------- Sidebar: akordeon / podmenu (lumen) ---------- */
.accordion {
  background: var(--surface); color: var(--text); cursor: pointer;
  padding: 12px 14px; width: 100%; text-align: left; border: none; outline: none;
  font-size: 1.1rem; font-weight: 600; border-radius: var(--radius-sm);
  transition: background var(--duration-med) ease, color var(--duration-med) ease;
}
.accordion:hover { background: var(--accent); color: var(--bg); }
.accordion.active { background: var(--accent); color: var(--bg); font-weight: 700; }
.accordion::after { content: "▶"; float: right; transition: transform var(--duration-med) ease; }
.accordion.active::after { transform: rotate(90deg); content: "▼"; }
.submenu {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding var(--duration-med) ease;
  background: var(--accent-soft); border-left: 3px solid var(--accent);
  margin: var(--space-2) 0 var(--space-3); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm); padding: 0;
}
.submenu li { margin: var(--space-1) 0; }
.submenu li a.sidebar-item {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; word-wrap: break-word; padding: var(--space-1) 0 var(--space-1) 10px;
  text-decoration: none; color: var(--text);
  transition: color var(--duration-med) ease, background var(--duration-med) ease;
}
.submenu li a.sidebar-item:hover { color: var(--bg); background: var(--accent); border-radius: var(--radius-sm); text-decoration: none; }
.sidebar-item span { flex: 1; min-width: 0; padding-right: 10px; }
.sidebar-img {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  flex-shrink: 0; border: 2px solid var(--accent);
}
aside nav ul { list-style: none; }
aside nav ul li { margin-bottom: 10px; }

/* ---------- Tabele ---------- */
.table-wrapper { width: 100%; overflow-x: auto; margin: var(--space-5) auto; }
table {
  width: 100%; max-width: 800px; margin: 0 auto; border-collapse: collapse;
  background: var(--surface); border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm); min-width: 520px;
}
th, td { padding: 12px 15px; border: 1px solid var(--line); color: var(--text); text-align: left; }
th { background: var(--surface-soft); font-weight: 600; }
tr:nth-child(even) { background: var(--accent-soft); }
@media (hover: hover) { tr:hover { background: var(--accent-soft); } }

/* ---------- Timeline (matforemport + section1–6) ---------- */
.timeline-container {
  position: relative; max-width: var(--content-wide); width: 90%;
  margin: 0 auto; padding: 50px 0;
}
.profile-container {
  position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: flex-end; gap: 10px; z-index: 3;
}
.profile-photo {
  width: 120px; height: 120px; border-radius: 50%; overflow: hidden;
  border: 4px solid var(--accent); background: var(--surface);
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.timeline-line {
  position: absolute; top: 0; left: 50%; width: 4px; height: 100%;
  background: var(--accent); transform: translateX(-50%);
  z-index: 2; opacity: 0.15;
}
.timeline-block { position: relative; display: flex; align-items: stretch; margin: 20px 0; max-height: 400px; }
.timeline-block.left { flex-direction: row; }
.timeline-block.right { flex-direction: row-reverse; }
.timeline-item {
  width: 60%; max-height: 400px; background: var(--surface);
  border: 2px solid var(--border); border-radius: var(--radius-xl);
  display: flex; flex-direction: column; overflow-y: auto;
  will-change: transform; transition: transform var(--duration-med) ease;
}
.timeline-item:hover { transform: translateY(-4px); }
.section-frame { width: 100%; flex: 1; display: flex; flex-direction: column; }
.section-background {
  padding: var(--space-4); border-radius: var(--radius-md); flex: 1;
  background-size: cover; background-position: center; color: var(--text);
}
.section-background .static-annotation {
  width: 100%; padding: 10px; margin-top: var(--space-5);
  border: 2px solid var(--border); border-radius: var(--radius-md);
  font-size: 1.1rem; background: var(--surface); color: var(--text); overflow-y: auto;
}
.section-background h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: var(--space-4); text-align: center; }
.section-background h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.section-background img, .section-background video {
  max-width: 100%; max-height: 200px; margin: 10px 0;
  border-radius: var(--radius-md); border: 2px solid var(--accent);
}
.poem {
  max-width: 600px; margin: 0 auto; font-family: var(--font-serif);
  font-size: 1.1rem; line-height: 1.6; color: var(--text);
  background: var(--surface); padding: var(--space-4); border-radius: var(--radius-md);
}
.poem h2 { text-align: center; margin-bottom: var(--space-2); }
.poem p { margin-bottom: var(--space-2); white-space: pre-line; }
.timeline-annotation {
  background: var(--surface); border: 2px solid var(--border);
  border-radius: var(--radius-md); padding: 10px 15px; max-height: 400px;
  width: 30%; display: flex; flex-direction: column; overflow-y: auto; color: var(--text);
}
.timeline-annotation.left { margin-right: 20px; }
.timeline-annotation.right { margin-left: 20px; }
.annotation-content {
  font-size: 1.1rem; line-height: 1.4; text-align: center;
  overflow-wrap: break-word; color: var(--text);
}
.annotation-content:not(:has(.poem)) {
  display: flex; align-items: center; justify-content: center;
  height: 100%; width: 100%;
}

/* ---------- Różne ---------- */
.symbol { margin-top: var(--space-10); display: flex; justify-content: center; }
.symbol img {
  max-width: 100%; width: clamp(180px, 40vw, 320px); height: auto;
  opacity: 0.9; transition: all 0.6s ease;
  filter: drop-shadow(0 0 10px var(--accent-soft)); display: block; margin: 0 auto;
}
.symbol img:hover { transform: scale(1.05); opacity: 1; }
.tekst { max-width: 700px; margin: 0 auto; text-align: center; }
.tekst p { margin: 10px 0; }
.tekst p:nth-child(even) { margin-left: 0.5cm; }
.avatar { width: 96px; border-radius: 50%; border: 2px solid var(--accent); }
.profile { display: flex; flex-direction: column; gap: 14px; }
.center-dot {
  position: absolute; width: 14px; height: 14px; background: var(--text);
  border-radius: 50%; top: 50%; left: 50%;
  transform: translate(-50%, -50%); box-shadow: 0 0 20px var(--text);
}
.aura {
  position: absolute; width: 300px; height: 300px; border-radius: 50%;
  top: -25px; left: -25px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  animation: pulse 2s infinite alternate;
}
#forum { margin: 50px 0; padding: 30px; background: var(--surface); border-radius: var(--radius-md); text-align: center; }
#forum .social-container { margin-bottom: var(--space-5); }
#forum a {
  display: inline-block; padding: 12px 25px; border: 2px solid var(--text);
  color: var(--text); border-radius: var(--radius-sm); text-decoration: none;
  transition: all var(--duration-med) ease; margin-bottom: var(--space-4);
}
#forum a:hover { background: var(--text); color: var(--bg); text-decoration: none; }
#forum .button-container { margin: var(--space-5) 0; }
#forum button {
  padding: 12px 25px; font-size: 1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  cursor: pointer; transition: all var(--duration-med) ease;
}
#forum button:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.news-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.news-list article { margin-bottom: var(--space-6); padding-bottom: var(--space-4); border-bottom: 1px solid var(--line); }
.news-list h3 { font-size: 1.4rem; margin-bottom: var(--space-2); }
.news-list p { color: var(--text-body); }
main h2 { border-bottom: 2px solid var(--accent); padding-bottom: var(--space-2); }
body > #main-container {
  display: flex; justify-content: flex-start; align-items: flex-start;
  gap: var(--space-5); padding: var(--space-5) var(--space-5) 0; flex: 1;
}
body > #main-container aside {
  flex: 0 0 25%; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: var(--space-5); color: var(--text);
  min-width: 200px; height: auto;
}
body > #main-container main {
  flex: 1; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: var(--space-5) 30px;
  display: flex; flex-direction: column; min-height: 700px; overflow: hidden;
}
@media (max-width: 900px) {
  body > #main-container { flex-direction: column; gap: var(--space-5); }
  body > #main-container aside { order: -1; width: 100%; padding: var(--space-4); }
  body > #main-container main { order: 1; max-height: 60vh; overflow: hidden; }
  .accordion { font-size: 1rem; padding: 10px 12px; }
  .sidebar-img { width: 30px; height: 30px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
