/* Cały oryginalny plik style.css bez zmian poza dodanymi modyfikacjami */
:root {
  --primary: #ff5400;
  --text-light: #ffffff;
  --text-dark: #000000;
  --bg-light: #ffffff;
  --bg-dark: #1a1a1a;
  --accent: #ffcc00;
  --font-size-base: 16px; /* Bazowy rozmiar czcionki */
  --spacing-unit: 16px; /* Jednostka odstępów */
}

/* Motywy */
.light-theme {
  --primary: #ff5400;
  --text-light: #ffffff;
  --text-dark: #000000;
  --bg-light: #ffffff;
  --bg-dark: #ff5400;
  --accent: #ffcc00;
}

.dark-theme {
  --primary: #ff5400;
  --text-light: #e0e0e0;
  --text-dark: #ffffff;
  --bg-light: #121212;
  --bg-dark: #333333;
  --accent: #ffcc00;
}

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

body {
  background-color: var(--bg-light);
  color: var(--text-dark);
  font-family: Manrope, sans-serif;
  font-size: var(--font-size-base);
  transition: background-color 0.3s, color 0.3s;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

.navbar {
  display: flex;
  justify-content: center; /* Kategorie na środku */
  align-items: center;
  padding: 20px 20px;
  background-color: var(--primary); /* Pomarańczowy kolor navbaru */
  position: relative;
  z-index: 1001;
}

.logo-container {
  width: 150px; /* Stała szerokość dla logo */
  height: 70px; /* Stała wysokość dla logo */
  position: absolute;
  top: 50%;
  left: calc((100% - 1200px) / 2 + 52px); /* Wyrównanie z lewą krawędzią main-content */
  transform: translateY(-50%);
  margin-right: 20px; /* Odstęp od reszty elementów */
}

.logo {
  max-width: 150px; /* Stała szerokość logo */
  max-height: 70px; /* Stała wysokość logo */
  cursor: pointer; /* Dodanie kursora palca */
  transition: transform 0.2s; /* Lekka animacja przy hover */
}

.logo:hover {
  transform: scale(1.05); /* Nieznaczne powiększenie przy najechaniu */
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background-color 0.3s;
}

.menu-toggle:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Menu na dużych ekranach (powyżej 600px) */
.menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
  position: relative;
}

.menu li {
  position: relative;
  transition: transform 0.3s ease;
}

.menu li a {
  text-decoration: none;
  color: #ffffff; /* Dostosowanie do motywu na pomarańczowym tle */
  font-weight: 500;
  padding: 5px 5px;
  display: block;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.menu li a:hover {
  background: rgba(255, 255, 255, 0.2); /* Efekt "box" */
  color: var(--accent); /* Dostosowanie do motywu */
  transform: scale(1.1); /* Lekkie powiększenie */
  border-radius: 8px;
}

.menu li:hover ~ li a,
.menu li a:hover ~ a {
  transform: translateX(10px); /* Oddalanie sąsiednich kafelków */
  transition: transform 0.3s ease;
}

/* Akcje (przyciski) */
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}

.actions button {
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: transform 0.2s, background 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  min-width: 40px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#darkToggle {
  width: 40px;
  height: 40px;
  cursor: pointer;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

#darkToggle:hover {
  transform: scale(1.05);
}

#darkToggle img {
  width: 24px;
  height: 24px;
}

