/* ==============================
   RESET
============================== */
body, h1, h2, h3, p, ul {
    margin: 0;
    padding: 0;
}

/* ==============================
   OGÓLNE
============================== */
body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f4f4;
    color: #222;
    line-height: 1.6;
}

/* ==============================
   BANER DOMOWY SPICHLERZ
============================== */
.banner-spichlerz {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
    background-color: #f8f4ec;
}

.banner-spichlerz img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: translate(-50%, -50%);
}

/* LOGO NA BANERZE – LEWA STRONA */
.banner-logo {
    position: absolute;
    top: 48%;
    left: 6%;
    transform: translateY(-50%);
    z-index: 5;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    padding: 20px;
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.25);
}

.banner-logo img {
    height: 260px;
    width: auto;
}

/* ==============================
   MENU
============================== */
.main-nav-spichlerz {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #a67c52;
    border-top: 2px solid #8b633a;
    border-bottom: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    border-radius: 0 0 8px 8px;
    position: relative;
    z-index: 10;
}

.main-nav-spichlerz > ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}


.main-nav-spichlerz li {
    margin: 0;
}

.main-nav-spichlerz a {
    display: inline-block;
    padding: 14px 22px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 17px;
    transition: background 0.3s;
}

.main-nav-spichlerz a:hover {
    background-color: #8b633a;
}

/* USUNIĘCIE SZPARY POD MENU */
header,
.banner-spichlerz {
    margin-bottom: 0;
    padding-bottom: 0;
}

.main-container {
    margin-top: 0;
}

/* ==============================
   GŁÓWNA ZAWARTOŚĆ
============================== */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
}

/* === POPRAWIONY UKŁAD TRZECH KOLUMN === */
.layout {
    display: grid;
    grid-template-columns: 260px 1fr 260px; /* lewa – środek – prawa */
    gap: 20px;
    max-width: 1200px;
    margin: 20px auto; /* środek strony */
    padding: 0 10px;
    box-sizing: border-box;
}

/* Lewa kolumna */
.left-column {
    background-color: #f2e4cf;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #d2b48c;
}

