:root {
  --bg: #324061;
  --card: #111827;
  --muted: #94a3b8;
  --text: #e5e7eb;
  --accent-green: #24f71c;
  --accent-red: #5cfa1e;
  --accent-yellow: #ff1616;
  --border: #1f2937;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--bg), #0b1229 50%, var(--bg));
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* HEADER + FOOTER */

.site-header, .site-footer {
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.site-footer {
  border-top: 1px solid var(--border);
  border-bottom: none;
  margin-top: auto; /* footer zawsze na dole */
}

.wrap {
  max-width: 1024px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* BRAND LOGO */

.brand {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.brand .green { color: var(--accent-green); }
.brand .red { color: var(--accent-red); }
.brand .yellow { color: var(--accent-yellow); }

/* NAVIGATION */

.nav a {
  color: var(--text);
  text-decoration: none;
  margin-left: 16px;
  opacity: 0.9;
}
.nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* MAIN */

.container {
  flex: 1;
  max-width: 2000px;
  margin: 24px auto;
  padding: 0 20px 40px;
}

.title-colored {
  font-size: 40px;
  margin-bottom: 16px;
  text-align: center;
}
.title-colored .green { color: var(--accent-green); }
.title-colored .red { color: var(--accent-red); }
.title-colored .yellow { color: var(--accent-yellow); }

.bialy-tekst {
    color: white;
}

p { color: var(--muted); line-height: 1.6; }

/* CARD STYLING */

.card {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(17,24,39,0.8), rgba(17,24,39,0.6));
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.card.warn { border-color: rgba(245, 158, 11, 0.4); }
.card code { color: var(--accent-yellow); }

.site-footer p {
  width: 100%;
  text-align: center;
  color: var(--muted);
}
.site-footer .green { color: var(--accent-green); }
.site-footer .yellow { color: var(--accent-yellow); }

/* ===== ładna wyszukiwarka listy szkoleń ===== */
.searchbar{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background: linear-gradient(180deg,#0f1320,#0b1020);
}

.search-ico{
  opacity:.85;
  font-size:16px;
  line-height:1;
  user-select:none;
}

.search-inp{
  flex:1 1 auto;
  min-width: 180px;
  border:0;
  outline:0;
  background: transparent;
  color: var(--text);
  font-size:16px;
  padding:10px 6px;
}

.search-inp::placeholder{
  color: var(--muted);
  opacity: .85;
}

.searchbar:focus-within{
  border-color:#22c55e;
  box-shadow:0 0 0 3px rgba(34,197,94,.18);
}

.search-chip{
  flex:0 0 auto;
  font-size:12px;
  color: var(--text);
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  white-space:nowrap;
}

.search-clear{
  flex:0 0 auto;
  width:38px;
  height:38px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: var(--text);
  cursor:pointer;
  display:none; /* pokażemy tylko gdy jest tekst */
}

.search-clear:hover{ filter:brightness(1.05); }
.search-clear:active{ transform:translateY(1px); }

@media (max-width:520px){
  .search-chip{ display:none; } /* na telefonie mniej “zagracone” */
}