.login {
  background: linear-gradient(135deg, var(--primary), #e57e3d);
  color: var(--text-light);
}

.login:hover {
  background: linear-gradient(135deg, #e57e3d, #d0621f);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.logout {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #ffffff;
}

.logout:hover {
  background: linear-gradient(135deg, #d0392b, #a32b1f);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.subscribe {
  background-color: var(--accent);
  color: #000000;
}

.buycoffee-btn {
  margin-top: 6px;
  width: 127px;
  height: 33px;
  transition: transform 0.2s;
}

.buycoffee-btn:hover {
  transform: scale(1.05);
}

@media (max-width: 600px) {
  .navbar {
    flex-direction: row;
    align-items: center;
    padding: 8px 16px;
    position: sticky;
    top: 0;
    justify-content: space-between; /* Rozdziel logo i akcje */
  }

  .logo-container {
    position: static; /* Usunięcie pozycji absolutnej dla logo */
    width: 150px;
    height: 70px;
    margin: 0;
    flex-shrink: 0; /* Zapobiega zmniejszaniu logo */
  }

  .logo {
    margin-top: 0;
    margin-left: 0;
    height: 70px !important;
    max-width: 150px !important;
  }

  .menu-toggle {
    display: block;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1003;
    color: #ffffff;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
  }

  .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ff5400;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1002;
  }

  .menu.active {
    display: block;
  }

  .menu a {
    padding: 10px 16px;
    font-size: 1.1rem;
    width: 100%;
    text-align: left;
    color: var(--text-dark);
  }

  .menu a:hover {
    background-color: rgba(0, 0, 0, 0.1);
  }

  .menu .buycoffee-menu {
    display: block; /* Wyświetlanie linku w menu mobilnym */
  }

  .actions .buycoffee-btn {
    display: none; /* Ukrycie przycisku w wersji mobilnej */
  }

  .actions {
    display: flex;
    gap: 5px; /* Mniejszy odstęp na mobilnych */
    position: static; /* Usunięcie pozycji absolutnej */
    top: auto;
    right: auto;
    transform: none;
    margin-left: auto; /* Przesunięcie akcji na prawo */
  }

  .actions button {
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 0.8rem;
  }
}

@media (min-width: 601px) {
  .menu .buycoffee-menu {
    display: none; /* Ukrycie linku w wersji desktopowej */
  }
}

#darkToggle {
  cursor: pointer;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

#darkToggle:hover {
  transform: scale(1.05);
}

.login {
  background: linear-gradient(135deg, var(--primary), #e57e3d);
  color: var(--text-light);
}

.login:hover {
  background: linear-gradient(135deg, #e57e3d, #d0621f);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.logout {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #ffffff;
}

.logout:hover {
  background: linear-gradient(135deg, #d0392b, #a32b1f);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.subscribe {
  background-color: var(--accent);
  color: #000000;
}

.main-content {
  flex: 1 0 auto;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.main-article {
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.main-article:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.main-image {
  width: 100%;
  border-radius: 8px;
  display: block;
  object-fit: contain;
}

/* Ograniczenia dla obrazów */
[href="article.html"] img,
.article-page img,
[href="article.html"] .main-image,
.article-page .main-image {
  max-width: 100% !important;
  height: auto !important;
  max-height: 400px !important;
  object-fit: contain !important;
}

.main-overlay {
  position: absolute;
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: white;
  padding: 12px;
  width: 100%;
  border-radius: 0 0 8px 8px;
}

/* Pasek boczny */
.sidebar {
  background-color: #ff5400;
  padding: 16px;
  border-radius: 8px;
  transition: background-color 0.3s;
}

.sidebar h2 {
  border-bottom: 1px solid #ccc;
  padding-bottom: 8px;
  margin-bottom: 16px;
  color: var(--text-light);
  font-size: 1.2rem;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-light);
}

.sidebar li:hover {
  transition: transform 0.2s;
  transform: scale(1.05)
}

/* Siatka newsów */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: calc(var(--spacing-unit) / 2);
  margin-top: calc(var(--spacing-unit) * 2);
  align-items: flex-start;
}

.news-card {
  background-color: var(--bg-light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 10px #000000;
  transition: transform 0.2s, background-color 0.3s;
  cursor: pointer;
  min-height: 270px;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-5px);
}

.news-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.news-card h3 {
  padding: 12px;
  font-size: 1.1rem;
  margin: 0;
  color: var(--text-dark);
}

.news-card p {
  padding: 0 12px 12px;
  font-size: 1rem;
  color: var(--text-dark);
  flex-grow: 1;
}

.search-results .news-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: calc(var(--spacing-unit) * 2);
  align-items: stretch;
}

.search-results .news-card {
  background-color: var(--bg-light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 10px #000000;
  transition: transform 0.2s, background-color 0.3s;
  cursor: pointer;
  height: 180px; 
  min-height: 200px;
  width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

.search-results .news-card:hover {
  transform: translateY(-5px);
}

.search-results .news-card img {
  width: 360px;
  height: 200px;
  object-fit: contain;
  display: block;
}

.search-results .news-card div {
  width: 240px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.search-results .news-card h3 {
  padding: 0;
  font-size: 1.1rem;
  margin: 0 0 8px 0;
  color: var(--text-dark);
}

.search-results .news-card p {
  padding: 0;
  font-size: 1rem;
  color: var(--text-dark);
  flex-grow: 1;
}

/* Ostatnie newsy */
#recent-news {
  font-size: 1rem;
}

#recent-news li {
  padding: 8px 0;
  cursor: pointer;
}

/* Panel administracyjny */
.admin-panel {
  background: linear-gradient(135deg, var(--bg-dark), #2c2c2c);
  padding: calc(var(--spacing-unit) * 1.5);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  transition: background 0.3s, box-shadow 0.3s;
  min-height: 300px;
  display: flex;
  flex-direction: column;
}

.admin-panel h1 {
  font-size: 1.8rem;
  margin-bottom: calc(var(--spacing-unit) * 2);
  color: var(--text-light);
  text-align: center;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 8px;
  display: inline-block;
}

.admin-form {
  margin-bottom: calc(var(--spacing-unit) * 2.5);
}

.admin-form h2 {
  font-size: 1.4rem;
  margin-bottom: calc(var(--spacing-unit) / 2);
  color: var(--text-light);
  background-color: rgba(255, 255, 255, 0.1);
  padding: 10px;
  border-radius: 6px;
}

.admin-form form {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-unit) / 2);
  background-color: rgba(255, 255, 255, 0.05);
  padding: calc(var(--spacing-unit) / 2);
  border-radius: 8px;
}

.admin-form label {
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 6px;
  font-size: 1rem;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  padding: 12px;
  border: 2px solid var(--bg-light);
  border-radius: 8px;
  background-color: var(--bg-light);
  color: var(--text-dark);
  transition: border-color 0.3s, box-shadow 0.3s;
  font-size: 1rem;
  min-width: 0;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 8px rgba(255, 145, 77, 0.5);
  outline: none;
}

.admin-form input[type="date"],
.admin-form input[type="time"] {
  width: 100%;
}

.admin-form textarea {
  resize: vertical;
  min-height: 150px;
}

.admin-form button {
  background-color: var(--accent);
  color: var(--text-dark);
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s, transform 0.2s;
  font-size: 1rem;
  min-width: 120px;
}

.admin-form button:hover {
  background-color: #e6b800;
  transform: translateY(-2px);
}

.drop-zone {
  border: 2px dashed var(--text-light);
  padding: calc(var(--spacing-unit) * 1.5);
  text-align: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.drop-zone.dragover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: var(--primary);
}

#imagePreview {
  max-height: 250px;
  object-fit: contain;
  border-radius: 8px;
  margin-top: 12px;
}

.message-container {
  margin-top: calc(var(--spacing-unit) / 2);
}

.success-message,
.error-message {
  padding: 12px 20px;
  border-radius: 6px;
  text-align: center;
  animation: fadeOut 3s forwards;
  font-size: 1rem;
}

.success-message {
  background-color: #4CAF50;
  color: white;
}

.error-message {
  background-color: #f44336;
  color: white;
}

@keyframes fadeOut {
  0% { opacity: 1; }
  90% { opacity: 1; }
  100% { opacity: 0; display: none; }
}

.admin-list h2 {
  font-size: 1.4rem;
  margin-bottom: calc(var(--spacing-unit) / 2);
  color: var(--text-light);
  background-color: rgba(255, 255, 255, 0.1);
  padding: 10px;
  border-radius: 6px;
}

.admin-list ul {
  list-style: none;
  padding: 0;
}

.admin-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: linear-gradient(135deg, var(--bg-light), rgba(255, 255, 255, 0.1));
  margin-bottom: calc(var(--spacing-unit) / 2);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.admin-list li:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.admin-list .article-info {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 1rem;
}

.admin-list button {
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  margin-left: 8px;
  font-size: 0.9rem;
  min-width: 80px;
}

.admin-list .edit-btn {
  background-color: var(--accent);
  color: var(--text-dark);
}

.admin-list .edit-btn:hover {
  background-color: #e6b800;
  transform: translateY(-1px);
}

.admin-list .delete-btn {
  background-color: #ff4d4d;
  color: var(--text-light);
}

.admin-list .delete-btn:hover {
  background-color: #e60000;
  transform: translateY(-1px);
}

/* Stopka */
.footer {
  background-color: var(--primary);
  color: var(--text-light);
  font-size: 0.9rem;
  transition: background-color 0.3s;
  width: 100%;
  text-align: center;
  padding: 15px 0;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
  margin-top: auto;
  user-select: auto;
  position: static;
}

.footer a {
  color: var(--text-light);
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.3s;
  font-size: 0.9rem;
}

.footer a:hover {
  color: var(--accent);
}

/* Login Panel */
.login-panel {
  background-color: var(--bg-light);
  padding: calc(var(--spacing-unit) * 1.25);
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
}

.login-panel h1 {
  font-size: 1.8rem;
  margin-bottom: calc(var(--spacing-unit) / 2);
  color: var(--text-dark);
}

.login-panel label {
  display: block;
  text-align: left;
  margin-bottom: 6px;
  font-size: 1rem;
  color: var(--text-dark);
}

.login-panel input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rm;
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.login-panel .g-recaptcha {
  margin: 10px 0;
}

.login-panel button {
  width: 100%;
  padding: 10px;
  background-color: var(--primary);
  color: var(--text-light);
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.login-panel button:hover {
  background-color: #e57e3d;
}

.login-options {
  margin-top: 1rem;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.login-tile {
  flex: 1;
  padding: 10px;
  background-color: var(--bg-light);
  border: 1px solid var(--primary);
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
  text-decoration: none;
  color: var(--text-dark);
  transition: background-color 0.3s, transform 0.2s;
  font-size: 1rem;
}

.login-tile:hover {
  background-color: var(--primary);
  color: var(--text-light);
  transform: translateY(-2px);
}

#loginMessage {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-dark);
}

/* Dostosowanie checkboxów w sekcji regulaminu */
.terms {
  display: flex;
  align-items: center;
  text-align: left;
  margin-bottom: 8px;
}

.terms input[type="checkbox"] {
  margin-right: 8px; /* Odstęp między checkboxem a tekstem */
  width: 16px;
  height: 16px;
}

/* Responsywność */
@media (max-width: 1200px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .main-grid {
    grid-template-columns: 1fr;
  }

  .navbar {
    flex-direction: row;
    align-items: center;
    padding: 8px 16px;
    position: sticky;
    top: 0;
    justify-content: center; /* Wyśrodkowanie logo */
  }

  .logo-container {
    position: static; /* Usunięcie pozycji absolutnej dla logo */
    width: 150px;
    height: 70px;
    margin: 0 auto; /* Wyśrodkowanie logo */
  }

  .logo {
    margin-top: 37px;
    margin-left: 0; /* Usunięcie przesunięcia */
    height: 70px !important;
    max-width: 150px !important;
  }

  .menu-toggle {
    display: block;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1003;
    color: #ffffff;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
  }

  .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ff5400;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1002;
  }

  .menu.active {
    display: block;
  }

  .menu a {
    padding: 10px 16px;
    font-size: 1.1rem;
    width: 100%;
    text-align: left;
    color: var(--text-dark);
  }

  .menu a:hover {
    background-color: rgba(0, 0, 0, 0.1);
  }

  .actions {
    display: flex;
    gap: 10px;
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
  }

  .actions button {
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 0.8rem;
  }

  .main-content {
    padding: calc(var(--spacing-unit) / 2);
  }

  .sidebar {
    padding: calc(var(--spacing-unit) / 2);
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: calc(var(--spacing-unit) / 2);
  }

  .news-card {
    min-height: 200px;
  }

  .news-card img {
    height: 100px;
  }

  .admin-form input[type="date"],
  .admin-form input[type="time"] {
    width: 100%;
  }

  .admin-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .admin-list .article-info {
    white-space: normal;
  }

  .article-page {
    padding: 12px;
  }

  .article-page h1 {
    font-size: 1.5rem;
  }

  #twitter-post-container {
    text-align: center;
    margin: 20px auto;
    padding: 10px 0;
    max-width: 100%;
    min-height: 200px;
    margin-bottom: 120px;
  }

  #twitter-post-container p {
    color: var(--text-dark);
    font-size: 1rem;
  }

  .article-tags {
    width: 90%;
    margin-bottom: 60px;
    position: relative; /* Zmiana z absolute na relative */
    bottom: auto;
    left: auto;
    transform: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px; /* Mniejszy odstęp między tagami na mobilnych */
    padding: 6px;
    max-width: 100%; /* Zapobiega rozciąganiu */
  }

  .article-content {
    font-size: 0.9rem !important; /* Dostosowanie wielkości czcionki dla treści artykułu z priorytetem */
  }

  .article-page img,
  .article-page .main-image,
  .article-image {
    max-height: 200px; /* Mniejszy rozmiar obrazu na mobilnych */
  }
}