/* Środkowa kolumna */
.center-column {
    background-color: #fff9f0;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Prawa kolumna */
.right-column {
    background-color: #f2e4cf;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #d2b48c;
}

/* ===============================
   BOCZNA KOLUMNA (SIDEBAR)
=============================== */
.sidebar {
  background: linear-gradient(180deg, #f8f4ec 0%, #f4efe5 100%);
  border: 1px solid #e4dac5;
  border-radius: 14px;
  padding: 18px 16px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
}

/* ===============================
   NAGŁÓWKI SEKCJI
=============================== */
.sidebar-box h3,
.sidebar-title {
  font-family: "Merriweather", serif;
  font-size: 17px;
  font-weight: 700;
  color: #5a402a;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: none; /* ✅ usuwa ewentualne wymuszone uppercase */
}

/* 🧩 Ikona przed tytułem */
.sidebar-box h3::before {
  content: "🍞"; /* ✅ możesz zmienić np. na 📦 lub 💡 w zależności od sekcji */
  font-size: 17px;
  opacity: 0.8;
  flex-shrink: 0;
}

/* ===============================
   LISTA ARTYKUŁÓW POPULARNYCH
=============================== */
.sidebar-list.popular-list {
  background: #fff;
  border-radius: 10px;
  padding: 8px 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  margin: 0; /* ✅ dodane – zapobiega nadmiarowym odstępom */
}

.sidebar-list.popular-list li {
  border-bottom: 1px dashed #eee;
  padding: 8px 14px;
  list-style: none; /* ✅ usuwa kropki listy */
}

.sidebar-list.popular-list li:last-child {
  border-bottom: none;
}

/* ===============================
   LINKI DO ARTYKUŁÓW
=============================== */
.sidebar-list.popular-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: #3a332a;
  font-size: 15px;
  line-height: 1.4;
  transition: all 0.25s ease;
  border-radius: 6px;
  padding: 4px 6px; /* ✅ lepsze wyrównanie klikowalnego obszaru */
}

.sidebar-list.popular-list a:hover {
  background: #faf5ee;
  color: #a78b5a;
  transform: translateX(3px);
}

/* ✅ Ikonka strzałki */
.sidebar-list.popular-list .arrow {
  font-size: 16px;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.sidebar-list.popular-list a:hover .arrow {
  opacity: 1;
}

/* ===============================
   DODATKOWE POPRAWKI
=============================== */

/* 🧾 Spójne odstępy między sekcjami */
.sidebar-box {
  margin-bottom: 22px;
  border-left: 4px solid #a78b5a; /* złoty pasek po lewej */
  background: #fffaf3;
  border-radius: 10px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
  padding: 14px 16px;
  transition: box-shadow 0.2s ease;
}

.sidebar-box:hover {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

/* 🧠 Responsywność – lepszy wygląd na telefonach */
@media (max-width: 768px) {
  .sidebar {
    padding: 12px;
    border-radius: 10px;
  }

  .sidebar-box h3 {
    font-size: 16px;
  }

  .sidebar-list.popular-list a {
    font-size: 14px;
  }
}

/* Cytat dnia */
.quote-box {
  background: #fffaf3;
  border-left: 4px solid #a78b5a;
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.08);
  position: relative;
  margin-top: 14px;
}
.quote-box::before {
  position: absolute;
  top: -8px;
  left: 10px;
  font-size: 40px;
  color: rgba(167,139,90,0.2);
}
.quote-box h3 {
  margin: 0 0 6px;
  font-size: 15px;
  color: #6a563c;
}
.quote-box blockquote {
  font-style: italic;
  color: #3f3b37;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

/* Marginesy pomiędzy sekcjami */
.sidebar-box {
  margin-bottom: 22px;
}



/* ===============================
   Losowy przepis
=============================== */

.random-article {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #333;
  text-align: center;
}

.random-article img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  border-bottom: 1px solid #eee;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}


.random-article:hover img {
  transform: scale(1.03);
}

.random-article span {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
}

.random-article img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
  border-radius: 10px 10px 0 0;
}
.random-article p {
  margin: 0;
  padding: 10px;
  font-weight: 600;
  color: #3a332a;
}

/* ===============================
   NAJPOPULARNIEJSZE ARTYKUŁY – MINIATURKI
=============================== */
.popular-mini {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mini-article {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  background: #fff;
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  border: 1px solid #eee;
  transition: all 0.25s ease;
}

.mini-article:hover {
  background: #faf5ee;
  transform: translateX(3px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

.mini-article img {
  width: 55px;
  height: 55px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.mini-title {
  font-size: 15px;
  color: #2f2a25;
  font-weight: 600;
  line-height: 1.3;
}

.mini-article:hover .mini-title {
  color: #a78b5a; /* złoty akcent */
}

/* ===============================
   LEWA KOLUMNA – Sidebar Left
=============================== */
.sidebar.left {
  background: linear-gradient(180deg, #f9f6ee 0%, #f3efe5 100%);
  border: 1px solid #e4dac5;
  border-radius: 14px;
  padding: 18px 16px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.06);
}

/* Tytuły sekcji (takie same jak po prawej) */
.sidebar.left .sidebar-title {
  font-family: "Merriweather", serif;
  font-size: 17px;
  font-weight: 700;
  color: #3b352c;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Boczne boxy – spójne z prawą stroną */
.sidebar.left .sidebar-box {
  background: #fffaf3;
  border-left: 4px solid #a78b5a;
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.08);
  margin-bottom: 22px;
  transition: box-shadow 0.2s ease;
}

.sidebar.left .sidebar-box:hover {
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

.calendar-articles {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calendar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #3a332a;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  padding: 6px;
  transition: transform 0.2s ease;
}

.calendar-item:hover {
  transform: translateX(4px);
  color: #a78b5a;
}

.calendar-item img {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
}

.calendar-item span {
  font-weight: 600;
  font-size: 14px;
}

.calendar-info {
  font-size: 15px;
  font-weight: 600;
  color: #6a563c;
  margin-bottom: 8px;
}


/* ===============================
   Paginacja w chmurze tagów
=============================== */
.tag-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;        /* 🧩 Większy odstęp od tagów */
  padding-top: 8px;
  border-top: 1px dashed #e4dac5;  /* delikatny separator */
}

.tag-pagination a {
  background: #fff;
  border: 1px solid #e4dac5;
  color: #5a402a;
  font-size: 13px;
  padding: 4px 9px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.25s ease;
  min-width: 26px;
  text-align: center;
}

.tag-pagination a:hover {
  background: #a78b5a;
  color: #fff;
}

.tag-pagination a.active {
  background: #a78b5a;
  color: #fff;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}



/* Newsletter */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.newsletter-form input[type="email"] {
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
}
.newsletter-form button {
  border: none;
  background: #a78b5a;
  color: #fff;
  font-weight: 600;
  padding: 8px 0;
  border-radius: 8px;
  cursor: pointer;
}
.newsletter-form button:hover {
  background: #8d744e;
}


/* ===============================
   Formularz wyszukiwania
=============================== */
.search-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-form input[type="text"] {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 15px;
}

.search-form input[type="text"]:focus {
  border-color: #a78b5a;
  outline: none;
  box-shadow: 0 0 0 3px rgba(167,139,90,0.2);
}

.search-form button {
  border: none;
  background: #2e7d32;
  color: #fff;
  font-weight: 600;
  padding: 8px 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-form button:hover {
  background: #256628;
}

/* ===============================
   Listy (kategorie, archiwum)
=============================== */
.sidebar.left .sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar.left .sidebar-list li {
  padding: 6px 0;
}

.sidebar.left .sidebar-list li a {
  text-decoration: none;
  color: #2f2a25;
  transition: color 0.2s ease;
}

.sidebar.left .sidebar-list li a:hover {
  color: #a78b5a;
}



/* ==============================
   STOPKA
============================== */
footer {
    background-color: #a67c52;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    border-top: 3px solid #8b633a;
    max-width: 1200px;
    margin: 40px auto 20px auto;
    border-radius: 8px;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.15);
}

/* ==============================
   COOKIE POPUP
============================== */
.cookie-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  z-index: 9998;
}

.cookie-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #fffdf8;
  border: 3px solid #c2a165;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  max-width: 500px;
  width: 90%;
  padding: 25px 30px;
  text-align: center;
  display: none;
  z-index: 9999;
  font-family: "Poppins", sans-serif;
}

.cookie-content label {
  display: block;
  text-align: left;
  margin: 6px 0;
}

.cookie-buttons {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-buttons button {
  padding: 8px 16px;
  border: none;
  border-radius: 5px;
  background-color: #c2a165;
  color: #fff;
  cursor: pointer;
}

.cookie-buttons .reject { background-color: #b84c4c; }
.cookie-buttons .manage { background-color: #6c757d; }
.cookie-buttons button:hover { opacity: 0.9; }

/* ===============================
   STRONA TAGÓW
=============================== */

.tag-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 15px;
}

.tag-article-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tag-article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.tag-article-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.tag-article-card h2 {
  font-size: 16px;
  color: #3a332a;
  padding: 10px;
  line-height: 1.4;
}

/* ==============================
   ARTYKUŁY I PAGINACJA
============================== */
.articles-container {
    padding: 10px;
}

.article-card {
    display: flex;
    background: #fff;
    border-radius: 6px;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid #d2b48c;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.article-card img.thumbnail {
    width: 180px;
    height: 120px;
    object-fit: cover;
    border-right: 1px solid #d2b48c;
}

.article-content {
    padding: 10px 15px;
    flex: 1;
}

.article-content h2 {
    margin-top: 0;
    color: #8b633a;
}

.article-content .meta {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 6px;
}

.read-more {
    color: #004466;
    font-weight: bold;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination .page-link {
    display: inline-block;
    margin: 0 4px;
    padding: 6px 10px;
    background: #a67c52;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
}

.pagination .page-link.active {
    background: #8b633a;
}

.main-nav-spichlerz a.active {
  font-weight: bold;
  color: #ffcc33;
  text-decoration: underline;
}

/* === Styl listy artykułów w kategoriach === */
/* === MENU KATEGORII PO KLIKNIĘCIU === */
.dropdown {
  position: relative;
}

.dropbtn {
  background: none;
  border: none;
  color: #fff;
  font-weight: bold;
  font-size: 17px;
  padding: 14px 22px;
  cursor: pointer;
  font-family: inherit; /* 🔹 zachowuje ten sam font co reszta menu */
  line-height: 1;
  transition: background 0.3s;
}

.dropbtn:hover {
  background-color: #8b633a;
  color: #ffcc33;
  text-decoration: underline;
}

.dropbtn:focus {
  outline: none;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 2px); /* lekki odstęp od paska */
  left: 50%;
  transform: translateX(-50%); /* 🔹 wyrównuje dropdown do środka przycisku */
  background-color: #fff;
  min-width: 220px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
  z-index: 9999;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #ccc;
}


.dropdown-content li {
  border-bottom: 1px solid #eee;
}

.dropdown-content li:last-child {
  border-bottom: none;
}

.dropdown-content li a {
  color: #333;
  padding: 10px 15px;
  display: block;
  text-decoration: none;
  background: #fff;
  transition: background 0.2s;
}

.dropdown-content li a:hover {
  background: #f2f2f2;
}

/* 🔹 pokazujemy tylko po kliknięciu w JS */
.dropdown-content.show {
  display: block;
}

/* ==============================
   WYGLĄD ARTYKUŁÓW W KATEGORIACH
============================== */
/* ==============================
   WYGLĄD LISTY ARTYKUŁÓW
============================== */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Karta artykułu */
.article-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  border: 1px solid #d2b48c;
  border-radius: 6px;
  padding: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* --- Fix: wygląd miniatur w wynikach wyszukiwania --- */
.article-thumb {
  flex: 0 0 220px;         /* stała szerokość dla kolumny miniatury */
  overflow: hidden;        /* ukryj nadmiar obrazu */
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* ✅ Uniwersalne miniatury – działa zarówno na stronie głównej, jak i w wyszukiwarce */
/* --- Fix: miniatury w wynikach wyszukiwania i listach --- */
.article-item .article-thumb img,
.article-item img.thumb {
  width: 220px !important;
  height: 150px !important;
  object-fit: cover !important;
  border-radius: 6px;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  display: block;
}

/* Tekst obok miniatury */
.article-item .article-content {
  flex: 1;
}


/* Treść artykułu (obok miniatury) */
.article-item .article-content,
.article-info {
  flex: 1;
}

/* Tytuł artykułu */
.article-item h2 {
  margin: 0;
  font-size: 20px;
  color: #8b633a;
}

/* Krótki opis / fragment */
.article-item p {
  margin-top: 8px;
  color: #444;
  line-height: 1.5;
}

/* Link "Czytaj dalej" */
.article-item a.read-more-link,
.article-item a.read-more {
  display: inline-block;
  margin-top: 10px;
  color: #004466;
  text-decoration: none;
  font-weight: bold;
}

.article-item a.read-more-link:hover,
.article-item a.read-more:hover {
  text-decoration: underline;
}


/* ==============================
   STOPKA STRONY (poprawiony układ)
============================== */
.site-footer {
    background: #d2b48c; /* tło bez zmian */
    color: #2f1e0e;
    padding: 50px 30px 25px;
    font-size: 15px;
    line-height: 1.7;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.footer-container {
    display: flex !important;            /* wymuszamy flexbox */
    justify-content: space-between;      /* równy odstęp między kolumnami */
    flex-wrap: wrap;                     /* kolumny w dół na małych ekranach */
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.footer-column {
    flex: 1 1 220px;                     /* minimalna szerokość kolumny */
    min-width: 220px;
}

.footer-column h3,
.footer-column h4 {
    color: #3b2a1a;
    margin-bottom: 10px;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 6px;
}

.footer-column a {
    color: #3b2a1a;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease-in-out;
}

.footer-column a:hover {
    color: #000;
    border-bottom: 1px solid #3b2a1a;
}

.footer-bottom {
    margin-top: 35px;
    font-size: 14px;
    letter-spacing: 0.3px;
}

/* 📱 RWD – mniejsze ekrany */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
.article-meta-boxes {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-meta-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 15px;
}

.article-meta-box h4 {
  margin: 0 0 5px 0;
  color: #333;
  font-size: 16px;
}

.ingredients-filter {
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  margin-top: 20px;
}

.ingredients-filter h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #333;
}

.ingredients-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 15px;
}

.ingredient-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.ingredient-item:hover {
  background: #f3f3f3;
}

.ingredient-item input {
  pointer-events: none;
}

.ingredient-item a {
  color: #222;
  text-decoration: none;
  font-weight: 500;
}

.ingredient-item .count {
  color: #666;
  font-size: 13px;
}

.hidden {
  display: none !important;
}

.show-more-container {
  margin-top: 10px;
  text-align: center;
}

.show-more-container button {
  background: none;
  border: none;
  color: #0077cc;
  cursor: pointer;
  font-weight: bold;
}
.show-more-container button:hover {
  text-decoration: underline;
}

/* ===============================
   📜 Polityka prywatności
=============================== */
.privacy-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: #f8f4ec;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.7;
    color: #222;
}

.privacy-container h1 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
    color: #1f2937;
    border-bottom: 2px solid #d4b870;
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.privacy-container h2 {
    font-size: 1.3rem;
    color: #1f2937;
    margin-top: 35px;
    margin-bottom: 10px;
    border-bottom: 1px solid #d4b870;
    padding-bottom: 5px;
}

.privacy-container p {
    margin-bottom: 15px;
    text-align: justify;
}

.privacy-container ul {
    margin: 10px 0 20px 25px;
}

.privacy-container li {
    margin-bottom: 8px;
}

.privacy-container a {
    color: #8b5e34;
    text-decoration: none;
}
.privacy-container a:hover {
    text-decoration: underline;
}

.privacy-container .email {
    font-weight: bold;
    color: #1f2937;
}
/* ===============================
   🍪 Sekcja Polityka Cookies
   =============================== */
.cookie-policy-container {
  max-width: 800px;
  margin: 40px auto;
  font-family: Poppins, sans-serif;
  color: #222;
  line-height: 1.6;
}

.cookie-policy-container h1 {
  text-align: center;
  font-size: 26px;
  margin-bottom: 25px;
  color: #1f2937;
}

.cookie-info-box {
  margin-top: 40px;
  padding: 20px;
  background: #f9fafb;
  border: 1px solid #ddd;
  border-radius: 10px;
  text-align: center;
  font-size: 15px;
  color: #333;
}

.cookie-info-box strong {
  color: #1f2937;
}

.cookie-btn {
  margin-top: 10px;
  padding: 8px 14px;
  background: #1f2937;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.cookie-btn:hover {
  background: #374151;
}

.cookie-noinfo {
  text-align: center;
  color: #777;
  font-size: 14px;
  margin-top: 20px;
}

/* ===== KOMENTARZE — nowoczesny wygląd ===== */

#comments { margin-top: 28px; }

#comments h3 {
  font-size: 1.25rem;
  margin: 0 0 12px 0;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 8px;
}

#commentsTree { margin-top: 8px; }

/* Karta komentarza */
#comments .comment {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 14px;
  margin: 14px 0;
}

/* nagłówek: avatar + autor + meta */
#comments .cmt-header { display:flex; gap:12px; align-items:flex-start; }
#comments .cmt-avatar {
  width:40px;height:40px;border-radius:50%;
  background:#f1f3f5;color:#9aa0a6;
  display:flex;align-items:center;justify-content:center;
  font-weight:700;font-size:14px;flex:0 0 auto;
}
#comments .cmt-author { font-weight:700; color:#2b2f33; }
#comments .cmt-meta   { font-size:12px; color:#8a8f94; margin-top:2px; }

/* treść */
#comments .cmt-content {
  margin-top:8px; color:#2f3438; line-height:1.55; white-space:pre-wrap;
}

/* akcje (👍 i ↩ Odpowiedz) */
#comments .comment-actions { display:flex; gap:18px; align-items:center; margin-top:10px; }
#comments .btn-like,
#comments .btn-reply-toggle{
  background:transparent; border:none; padding:0; cursor:pointer;
  color:#6b7280; font-weight:600; display:inline-flex; align-items:center; gap:6px;
}
#comments .btn-like:hover,
#comments .btn-reply-toggle:hover { color:#374151; }
#comments .btn-like .like-count{ font-weight:700; }
#comments .btn-like.liked{ color:#2563eb; }

/* odpowiedzi – wcięcie */
#comments .comment-children{
  margin-left:48px; border-left:2px solid #efefef; padding-left:16px; margin-top:10px;
}

/* mini formularz odpowiedzi */
#comments .reply-form{ margin-top:10px; display:none; }
#comments .reply-form input[type="text"],
#comments .reply-form textarea{
  width:100%; border:1px solid #e5e7eb; border-radius:10px; padding:8px 10px; font:inherit;
}
#comments .reply-form textarea{ resize:vertical; }
#comments .reply-form button{
  margin-top:8px; border:1px solid #e5e7eb; border-radius:9999px; background:#fff; padding:8px 14px; cursor:pointer; font-weight:700;
}
#comments .reply-form button:hover{ background:#f9fafb; }

