/* ===============================
   RESET A ZÁKLAD
=============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  /* fallback pro starší prohlížeče */
  background-color: #1a0000;
  background: linear-gradient(to bottom, #1a0000 0%, #0b0b0b 60%, #000000 100%);
}

body {
  min-height: 100vh; /* celé viewport */
  background-color: #111111; /* světlé pozadí */
  color: #eee;
  font-family: "Noto Serif", serif;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  line-height: 1.6;
}

nav,
.navbar,
.nav-links a {
  font-family: "Cinzel", serif;
}

h1,
h2 {
  font-family: "Cinzel", serif;
  color: #ffd700;
}

h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
  color: #f0f0f0;
}

h1 {
  font-size: clamp(1.6rem, 2.8vw, 2.5rem);
}
h2 {
  font-size: clamp(1.5rem, 2.2vw, 2.3rem);
}
h3 {
  font-size: clamp(1.2rem, 1.6vw, 1.5rem);
}

.product-card h3,
.product-card p,
.product-card a {
  font-family: "Poppins", sans-serif;
}

/* Linky */
a {
  color: #ffd700;
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: #ffe66a;
}

/* ===============================
   HLAVIČKA
===============================*/
.header {
  position: relative;
  top: 10px;
  z-index: 1000; /* hlavička zůstává nahoře */
  /*background: linear-gradient(to right, #000000, #1c1c1c);*/
  background: url("/images/pix11.webp") no-repeat center / cover;
  height: clamp(280px, 45vh, 520px);
  color: white;
  padding: 10px 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

@media (min-width: 769px) {
  .header {
    height: clamp(380px, 45vh, 520px);
    top: 0px;
  }
}

@media (min-width: 1200px) {
  .header {
    height: clamp(420px, 40vh, 560px);
    top: 0px;
  }
}

.container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 10px;
}

.logo img {
  height: 120px;
  width: auto;
}

.title {
  flex: 1;
  text-align: center;
  min-width: 250px;
}

.uvodni-nadpis {
  display: inline-block;
  font-weight: 700;
  font-family: "Cinzel", "Noto Serif SC", serif;
  letter-spacing: 0.08em;
  line-height: 0.9;
  margin-bottom: 6px;
  font-size: clamp(3rem, 8vw, 4.5rem);

  background: linear-gradient(180deg, #ffea8a 0%, #ffd700 40%, #e6c200 80%);

  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.9),
    0 6px 10px rgba(0, 0, 0, 0.6),
    0 0 8px rgba(255, 215, 0, 0.9),
    0 0 14px rgba(255, 200, 0, 0.8),
    0 0 22px rgba(255, 180, 0, 0.6),
    0 15px 30px rgba(0, 0, 0, 0.6);

  animation: gold-flicker 2.4s infinite linear;
  position: relative;
}

@keyframes gold-flicker {
  0% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.2);
  }
  100% {
    filter: brightness(1);
  }
}

.sekce-nadpis {
  text-align: center;
  margin: 40px 0 20px;
  font-size: 1.6rem;
  padding: 5px;
}

/* ===============================
   NAVIGACE
===============================*/
.navbar {
  /*background-color: #1a73e8;*/
  background: linear-gradient(to bottom, #153f19, #2e7d32);

  padding: 10px 15px;
  box-shadow: inset 0 2px 6px rgba(255, 0, 0, 0.2);

  /*font-family: "Cinzel", "Noto Serif SC", serif;*/
  height: 50px;
  display: flex;
  align-items: center;
}

.nav-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: relative;
}

/* základní rozložení odkazů (desktop) */
.nav-links {
  list-style: none;
  display: flex;
  gap: 80px;
}

.nav-links li a {
  color: #ffea8a;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  /* všechny přechody v jedné deklaraci */
  transition:
    transform 0.3s ease,
    color 0.3s ease;
  /*: inline-block;*/
}

.nav-links li a:hover {
  color: #ffd700;
  transform: translateY(-5px) scale(1.05);
}

.nav-logo img {
  display: block;
  /*  max-height: 45px;*/
}

.nav-logo {
  text-decoration: none;
}