.login-panel {
  margin: 1rem;
  padding: calc(var(--spacing-unit) / 2);
}

.login-options {
  flex-direction: column;
  gap: 6px;
}

.login-tile {
  width: 100%;
}

.admin-panel {
  padding: calc(var(--spacing-unit) / 2);
}

.admin-form {
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.admin-form form {
  gap: calc(var(--spacing-unit) / 2);
  padding: calc(var(--spacing-unit) / 2);
}

.admin-list li {
  padding: 10px;
}

.article-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 12px;
  font-size: 11px;
}

.article-page h1 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.article-page img,
.article-page .main-image,
.article-image {
  border-radius: 8px;
  margin-bottom: 1px;
  display: block;
  max-height: 300px;
  object-fit: contain;
}

.article-image-source {
  color: #595959;
  margin-top: 0.1px; /* Bardzo drobny odstęp, jak poproszono */
  margin-bottom: 12px; /* Odstęp przed następnym elementem */
  display: block; /* Upewnij się, że jest w nowej linii */
  font-family: 'Manrope';
  font-size: 11px;
}

.article-meta,
.article-page .post-meta {
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.article-meta .author,
.article-page .post-meta .author {
  color: var(--text-dark); /* Zmiana na ciemny tekst w motywie jasnym */
  text-decoration: none; /* Usunięcie podkreślenia */
  transition: color 0.3s ease; /* Płynne przejście koloru */
}

.article-meta .author:hover,
.article-page .post-meta .author:hover {
  color: var(--primary); /* Zmiana na pomarańczowy po najechaniu z użyciem zmiennej */
  text-decoration: none; /* Zachowanie braku podkreślenia */
}

.article-content,
.article-page p {
  margin-top: 12px;
  margin-bottom: 12px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-dark);
}