/* główny formularz */
#comments .comment-form input[type="text"],
#comments .comment-form textarea{
  width:100%; border:1px solid #e5e7eb; border-radius:10px; padding:10px 12px; font:inherit;
}
#comments .comment-form textarea{ resize:vertical; }
#comments .comment-form button {
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  background: #fff;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 700;
  color: #2b2f33;           /* 🧩 DODANO – ciemny kolor tekstu */
}
#comments .comment-form button:hover {
  background: #f9fafb;
  color: #111;              /* lekko ciemniejszy przy hoverze */
}

#comments .comment-form .hint{ font-size:12px; color:#8a8f94; margin:0; }

/* dostępność */
#comments button:focus-visible, #comments input:focus-visible, #comments textarea:focus-visible{
  outline:2px solid #93c5fd; outline-offset:2px;
}

/* --- Komentarze: formularz --- */
#comments .comment-form {
  display: grid;
  gap: 10px;
  max-width: 700px;
}
#comments .comment-form label {
  display: block;
  font-weight: 600;
  margin: 6px 0 4px;
}
#comments .comment-form input[type="text"],
#comments .comment-form textarea,
#comments .comment-form button {
  width: 100%;
  box-sizing: border-box;   /* ⬅️ nie wyjdzie poza kontener */
  display: block;
}
#comments .comment-form textarea { min-height: 160px; }
#comments .comment-form .row { margin: 0; }     /* na wszelki wypadek */