.nav-logo img {
  height: 160px;
  margin-top: 10px;
}

/* HOME BUTTON STYLING-chopsticks */
.btn-chopsticks {
  background: #222; /* tmavé pozadí */
  border: 2px solid #ffd700; /* zlatý rámeček */
  border-radius: 50%; /* kulaté tlačítko */
  padding: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  font-size: larger;
}

.btn-chopsticks:hover {
  transform: scale(1.2);
  box-shadow:
    0 0 15px #ffd700,
    0 0 25px #ffea00;
}

.btn-chopsticks svg {
  color: #ffd700;
}

.proteiny-popis svg {
  color: #ffd700;
}

/* hamburger (desktop hidden) */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
}
.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: #ffea8a;
  border-radius: 3px;
  transition: all 0.3s ease;
}
.hamburger.toggle span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.toggle span:nth-child(2) {
  opacity: 0;
}
.hamburger.toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===============================
   MOBILNÍ VERZE (<=768px)
   - zde upraveno z-index, aby se nav po rozkliknutí překrývala nad obsahem
===============================*/
@media (max-width: 999px) {
  .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
  }
  .logo img {
    height: 60px;
  }

  .nav-logo img {
    height: 120px;
    margin-top: 10px;
  }
  .title {
    margin-top: -10px;
  }
  .uvodni-nadpis {
    font-size: clamp(1.8rem, 6vw, 3rem);
    margin-top: 20px;
  }
  .subtitle {
    font-size: 1.1rem;
  }
  .contact {
    text-align: center;
    font-size: 0.9rem;
    margin-top: 5px;
  }
  .contact div {
    margin-bottom: 3px;
  }

  /* NAV - mobilní rozbalovací menu */
  .nav-links {
    position: absolute;
    top: 55px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: #222;
    align-items: center;
    display: none; /* skryté dokud nejsou aktivní */
    gap: 15px;
    padding: 15px 0;
    z-index: 1100; /* důležité: nav je nad obsahem */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  }

  /* když je otevřené */
  .nav-links.active {
    display: flex;

    z-index: 1100;
  }

  /* hamburger nad menu */
  .hamburger {
    display: flex;
    z-index: 1200; /* aby bylo klikatelné a viditelné */
  }
}

/* ===============================
   SCROLL TO TOP BUTTON
===============================*/

#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #ffd700;

  border: none;

  padding: 12px 12px;
  border-radius: 50%;
  font-size: 24px;

  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 999;
}
#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
}
#scrollTopBtn:hover {
  background-color: #ffe66a;
}

@media (max-width: 768px) {
  #scrollTopBtn {
    bottom: 100px;
  }
}

/* ===============================
   IMAGE LINKS – sjednocená verze
===============================*/

.image-links,
.image-links-main {
  display: grid;
  gap: 15px;
  /*width: 100%;*/
  max-width: 1200px;
  margin: 40px auto;
  text-align: center;
  padding: 0 10px; /* mezera od okraje */
  font-weight: bold;
}

.image-links span,
.image-links-main span {
  font-family: "Cinzel", "Noto Serif SC", serif; /* nebo jaký chceš */
}

/* Počet sloupců */
.image-links-main {
  grid-template-columns: repeat(4, 1fr); /* hlavní galerie */
}

.image-links {
  grid-template-columns: repeat(4, 1fr); /* ostatní sekce */
}

/* Obrázky */
.image-links img,
.image-links-main img {
  width: 100%;
  height: auto;
  object-fit: contain; /* žádné ořezávání */
  border-radius: 10px;
  display: block;
  /*background-color: #000; /* pro jednotný vzhled */
}

.image-links-main a {
  text-decoration: none;
}

.image-links a,
.image-links-main a {
  display: grid;
  grid-template-rows: 1fr auto;
  color: #ffea8a;
}

.image-links span,
.image-links-main span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  overflow-wrap: anywhere;
  line-height: 1.2;
  min-height: 3.6em;
  margin-top: 5px;
}

.image-links-main small {
  display: block;
  font-size: 0.7rem;
  opacity: 0.8;
  color: #333;
}

.bento-title small {
  display: block;
  font-size: 0.7rem;
  opacity: 0.8;
  color: #333;
}