.article-page cite {
  display: block;
  margin-top: 12px;
  font-style: italic;
  color: #666;
}

.twitter-post {
  text-align: center;
  margin: 20px auto;
  padding: 10px 0;
  max-width: 100%;
}

/* Komunikat o prywatności */
#privacyOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
}

#privacyModal {
  background-color: var(--bg-light);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  max-width: 90%;
  width: 500px; /* Zwiększona szerokość dla lepszej czytelności */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: var(--text-dark);
  font-size: 1.1rem; /* Lekko większa czcionka dla lepszej czytelności */
}

#privacyModal h2 {
  margin-top: 0;
  font-size: 1.5rem; /* Większy nagłówek */
  color: var(--text-dark);
  margin-bottom: 15px;
}

#privacyModal p {
  font-size: 1rem; /* Dostosowana czcionka */
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.5; /* Lepsza czytelność */
}

#privacyModal .consent-buttons {
  display: flex;
  justify-content: center;
  gap: 15px; /* Większy odstęp między przyciskami */
}

#privacyModal button {
  padding: 12px 20px; /* Większy padding dla przycisków */
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  font-size: 1rem; /* Większa czcionka w przyciskach */
  min-width: 120px;
}

#privacyModal #acceptConsent {
  background-color: #ff5400;
  color: var(--text-light);
}

