/* ===== KOLORY GŁÓWNE ===== */
:root {
  --primary-blue: #1e3a8a;
  --accent-blue: #3b82f6;
  --light-blue: #93c5fd;
  --gray-text: #64748b;
  --dark-text: #1e293b;
  --light-bg: #f8fafc;
  --white: #ffffff;
}

/* ===== NAVBAR - NAWIGACJA ===== */
.navbar {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.15);
  padding: 0.75rem 0;
}

.navbar-brand img {
  max-height: 50px;
  width: auto;
  filter: brightness(0) invert(1); /* Białe logo na ciemnym tle */
}

.navbar-nav .nav-link {
  color: var(--white) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--light-blue) !important;
  transform: translateY(-2px);
}

/* ===== TYPOGRAPHY - TYPOGRAFIA ===== */
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--dark-text);
  line-height: 1.7;
  background-color: var(--light-bg);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--primary-blue);
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  border-bottom: 3px solid var(--accent-blue);
  padding-bottom: 0.5rem;
}

h2 {
  font-size: 2rem;
  color: var(--accent-blue);
}

/* ===== STRONA GŁÓWNA ===== */
.quarto-title-banner {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
  color: var(--white);
  padding: 3rem 0;
  margin-bottom: 2rem;
}

.quarto-title-banner .title {
  color: var(--white);
  font-size: 3rem;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* ===== LISTING - LISTA POSTÓW ===== */
.quarto-listing-default .listing-item {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border-left: 4px solid var(--accent-blue);
}

.quarto-listing-default .listing-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(30, 58, 138, 0.15);
}

.listing-title {
  color: var(--primary-blue) !important;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.listing-title:hover {
  color: var(--accent-blue) !important;
}

.listing-description {
  color: var(--gray-text);
  font-size: 1rem;
  line-height: 1.6;
}

.listing-date {
  color: var(--gray-text);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ===== KATEGORIE ===== */
.listing-category {
  background-color: var(--light-blue);
  color: var(--primary-blue);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  margin-right: 0.5rem;
  transition: all 0.3s ease;
}

.listing-category:hover {
  background-color: var(--accent-blue);
  color: var(--white);
  transform: scale(1.05);
}

/* ===== LINKI ===== */
a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-blue);
  text-decoration: underline;
}

/* ===== KARTY I KONTENERY ===== */
.card, .panel {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
  border: none;
}

/* ===== PRZYCISKI ===== */
.btn, button {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn:hover, button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
  color: var(--white);
}

/* ===== TABELE ===== */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

thead {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
  color: var(--white);
}

th {
  padding: 1rem;
  font-weight: 600;
  text-align: left;
}

td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
}

tr:hover {
  background-color: var(--light-bg);
}

/* ===== KOD ===== */
pre, code {
  background-color: #f1f5f9;
  border-radius: 6px;
  border-left: 4px solid var(--accent-blue);
}

pre {
  padding: 1rem;
  overflow-x: auto;
}

code {
  padding: 0.2rem 0.4rem;
  font-size: 0.9em;
  color: var(--primary-blue);
}

/* ===== STOPKA ===== */
footer {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
  color: var(--white);
  padding: 2rem 0;
  margin-top: 4rem;
  text-align: center;
}

/* ===== RESPONSYWNOŚĆ ===== */
@media (max-width: 768px) {
  .quarto-title-banner .title {
    font-size: 2rem;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  .navbar-brand img {
    max-height: 40px;
  }
}

/* ===== ANIMACJE ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.listing-item {
  animation: fadeIn 0.5s ease-out;
}

/* ===== DODATKOWE AKCENTY ===== */
blockquote {
  border-left: 4px solid var(--accent-blue);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  color: var(--gray-text);
  font-style: italic;
  background-color: var(--light-bg);
  padding: 1rem 1.5rem;
  border-radius: 0 8px 8px 0;
}

hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
  margin: 2rem 0;
}

/* ===== KLARO COOKIE CONSENT - BIAŁY TEKST NA CIEMNYM TLE ===== */

/* Wszystkie teksty w Klaro - BIAŁY KOLOR */
.klaro .cookie-notice,
.klaro .cookie-notice *,
.klaro .cookie-modal,
.klaro .cookie-modal * {
  color: #ffffff !important;
}

/* Body modala - biały tekst */
.klaro .cookie-modal .cm-body,
.klaro .cookie-modal .cm-body * {
  color: #ffffff !important;
}

/* Banner - biały tekst */
.klaro .cookie-notice .cn-body,
.klaro .cookie-notice .cn-body * {
  color: #ffffff !important;
}

/* Linki - jasnoniebieskie aby były widoczne na ciemnym tle */
.klaro a,
.klaro .cm-link {
  color: #93c5fd !important;
  text-decoration: underline !important;
}

.klaro a:hover,
.klaro .cm-link:hover {
  color: #dbeafe !important;
}

/* Przyciski - zachowaj ich własne kolory */
.klaro button {
  color: inherit !important;
}