/* Hover efekt */
.image-links a:hover img,
.image-links-main a:hover img {
  transform: scale(1.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 4px 15px #ffea8a;
}

.image-links a:hover span,
.image-links-main a:hover span {
  color: #ffea8a;
  text-shadow: 0 0 8px #ffd700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ===============================
   RESPONSIVITA
===============================*/

/* Tablety */
@media (max-width: 1024px) {
  .image-links,
  .image-links-main {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .image-links span,
  .image-links-main span {
    font-size: 1rem;
    margin-top: 2px;
  }
}

/* Mobily */
@media (max-width: 768px) {
  .image-links,
  .image-links-main {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .image-links span,
  .image-links-main span {
    font-size: 1rem;
    margin-top: 1px;
  }
}

/* iPhone 4 a malé displeje */
@media (max-width: 480px) {
  .image-links,
  .image-links-main {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .image-links span,
  .image-links-main span {
    font-size: 0.95rem;
    margin-top: 1px;
  }
}

.image-links a.visible {
  animation: fadeUp 0.9s ease-out forwards;
}

.image-links a.visible:nth-child(1) {
  animation-delay: 0.1s;
}
.image-links a.visible:nth-child(2) {
  animation-delay: 0.25s;
}
.image-links a.visible:nth-child(3) {
  animation-delay: 0.4s;
}
.image-links a.visible:nth-child(4) {
  animation-delay: 0.55s;
}

.proteiny-popis {
  max-width: 1000px;
  margin: 15px auto 30px;
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
  color: #eee;
  padding: 5px;
}

/* ===============================
   Stránky s produkty z XML feedu
===============================*/
.product-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding: 10px;
}

.product-card {
  background-color: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.product-card img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  margin-bottom: 12px;
}

.product-card h3 {
  font-size: 1rem;
  font-weight: 600;
  /*margin: 6px 0 4px;*/
  color: #111;
  min-height: 40px; /* aby karty byly stejné výšky */
  line-height: 1.15;
}

.product-card p {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  margin: 3px 0 5px;
  line-height: 1.2;
}

.product-card a {
  display: inline-block;
  padding: 10px 16px;
  background: linear-gradient(135deg, #ff6600, #ff9933);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.product-card a:hover {
  background: linear-gradient(135deg, #ff9933, #ff6600);
  transform: translateY(-2px);
}

.product-card .weight {
  white-space: nowrap; /* zajistí, že číslo a Kč zůstanou pohromadě */
  font-weight: 600;
  color: #333;
  margin: 5px 0 10px;
  overflow-wrap: normal; /* zakáže zalomení textu */
}

.product-card .flavor {
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Responsivita */
@media (max-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 5px;
  }

  .product-card {
    padding: 5px;
  }

  .product-card img {
    max-height: 140px;
    object-fit: contain;
  }

  .product-card h3 {
    font-size: 0.9rem;
  }

  .product-card p {
    font-size: 0.85rem;
  }
}

.intro {
  max-width: 900px;
  margin: 30px auto;
  padding: 0 15px;
  text-align: center;
}

.intro p {
  color: #ddd;
  font-size: 1.05rem;
  text-align: center;
}

/* ======================================================
   Právní stránky (about, kontakt atd.)
====================================================== */

.link-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px; /* desktop */
  padding: 20px 15px;
  max-width: 900px;
  margin: 20px auto;
}

.link-section a {
  position: relative;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;

  background: linear-gradient(90deg, #2e7d32, #388e3c);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;

  transition: all 0.3s ease;
  flex: 1 1 150px;
  text-align: center;
}

.link-section a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -3px;
  left: 0;
  background: linear-gradient(90deg, #2e7d32, #388e3c);
  transition: width 0.3s ease;
}

.link-section a:hover::after {
  width: 100%;
}

.link-section a:hover {
  transform: translateY(-2px);
}

/* Mobilní zařízení */
@media (max-width: 600px) {
  .link-section {
    flex-direction: column;
    padding: 15px 10px;
    gap: 8px; /* menší mezery mezi odkazy */
  }

  .link-section a {
    width: 100%;
    flex: none; /* odkazy zabírají jen tolik místa, kolik potřebují */
  }
}

/* ======================================================
   Footer(patička)
====================================================== */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  /*background: #2e7d32;*/
  background: linear-gradient(
    to bottom,
    #153f19,
    /* tmavší začátek */ #2e7d32 /* původní barva */
  );
  color: #fff;
  padding: 15px 80px;
  border-radius: 10px 10px 0 0;
  font-size: 0.9rem;

  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
}

.site-footer a {
  color: #a5d6a7;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: #fff;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.footer-socials a:hover {
  transform: scale(1.1);
}

@media (max-width: 600px) {
  .site-footer {
    flex-direction: column;
    text-align: center;
    gap: 5px;
    padding: 15px 40px;
  }
  .footer-right {
    justify-content: center;
  }
}

/* === FADE-IN SCROLL ANIMACE === */

.fade-section {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===============================
   Interní odkazy- prolinkování
===============================*/

.interni-odkazy {
  text-align: center;
  font-size: 0.95rem;
  opacity: 0.85;
  margin: 40px auto 20px;
  /*font-family:"Noto Serif SC", serif ;*/
  padding: 10px;
}

.interni-odkazy a {
  color: #ffd700;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.interni-odkazy a:hover {
  color: #ffe66a;
}

/* ============================= */
/* STYL PRO BLOG ČLÁNEK V <main> */
/* ============================= */

.clanky {
  max-width: 1100px;
  margin: 5px auto;
  padding: 10px;
  background: #222;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Hlavní nadpis článku */
.clanky h1 {
  font-family: "Cinzel", serif;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  /* margin-bottom: 20px;*/
  color: #ffd700;
  line-height: 1.3;
  text-align: center;
  margin: 40px auto 20px auto;
}

/* Podnadpisy */
.clanky h2 {
  font-family: "Noto Serif", serif;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  margin-top: 30px;
  margin-bottom: 12px;
  color: #eee;
  border-left: 4px solid #ffd700;
  padding-left: 10px;
  border-radius: 5px;
}

/* Menší nadpis v affiliate boxech */
.clanky h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #eee;
}

/* Odstavce */
.clanky p {
  font-size: 1rem;
  line-height: 1.7;
  color: #eee;
  margin-bottom: 14px;
}

/* Seznamy */
.clanky ul {
  margin: 10px 0 20px 20px;
  color: #eee;
}

.clanky ul li {
  margin-bottom: 6px;
  line-height: 1.7;
}

/* ============================= */
/* TIP / NOTE BOX */
/* ============================= */

.note {
  background: #111;
  padding: 12px 15px;
  border-left: 5px solid #ffd700;
  margin: 20px 0;
  border-radius: 6px;
  color: #eee;
}

/* ============================= */
/* RESPONSIVITA */
/* ============================= */

@media (max-width: 768px) {
  .clanky {
    padding: 0 10px;
    margin: 0 auto;
  }

  .clanky h1 {
    font-size: 1.5rem;
  }

  .clanky h2 {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .clanky {
    /*padding: 12px;*/
    margin: 0 auto;
  }
}

/* ===============================
   Úvodní obrázek- blogové články
===============================*/
.article-hero {
  max-width: 800px; /* zúžení oproti celé stránce */
  margin: 0 auto 25px; /* centrování + mezera dole */
  text-align: center;
}

/* Obrázek nebude přes celou výšku obrazovky */
.article-hero img {
  width: 100%;
  height: auto; /* zachová přirozený poměr stran */
  max-height: 400px; /* KLÍČOVÉ – výrazně menší než hero */
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* Attribution pod obrázkem */
.article-hero figcaption {
  font-size: 0.8rem;
  color: #ffd700;
  margin-top: 6px;
  text-align: right;
}

/* Barva odkazu pod obrázkem (Freepik attribution) */
.article-hero figcaption a {
  color: #ffd700; /* vaše oranžová MuscleFood barva */
  text-decoration: none; /* bez podtržení */
  font-weight: 500;
}

/* Efekt při najetí myší */
.article-hero figcaption a:hover {
  text-decoration: underline;
  opacity: 0.85;
}

main p a {
  color: #ffd700;
}

main p a:hover {
  color: rgb(250, 250, 36);
}

/* Mobil */
@media (max-width: 768px) {
  .article-hero {
    max-width: 100%;
  }

  .article-hero img {
    max-height: 280px;
  }
}

.cta-links a {
  display: flex;
  justify-content: center;
  margin: 10px;
  text-decoration: none;
  color: #ffd700;
}

.cta-links a:hover {
  text-decoration: underline;
  color: rgb(250, 250, 36);
}

/* Wrapper sekce */
.doporuceny-produkt {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 1rem;
  border-left: 4px solid #ffd700;
  border-radius: 10px;
}

/* Klikatelná karta */
.doporuceny-produkt a {
  display: flex;
  align-items: center;
  gap: 1.5rem;

  padding: 1.5rem;
  background: #111;
  border-radius: 14px;

  text-decoration: none;
  color: inherit;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.doporuceny-produkt a:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

/* Obrázek */
.doporuceny-produkt img {
  width: 180px;
  flex-shrink: 0; /* zabrání zmenšování obrázku */
  border-radius: 12px;
  object-fit: contain;
}

/* Textová část */
.produkt-text {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.produkt-text strong {
  font-size: 1.2rem;
  line-height: 1.3;
}

.produkt-text p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #eee;
  margin: 0;
}

/* CTA */
.produkt-text .cta {
  margin-top: 0.4rem;
  width: fit-content;

  /*background: #e63946;*/
  background: linear-gradient(
    to bottom,
    #153f19,
    /* tmavší začátek */ #2e7d32 /* původní barva */
  );
  color: #fff;
  padding: 0.55rem 1.2rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;

  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.doporuceny-produkt a:hover .cta {
  background: rgb(30, 105, 30);
  transform: scale(1.05);
}

/* 📱 MOBIL */
@media (max-width: 768px) {
  .doporuceny-produkt a {
    flex-direction: column; /* POD SEBE */
    text-align: center;
    padding: 1rem;
    gap: 0.8rem;
  }

  .doporuceny-produkt img {
    width: 160px; /* větší obrázek na mobilu */
  }

  .produkt-text {
    align-items: center;
    gap: 0.4rem;
  }

  .produkt-text strong {
    font-size: 1rem;
  }

  .produkt-text p {
    font-size: 0.85rem;
    line-height: 1.7;
  }

  .produkt-text .cta {
    font-size: 0.8rem;
    padding: 0.45rem 1rem;
  }
}

/* ===============================
   Layout stránky s filtrem
===============================*/

.products-page {
  display: flex;
  gap: 30px;
  max-width: 1400px;
  margin: 20px auto;
  padding: 0 15px;
}

/* ===============================
   SIDEBAR – Desktop
===============================*/

.sidebar {
  width: 250px;
  flex-shrink: 0;
  align-self: flex-start;

  background: linear-gradient(to bottom, #153f19, #19461c);
  padding: 20px;
  border-radius: 10px;
  color: #eee;

  position: sticky;
  top: 20px;

  max-height: calc(100vh - 40px);
  overflow-y: auto;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);

  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sidebar::-webkit-scrollbar {
  width: 0;
}

.sidebar h2 {
  font-family: "Cinzel", serif;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar li {
  margin-bottom: 10px;
}

.sidebar a {
  position: relative;
  display: inline-block;
  color: #ffea8a;
  /*color: #eee;*/
  text-decoration: none;
  transition: color 0.3s ease;
}

.sidebar a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1.5px;
  background-color: #ffd700;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  box-shadow: 0 0 8px #ffd700;
}

@media (hover: hover) {
  .sidebar a:hover::after {
    transform: scaleX(1);
  }
}

.sidebar a:hover,
.sidebar a:active {
  color: #ffd700;
}

.sidebar a:active::after {
  transform: scaleX(1);
}

/* ===============================
   Pravá část – produkty
===============================*/

.products-content {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5px;
}

/* ===============================
   Tlačítka
===============================*/

.filter-toggle {
  display: none;
  margin: 10px auto;
  padding: 10px 16px;
  background: #ff6600;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.close-filter {
  display: none;
  position: absolute;
  top: 16px;
  right: 16px;

  background: transparent;
  border: none;
  font-size: 28px;
  color: #ffd700;
  cursor: pointer;
  transition: color 0.3s;
}

.close-filter i {
  pointer-events: none;
}

/* ===============================
   MOBIL (max 768px)
===============================*/

@media (max-width: 768px) {
  .products-page {
    flex-direction: column;
  }

  .filter-toggle {
    display: block;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -280px;

    width: 260px;
    height: 100vh;

    padding: 60px 20px 20px;

    border-radius: 0;
    z-index: 2000;

    transition: left 0.3s ease;

    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    max-height: none;
  }

  .sidebar.open {
    left: 0;
  }

  .close-filter {
    display: block;
  }
}

/* ===============================
   Animace ikon
===============================*/

.fa-spin {
  animation-duration: 0s;
}

/* ======================================================
 Zobrazení pokud není nalezen žádný produkt z xml feedu
====================================================== */

.no-products {
  margin: 40px 0;
  text-align: left;
}

.no-products-icon svg {
  width: 48px;
  height: 48px;
  fill: #ffd700;
  opacity: 0.9;
  margin-bottom: 15px;
}

.no-products p {
  color: #ccc;
  font-style: italic;
  margin-bottom: 20px;
}

/* Tlačítko */
.no-products-btn {
  display: inline-block;
  padding: 12px 20px;
  background: #ffd700;
  color: #000;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: 0.2s ease;
}

.no-products-btn:hover {
  background: #e6c200;
  transform: translateY(-2px);
  color: #111;
}

/* Mobil optimalizace */
@media (max-width: 768px) {
  .no-products {
    padding: 0 20px;
  }

  .no-products-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
}

/* ======================================================
   Cookie banner
====================================================== */
.cookie-banner {
  position: fixed;
  bottom: -100px;
  left: 0;
  width: 100%;
  background: #333;
  color: #fff;
  padding: 15px;
  text-align: center;
  font-family: Arial, sans-serif;
  font-size: 14px;
  z-index: 1000;
  transition:
    bottom 0.5s ease,
    opacity 0.5s ease;
  opacity: 0;
}
.cookie-banner.show {
  bottom: 0;
  opacity: 1;
}
.cookie-banner .cookie-link {
  color: #ff9800;
  text-decoration: underline;
  margin-left: 5px;
}
.cookie-banner .cookie-btn {
  margin-left: 10px;
  padding: 5px 12px;
  background: #ff9800;
  border: none;
  color: #fff;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.cookie-banner .cookie-btn:hover {
  background: #e68900;
}

.seo-content {
  max-height: 120px;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.seo-content.open {
  max-height: 2000px;
}

.seo-toggle {
  display: block; /* umožní centrování */
  text-align: center; /* text uvnitř na střed */
  margin: 0px auto 0; /* vycentrování */
  background: none;
  border: none;
  padding: 0;
  color: #ffe66a;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  transition: opacity 0.3s ease;
}

.seo-toggle:hover {
  opacity: 0.7;
}

.pozadi-zobrazit-vice {
  background: #111;
  text-align: center;
}

.seo-content {
  position: relative;
}

.seo-content::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: linear-gradient(to bottom, rgba(17, 17, 17, 0), #111);
  pointer-events: none;
}

.seo-content.open::after {
  display: none;
}

.seo-doplnek {
  background: #111;
  padding-bottom: 20px;
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.04);
}

/* odstranění default šipky */
details summary {
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

/* Dropdown tlačítko */
.dropdown-kategorie summary {
  background: #1a1a1a;
  color: #ffd700;
  padding: 12px;
  font-weight: 600;
  cursor: pointer;
  /* position: sticky;   /* ← přidáme sem */
  /* top: 0;             /* ← přidáme sem */
  border-radius: 10px;
  margin-bottom: 5px;
  z-index: 5;
  text-transform: capitalize;
}

/* šipka */
.dropdown-kategorie summary::after {
  content: "▾";
  position: absolute;
  right: 30px;
  transition: transform 0.3s ease;
  font-size: 1.2rem;
}

.dropdown-kategorie[open] summary::after {
  transform: rotate(180deg);
}

/* obsah dropdownu */
.dropdown-kategorie nav {
  background: #111;
  border-radius: 10px;
}

.dropdown-kategorie ul {
  list-style: none;
  padding: 10px;
}

.dropdown-kategorie a {
  display: block;
  padding: 8px 0;
  color: #ffd700;
  text-decoration: none;
}

.dropdown-kategorie a:hover {
  color: #ffe66a;
}

/* scroll */
.scrollable-list {
  max-height: 300px;
  overflow-y: auto;
}

/* skrytí scrollbaru */
.scrollable-list::-webkit-scrollbar {
  width: 0;
}
.scrollable-list {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* ======================================================
  Blog-blog.html
====================================================== */

.blog-grid {
  display: grid;
  max-width: 1200px;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin: 40px auto;
  text-align: center;
  padding: 0 10px;
}

.blog-card {
  text-decoration: none;
  color: white;
  text-align: center;
}

.blog-card h3 {
  font-size: clamp(0.9rem, 2.5vw, 1.2rem);
  margin-top: 12px;
  line-height: 1.3;
}

.blog-card img {
  width: 100%;
  border-radius: 10px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.blog h1 {
  font-family: "Cinzel", serif;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  /* margin-bottom: 20px;*/
  color: #ffd700;
  line-height: 1.3;
  text-align: center;
  margin: 40px auto 20px auto;
}

/* Tablet */
@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 5px;
  }

  .blog-card img {
    aspect-ratio: 1 / 1;
  }
}

/*ikonka hacker*/
.title-hacker {
  display: flex;
  align-items: center;
  justify-content: center; /* nebo left pokud chceš doleva */
  gap: 12px;
}

.hacker {
  width: clamp(40px, 6vw, 95px);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.icon-article {
  width: clamp(20px, 2vw, 28px);
  height: auto;
  vertical-align: middle;
  margin-right: 8px;
}

/* =====================================================
   04 - PRÁVNÍ STRÁNKY
   Izolované styly – pouze pro wrapper .pravni-stranky
===================================================== */

.pravni-stranky {
  background: linear-gradient(to bottom, #153f19, #2e7d32);
  padding: 20px;
  min-height: 100vh;
  color: #333;
  font-family: "Roboto", sans-serif;
}

/* obsah box */

.pravni-stranky main {
  max-width: 900px;
  margin: 40px auto;
  background: #ffffff;
  padding: 30px 40px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* nadpisy */

.pravni-stranky h1 {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  /*font-size: 2.2rem;*/
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  color: #2e7d32;
  margin-bottom: 20px;
  text-align: center;
}

.pravni-stranky h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  margin-top: 25px;
  margin-bottom: 10px;
  color: #388e3c;
}

/* text */

.pravni-stranky p {
  margin-bottom: 15px;
  font-size: 1rem;
  line-height: 1.6;
}

/* odkazy */

.pravni-stranky a {
  color: #4caf50;
  font-weight: 500;
}

.pravni-stranky a:hover {
  color: #2e7d32;
  transform: scale(1.03);
}

/* seznam */

.pravni-stranky ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

.pravni-stranky li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  transition: transform 0.2s ease;
}

.pravni-stranky li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #4caf50;
  font-weight: bold;
}

.pravni-stranky li:hover {
  transform: translateX(3px);
}

/* info box */

.pravni-stranky .info-box {
  background: #e6f4ea;
  border-left: 5px solid #4caf50;
  padding: 15px 20px;
  margin: 15px 0;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.pravni-stranky .info-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* update info */

.pravni-stranky .update-info {
  font-size: 0.85rem;
  color: #777;
  text-align: center;
  margin-top: 30px;
}

/* =====================================================
   05 - RESPONSIVE
===================================================== */

@media (max-width: 600px) {
  .pravni-stranky main {
    padding: 20px;
    margin: 20px 10px;
  }

  /*.pravni-stranky h1 {
    font-size: 1.8rem;
  }*/

  .pravni-stranky h2 {
    font-size: 1.3rem;
  }
}