#privacyModal #acceptConsent:hover {
  background-color: #ff5400;
  transform: translateY(-2px);
}

#privacyModal #advancedConsent {
  background-color: #333333;
  color: var(--text-light);
}

#privacyModal #advancedConsent:hover {
  background-color: #333333;
  transform: translateY(-2px);
}

/* Opcje zaawansowane */
#privacyModal.advanced {
  max-width: 90%;
  width: 550px; /* Nieco większa szerokość dla opcji zaawansowanych */
  padding: 20px;
  text-align: left;
}

.consent-options {
  margin: 15px 0;
}

.consent-options label {
  display: block;
  margin-bottom: 15px;
  font-size: 1rem;
}

.consent-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.consent-buttons button {
  padding: 12px 20px;
  margin: 0 5px;
  font-size: 1rem;
}

#privacyModal.advanced .consent-options {
  margin: 20px 0;
  text-align: left;
}

#privacyModal.advanced label {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  color: var(--text-dark);
}

#privacyModal.advanced input[type="checkbox"] {
  appearance: none;
  width: 50px; /* Większy suwak */
  height: 25px; /* Większy suwak */
  background: #ccc;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  outline: none;
  margin-right: 15px;
}

#privacyModal.advanced input[type="checkbox"]:checked {
  background: #ff5400;
}

#privacyModal.advanced input[type="checkbox"]:before {
  content: '';
  position: absolute;
  width: 20px; /* Większa kropka */
  height: 20px; /* Większa kropka */
  background: white;
  border-radius: 50%;
  top: 2.5px;
  left: 2.5px;
  transition: left 0.3s;
}

#privacyModal.advanced input[type="checkbox"]:checked:before {
  left: 27.5px; /* Dostosowanie pozycji dla większego suwaka */
}

#privacyModal.advanced #saveConsent {
  background-color: #ff5400;
  color: var(--text-light);
}

#privacyModal.advanced #saveConsent:hover {
  background-color: #ff5400;
  transform: translateY(-2px);
}

#privacyModal.advanced #cancelConsent {
  background-color: #ff0a00;
  color: var(--text-light);
}

#privacyModal.advanced #cancelConsent:hover {
  background-color: #ff0a00;
  transform: translateY(-2px);
}