.flash-popup {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translate(-50%, 40px); /* środek + lekki offset */
  background: #e8f5e9;
  color: #166534;
  padding: 15px 25px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
  font-size: 16px;
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 9999;
  text-align: center;
  max-width: 90%;
}
.flash-popup.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.article-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 15px auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* ==============================
   Styl formularza kontaktowego
============================== */

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f7f5ef;
  margin: 0;
  padding: 0;
}

.contact-box {
  max-width: 600px;
  background: #fff;
  margin: 60px auto;
  padding: 25px 35px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.contact-box h1 {
  text-align: center;
  color: #3b3b3b;
  margin-bottom: 20px;
}

label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
  color: #333;
}

input[type=text],
input[type=email],
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  box-sizing: border-box;
  background: #fff;
  transition: border-color 0.2s ease;
}

input[type=text]:focus,
input[type=email]:focus,
textarea:focus {
  border-color: #007a48;
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

button {
  display: block;
  width: 100%;
  background: #007a48;
  color: #fff;
  border: none;
  padding: 12px 0;
  font-size: 16px;
  border-radius: 6px;
  margin-top: 15px;
  cursor: pointer;
  transition: background 0.2s ease;
}

button:hover {
  background: #00945b;
}

.success-msg {
  color: #007a48;
  font-weight: bold;
  text-align: center;
  margin-top: 10px;
}

.error-msg {
  color: #b30000;
  font-weight: bold;
  text-align: center;
  margin-top: 10px;
}

.hidden-field {
  display: none;
}

/* ===============================
   📜 Klauzula RODO pod formularzem kontaktowym
   =============================== */
.rodo-info {
  font-size: 12px;                /* 🔹 mniejsza czcionka */
  color: #555;                    /* 🔹 delikatniejszy kolor */
  background: #fafafa;            /* 🔹 subtelne, jasne tło */
  border: 1px solid #e0e0e0;      /* 🔹 lekka ramka */
  border-radius: 6px;
  padding: 10px 12px;
  margin-top: 15px;
  line-height: 1.45;
}

.rodo-info strong {
  color: #333;
  font-weight: 600;
}

.rodo-info a {
  color: #1f2937;
  text-decoration: underline;
}

.rodo-info a:hover {
  text-decoration: none;
  color: #000;
}

/* 🔹 Styl dla checkboxa z akceptacją RODO */
.checkbox-rodo {
  display: block;
  font-size: 12px;
  color: #555;
  margin-top: 10px;
  user-select: none;
}

.checkbox-rodo input[type="checkbox"] {
  transform: scale(1.1);
  margin-right: 6px;
  cursor: pointer;
}

.rodo-checkbox {
  margin: 15px 0;
  font-size: 14px;
  line-height: 1.5;
}

.rodo-checkbox input[type="checkbox"] {
  margin-right: 8px;
}

.rodo-checkbox a {
  color: #007a48;
  text-decoration: underline;
}

.rodo-checkbox a:hover {
  color: #00945b;
}

/* === 📅 KALENDARZ DNIA === */
.calendar-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 15px;
  margin-top: 20px;
}