/* Panel kontaktowy */
.contact-panel {
  background-color: var(--bg-light);
  padding: calc(var(--spacing-unit) * 1.25);
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-panel h1 {
  font-size: 1.8rem;
  margin-bottom: calc(var(--spacing-unit) / 2);
  color: var(--text-dark);
}

.contact-panel p {
  font-size: 1rem;
  margin-bottom: calc(var(--spacing-unit));
  color: var(--text-dark);
}

.contact-panel label {
  display: block;
  text-align: left;
  margin-bottom: 6px;
  font-size: 1rem;
  color: var(--text-dark);
}

.contact-panel input,
.contact-panel textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.contact-panel textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-panel button {
  width: 100%;
  padding: 10px;
  background-color: var(--primary);
  color: var(--text-light);
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contact-panel button:hover {
  background-color: #e57e3d;
}

.message-container {
  margin-top: calc(var(--spacing-unit) / 2);
}

.success-message,
.error-message {
  padding: 12px 20px;
  border-radius: 6px;
  text-align: center;
  animation: fadeOut 3s forwards;
  font-size: 1rem;
}

.success-message {
  background-color: #4CAF50;
  color: white;
}

.error-message {
  background-color: #f44336;
  color: white;
}

@keyframes fadeOut {
  0% { opacity: 1; }
  90% { opacity: 1; }
  100% { opacity: 0; display: none; }
}

/* Panel reklamowy */
.formSection {
  background-color: var(--bg-light);
  padding: calc(var(--spacing-unit) * 1.25);
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.formSection h1 {
  font-size: 1.8rem;
  margin-bottom: calc(var(--spacing-unit) / 2);
  color: var(--text-dark);
}

.formSection p {
  font-size: 1rem;
  margin-bottom: calc(var(--spacing-unit));
  color: var(--text-dark);
}

.formSection label {
  display: block;
  text-align: left;
  margin-bottom: 6px;
  font-size: 1rm;
  color: var(--text-dark);
}

.formSection input,
.formSection textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.formSection textarea {
  resize: vertical;
  min-height: 150px;
}

.formSection button {
  width: 100%;
  padding: 10px;
  background-color: var(--primary);
  color: var(--text-light);
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.formSection button:hover {
  background-color: #e57e3d;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-unit);
}

/* Styl ogólny dla sekcji autorów */
.about-redakcja {
  padding: var(--spacing-unit);
  background-color: var(--bg-light);
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

/* Dedykowane style dla /autorzy (lista autorów) */
.about-redakcja.author-list {
  padding: var(--spacing-unit);
  background-color: var(--bg-light);
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.about-redakcja.author-list:hover {
  transform: translateY(-5px);
}

.about-redakcja.author-list .team-members {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--spacing-unit)); /* Zwiększony odstęp między autorami na /autorzy */
  margin-top: calc(var(--spacing-unit) / 1);
}

.about-redakcja.author-list .team-member {
  text-align: center;
  flex: 1 1 200px; /* Minimalna szerokość 200px, dostosowuje się */
  padding: 10px;
}

.about-redakcja.author-list .team-photo {
  width: 200px; /* Zwiększony rozmiar dla /autorzy */
  height: 200px;
  border-radius: 50%; /* Okrągły format */
  object-fit: cover;
  margin-bottom: 8px;
  cursor: pointer;
}

.about-redakcja.author-list .team-member p {
  font-size: 12px;
  color: var(--text-dark);
}

/* Dedykowane style dla /autorzy/[redaktor] (szczegóły autora) */
.about-redakcja.author-detail {
  padding: var(--spacing-unit);
  background-color: var(--bg-light);
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.about-redakcja.author-detail:hover {
  transform: translateY(-5px);
}

/* Dedykowane style dla /autorzy/[redaktor] (szczegóły autora) */
.about-redakcja.author-detail .team-member {
  text-align: center;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-redakcja.author-detail .author-role {
  font-size: 16px !important; /* Domyślny rozmiar, możesz zmienić na 16px itp. */
  color: var(--text-dark);
  line-height: 1.5;
  margin-top: 12px; /* Odstęp od zdjęcia */
  margin-bottom: 24px; /* Zwiększony odstęp od treści poniżej */
  max-width: 80%; /* Ograniczenie szerokości tekstu */
}

.about-redakcja.author-detail .team-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%; /* Okrągły format */
  object-fit: cover;
  margin-bottom: 12px;
  cursor: pointer;
}

.about-redakcja.author-detail .team-member p {
  font-size: 18px; /* Domyślny rozmiar dla opisu */
  color: var(--text-dark);
  line-height: 1.5;
  margin-top: 12px;
  max-width: 80%;
}

/* Dedykowane style dla /about (np. w .about-content) */
.about-content .team-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%; /* Okrągły format */
  object-fit: cover;
  margin-bottom: 8px;
  cursor: pointer;
}

/* Responsywność dla obu wariantów */
@media (max-width: 600px) {
  .about-redakcja.author-list {
    padding: calc(var(--spacing-unit) / 2);
  }

  .about-redakcja.author-list .team-members {
    flex-direction: column;
    align-items: center;
  }

  .about-redakcja.author-list .team-member {
    flex: 1 1 100%;
  }

  .about-redakcja.author-list .team-photo {
    width: 120px;
    height: 120px;
  }

  .about-redakcja.author-detail {
    padding: calc(var(--spacing-unit) / 2);
  }

  .about-redakcja.author-detail .team-member {
    padding: 10px;
  }

  .about-redakcja.author-detail .team-photo {
    width: 150px;
    height: 150px;
  }
}

.about-social a {
  color: var(--primary);
  text-decoration: none;
  margin: 0 8px;
}

.about-social a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Dodatki dla nowych sekcji */
.team-members {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--spacing-unit) / 2);
  margin-top: calc(var(--spacing-unit) / 1);
}

.team-member {
  text-align: center;
  flex: 1 1 200px; /* Minimalna szerokość 200px, dostosowuje się */
}

.timeline {
  position: relative;
  padding: calc(var(--spacing-unit) / 2);
}

.timeline-item {
  text-align: left;
  margin-bottom: calc(var(--spacing-unit) * 1.5);
  position: relative;
  padding-left: calc(var(--spacing-unit) * 2); /* Przesunięcie tekstu w lewo od linii */
}

.timeline-item h3 {
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  width: 2px;
  height: calc(103% + var(--spacing-unit));
  background-color: var(--text-dark);
  left: calc(var(--spacing-unit) * 1.3); /* Linia przesunięta na lewo od tekstu */
  transform: translateX(0);
  top: -calc(var(--spacing-unit) / 2);
}

.timeline-item:last-child::before {
  height: 0; /* Usunięcie linii po ostatnim elemencie */
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: var(--text-dark);
  border-radius: 50%;
  left: calc(var(--spacing-unit) * 1); /* Punkt na linii */
  transform: translateX(0);
  top: 0;
}

.about-social ul {
  list-style: none;
  padding: 0;
}

.about-social li {
  margin-bottom: 8px;
}

@media (max-width: 600px) {
  .about-content {
    gap: calc(var(--spacing-unit) / 2);
  }

  .about-redakcja, .about-misja, .about-historia, .about-social {
    padding: calc(var(--spacing-unit) / 2);
  }

  .team-members {
    flex-direction: column;
    align-items: center;
  }

  .team-member {
    flex: 1 1 100%;
  }

  .about-content .team-photo {
    width: 120px;
    height: 120px;
  }

  .timeline-item {
    padding-left: calc(var(--spacing-unit) * 1.5); /* Mniejszy odstęp na mobile */
  }

  .timeline-item::before {
    left: calc(var(--spacing-unit) * 0.75); /* Dostosowanie linii na mobile */
  }

  .timeline-item::after {
    left: calc(var(--spacing-unit) * 0.75); /* Dostosowanie punktu na mobile */
  }
}

/* Dodaj do style.css */
.recent-icon {
  width: 30px;
  height: 30px;
  vertical-align: middle;
  margin-right: 8px;
}

@media (max-width: 600px) {
  .recent-icon {
    width: 28px;
    height: 28px;
    margin-right: 6px;
  }
}

.admin-dashboard {
  background: linear-gradient(135deg, #1a1a1a);
  padding: calc(var(--spacing-unit) * 2);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  transition: background 0.3s, box-shadow 0.3s;
  max-width: 1400px;
  margin: 0 auto;
}

.dashboard-header {
  padding-bottom: calc(var(--spacing-unit));
  border-bottom: 2px solid var(--accent);
  margin-bottom: calc(var(--spacing-unit) * 2);
  text-align: center;
}

.dashboard-header h1 {
  font-size: 2.2rem;
  color: var(--text-light);
  font-weight: 700;
}

.dashboard-tabs {
  display: flex;
  justify-content: center;
  gap: calc(var(--spacing-unit));
  margin-bottom: calc(var(--spacing-unit) * 2);
  border-bottom: 2px solid var(--accent);
}

.tab {
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 6px 6px 0 0;
  color: var(--text-light);
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  font-size: 1.1rem;
  font-weight: 600;
}

.tab.active {
  background: var(--accent);
  color: #1a1a1a;
}

.dashboard-content {
  position: relative;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.overview-card { grid-area: overview; }
.content-card { grid-area: content; }
.articles-card { grid-area: articles; }
.notifications-card { grid-area: notifications; }

.dashboard-card {
  background: rgba(255, 255, 255, 0.05);
  padding: calc(var(--spacing-unit) * 1.5);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  min-height: 400px;
  display: flex;
  flex-direction: column;
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.dashboard-card h2 {
  font-size: 1.8rem;
  margin-bottom: calc(var(--spacing-unit));
  color: var(--text-light);
  background-color: rgba(255, 255, 255, 0.1);
  padding: 12px;
  border-radius: 6px;
  text-align: center;
}

.overview-card .stats-overview {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: calc(var(--spacing-unit) / 2);
  margin-bottom: calc(var(--spacing-unit) * 1.5);
  padding: calc(var(--spacing-unit));
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.overview-card .stat-item {
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  color: var(--text-light);
  font-size: 1.2rem;
  text-align: center;
  transition: background-color 0.3s;
}

.overview-card .stat-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.overview-card .stat-item span:first-child {
  font-weight: 600;
  margin-right: 8px;
}

.content-card .content-actions {
  display: flex;
  gap: 15px;
  margin-bottom: calc(var(--spacing-unit) * 1.5);
  justify-content: center;
}

.content-card button {
  flex: 1;
  padding: 12px;
  background-color: var(--accent);
  color: #1a1a1a;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background-color 0.3s, transform 0.2s;
  max-width: 200px;
}

.content-card button:hover {
  background-color: #e6b800;
  transform: translateY(-2px);
}

#articleFormContainer {
  margin-top: calc(var(--spacing-unit) * 1.5);
  padding: calc(var(--spacing-unit));
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
}

.form-group {
  margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.form-group label {
  display: block;
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 6px;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  font-size: 1rm;
  transition: border-color 0.3s, background-color 0.3s;
}

.form-group input[type="text"]:focus,
.form-group input[type="date"]:focus,
.form-group input[type="time"]:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.drop-zone {
  border: 2px dashed rgba(255, 255, 255, 0.2);
  padding: calc(var(--spacing-unit));
  text-align: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.3s, background-color 0.3s;
}

.drop-zone.dragover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.1);
}

.form-submit {
  padding: 12px 20px;
  background-color: var(--primary);
  color: var(--text-light);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1rem;
  width: 100%;
  transition: background-color 0.3s, transform 0.2s;
}

.form-submit:hover {
  background-color: #e57e3d;
  transform: translateY(-2px);
}

.articles-card ul {
  list-style: none;
  padding: 0;
  max-height: 300px;
  overflow-y: auto;
}

.articles-card li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: linear-gradient(135deg, #1a1a1a, #1a1a1a);
  margin-bottom: calc(var(--spacing-unit) / 2);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.articles-card li:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.articles-card span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #ffffff;
  font-weight: 500;
  font-size: 1.1rem;
}

.articles-card button {
  padding: 8px 15px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  margin-left: 8px;
  font-size: 0.95rem;
  min-width: 80px;
  font-weight: 600;
}

.articles-card .edit-btn {
  background-color: var(--accent);
  color: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.articles-card .edit-btn:hover {
  background-color: #e6b800;
  transform: translateY(-2px);
}

.articles-card .delete-btn {
  background-color: #ff4d4d;
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.articles-card .delete-btn:hover {
  background-color: #e60000;
  transform: translateY(-2px);
}

.formatting-help {
  margin: 10px 0;
}

.help-btn {
  padding: 8px 15px;
  background-color: #ff5400; /* Jasny motyw: pomarańczowy */
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.help-btn:hover {
  background-color: #e04e00; /* Jasny motyw: ciemniejszy odcień przy hover */
}

.dark-theme .help-btn {
  background-color: #ff8c42; /* Ciemny motyw: jaśniejszy pomarańcz */
}

.dark-theme .help-btn:hover {
  background-color: #ff7043; /* Ciemny motyw: kontrastowy hover */
}

.instructions-panel {
  border: 1px solid #ddd;
  padding: 15px;
  background-color: #f9f9f9; /* Jasny motyw: jasne tło */
  margin-top: 5px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dark-theme .instructions-panel {
  border-color: #444;
  background-color: #2a2a2a; /* Ciemny motyw: ciemne tło */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.instructions-panel h3 {
  margin-top: 0;
  color: #333; /* Jasny motyw: ciemny tekst */
}

.dark-theme .instructions-panel h3 {
  color: #ddd; /* Ciemny motyw: jasny tekst */
}

.instructions-panel ul {
  margin: 10px 0;
  padding-left: 20px;
}

.instructions-panel code {
  background-color: #f0f0f0; /* Jasny motyw: jasne tło dla kodu */
  padding: 2px 5px;
  border-radius: 3px;
  color: #333; /* Jasny motyw: ciemny tekst kodu */
}

.dark-theme .instructions-panel code {
  background-color: #3a3a3a; /* Ciemny motyw: ciemne tło dla kodu */
  color: #f0f0f0; /* Ciemny motyw: jasny tekst kodu */
}

.article-tags {
  font-size: 0.9rem;
  color: var(--text-dark);
  margin: 12px 0;
  padding: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  position: relative;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  bottom: auto;
}

.article-tags a.tag-cloud {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 4px 8px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-dark);
  transition: background-color 0.3s, transform 0.2s;
}

.article-tags a.tag-cloud:hover {
  background-color: var(--accent);
  transform: translateY(-2px);
}

.dark-theme .article-tags a.tag-cloud {
  background-color: rgba(255, 255, 255, 0.05);
}

.dark-theme .article-tags a.tag-cloud:hover {
  background-color: var(--accent);
}

main {
  position: relative;
  min-height: 100vh;
  padding-bottom: 120px;
}

@media (max-width: 600px) {
  .search-results .news-card {
    height: auto;
    min-height: 200px;
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
  }

  .search-results .news-card img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
  }

  .search-results .news-card div {
    width: 100%;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .search-results .news-card h3 {
    padding: 0;
    font-size: 1.1rem;
    margin: 0 0 8px 0;
    color: var(--text-dark);
  }

  .search-results .news-card p {
    padding: 0;
    font-size: 1rem;
    color: var(--text-dark);
    flex-grow: 1;
  }
}

/* Strona błędu 404 */
.error-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px); /* Odejmujemy wysokość navbaru i stopki */
  text-align: center;
  padding: var(--spacing-unit);
}

.error-404 h1 {
  font-size: 6rem;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: calc(var(--spacing-unit) / 2);
}

.error-404 p {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: calc(var(--spacing-unit) / 2);
}

.error-404 p:last-child {
  font-size: 1rem;
  color: var(--text-dark);
}

@media (max-width: 600px) {
  .error-404 h1 {
    font-size: 4rem;
  }

  .error-404 p {
    font-size: 1.2rem;
  }
}