.calendar-box .sidebar-title {
  color: #1e3a8a;
  font-size: 16px;
  margin-bottom: 10px;
}

.calendar-box .calendar-item {
  font-size: 14px;
  margin: 6px 0;
  line-height: 1.4;
}

.calendar-box .calendar-item {
  display: block;              /* wymusza zawijanie tekstu */
  font-size: 14px;
  margin: 8px 0;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.calendar-box strong {
  display: block;
  color: #1f2937;
  margin-bottom: 2px;
}

.calendar-box .days-left {
  display: inline-block;
  margin-left: 5px;
  font-size: 13px;
  color: #64748b;
}



/* ==============================
   Responsywność
============================== */
@media (max-width: 768px) {
  .contact-box {
    margin: 30px 15px;
    padding: 20px;
  }
  button {
    font-size: 15px;
  }
}



/* ==============================
   RESPONSYWNOŚĆ
============================== */
@media (max-width: 992px) {
    .banner-spichlerz {
        height: 300px;
    }
    .banner-logo img {
        height: 180px;
    }
    .banner-logo {
        left: 6%;
    }
    .main-nav-spichlerz ul {
        flex-direction: column;
        align-items: center;
    }
    .main-nav-spichlerz a {
        display: block;
        text-align: center;
        width: 100%;
        padding: 12px;
    }
    .layout {
        grid-template-columns: 1fr; /* jedna kolumna na mniejszych ekranach */
    }
}

@media (max-width: 600px) {
    .banner-spichlerz {
        height: 200px;
    }
    .banner-logo img {
        height: 120px;
    }
    .banner-logo {
        left: 5%;
    }
}

/* mobile */
@media (max-width:640px){
  #comments .comment-children{ margin-left:24px; padding-left:12px; }
}
/* ===============================
   📱 Responsywność sidebaru (mobile)
=============================== */
@media (max-width: 768px) {

  /* Uproszczenie layoutu – elementy boczne pełna szerokość */
  .sidebar {
    padding: 12px;
    border-radius: 10px;
    box-shadow: none;
    background: #fff;
    border: none;
  }

  .sidebar-box {
    border-left: 3px solid #a78b5a;
    padding: 12px 14px;
    margin-bottom: 16px;
  }

  /* 🔹 Obrazki w popularnych i losowych przepisach */
  .mini-article img,
  .random-article img {
    width: 100%;
    max-width: 120px;   /* ✅ ogranicza szerokość */
    height: auto;
    border-radius: 8px;
  }

  /* 🔹 Ustawienie mini-artykułów poziomo */
  .popular-mini {
    gap: 10px;
  }
  .mini-article {
    flex-direction: row;
    align-items: center;
  }
  .mini-article span {
    font-size: 14px;
  }

  /* 🔹 Losowy przepis – zdjęcie mniejsze, treść bliżej */
  .random-article {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 10px;
  }
  .random-article img {
    width: 100px;
    height: 100px;
    margin-bottom: 0;
  }
  .random-article p,
  .random-article span {
    font-size: 14px;
    line-height: 1.4;
  }

  /* Cytat dnia – zmniejszony padding */
  .quote-box {
    padding: 10px 12px;
  }
  .quote-box blockquote {
    font-size: 13px;
  }
}


/* ===============================
   🧩 OSTATECZNA NAPRAWA MINIATUR
   =============================== */

.article-item.card,
.article-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 20px !important;
  background: #fff !important;
  border: 1px solid #d2b48c !important;
  border-radius: 6px !important;
  padding: 12px !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08) !important;
  margin-bottom: 15px !important;
}

.article-item .article-thumb,
.article-item.card .article-thumb {
  flex: 0 0 220px !important;
  overflow: hidden !important;
  border-radius: 6px !important;
}

.article-item .article-thumb img,
.article-item.card .article-thumb img {
  width: 220px !important;
  height: 150px !important;
  object-fit: cover !important;
  border-radius: 6px !important;
  display: block !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15) !important;
}

.article-item .article-info,
.article-item.card .article-info {
  flex: 1 !important;
}

