
/* === PURE CSS FILTERING SYSTEM === */
/* Skrýt všechny články když je vybrána kategorie */
#filter-design-news:checked ~ .blog-container .articles-grid .article-card:not([data-category="design-news"]):not(.sticky),
#filter-design-news:checked ~ .blog-content .articles-grid .article-card:not([data-category="design-news"]):not(.sticky) {
  display: none !important;
}

#filter-visions:checked ~ .blog-container .articles-grid .article-card:not([data-category="visions"]):not(.sticky),
#filter-visions:checked ~ .blog-content .articles-grid .article-card:not([data-category="visions"]):not(.sticky) {
  display: none !important;
}

#filter-grain-futurelab:checked ~ .blog-container .articles-grid .article-card:not([data-category="grain-futurelab"]):not(.sticky),
#filter-grain-futurelab:checked ~ .blog-content .articles-grid .article-card:not([data-category="grain-futurelab"]):not(.sticky) {
  display: none !important;
}

#filter-nomad-notes:checked ~ .blog-container .articles-grid .article-card:not([data-category="nomad-notes"]):not(.sticky),
#filter-nomad-notes:checked ~ .blog-content .articles-grid .article-card:not([data-category="nomad-notes"]):not(.sticky) {
  display: none !important;
}

#filter-worlds-we-build:checked ~ .blog-container .articles-grid .article-card:not([data-category="worlds-we-build"]):not(.sticky),
#filter-worlds-we-build:checked ~ .blog-content .articles-grid .article-card:not([data-category="worlds-we-build"]):not(.sticky) {
  display: none !important;
}

#filter-layers:checked ~ .blog-container .articles-grid .article-card:not([data-category="layers"]):not(.sticky),
#filter-layers:checked ~ .blog-content .articles-grid .article-card:not([data-category="layers"]):not(.sticky) {
  display: none !important;
}

/* Zvýraznit aktivní tlačítko - funguje pro label hned za radio buttonem */
#filter-all:checked ~ .blog-container .filters-section label[for="filter-all"],
#filter-design-news:checked ~ .blog-container .filters-section label[for="filter-design-news"],
#filter-visions:checked ~ .blog-container .filters-section label[for="filter-visions"],
#filter-grain-futurelab:checked ~ .blog-container .filters-section label[for="filter-grain-futurelab"],
#filter-nomad-notes:checked ~ .blog-container .filters-section label[for="filter-nomad-notes"],
#filter-worlds-we-build:checked ~ .blog-container .filters-section label[for="filter-worlds-we-build"],
#filter-layers:checked ~ .blog-container .filters-section label[for="filter-layers"] {
  background: #000;
  color: #fff;
}


/* Blog Styles */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@300;400;500&family=Source+Sans+Pro:wght@300;400;500&display=swap');

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

body {
  font-family: 'Source Sans Pro', sans-serif;
  background: #ffffff;
  color: #111;
  line-height: 1.6;
  font-weight: 300;
  overflow-x: hidden;
}

/* Navigace */
.blog-nav {
  background: #ffffff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.running-banner {
  position: relative;
  z-index: 1;
}

.motto-section {
  position: relative;
  z-index: 1;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: #333;
}

.nav-logo {
  height: 35px;
  width: auto;
}

.nav-title {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 1.2rem;
  color: #333;
}

.nav-right {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-right a {
  text-decoration: none;
  color: #333;
  font-weight: 400;
  font-size: 0.95rem;
  transition: opacity 0.3s ease;
}

.nav-right a:hover {
  opacity: 0.7;
}

.newsletter-placeholder {
  opacity: 0.5;
  pointer-events: none;
}

/* Language switcher styles */
.language-switcher {
  margin-left: 1rem;
  display: flex;
  align-items: center;
}

.language-switcher a {
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  padding: 0.3rem 0.5rem !important;
  border-radius: 0.3rem !important;
  transition: all 0.3s ease !important;
  text-decoration: none;
}

.lang-active {
  background: transparent !important;
  border: 1px solid #333 !important;
  color: #333 !important;
}

.lang-inactive {
  background: transparent !important;
  color: #666 !important;
}

.lang-inactive:hover {
  background: #f0f0f0 !important;
  color: #333 !important;
}

/* Běžící banner */
.running-banner {
  background: #111;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  padding: 0.8rem 0;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

.banner-content {
  display: inline-block;
  animation: scroll-left 30s linear infinite;
}

@keyframes scroll-left {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Motto sekce */
.motto-section {
  padding: 4rem 2rem;
  text-align: center;
  background: #ffffff;
}

.motto-text {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 300;
  color: #333;
  border-right: 2px solid #333;
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  animation: typewriter 3s steps(24) 1s forwards, blink 0.8s step-end 3s, hide-cursor 0s 4s forwards;
}

@keyframes typewriter {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink {
  from, to { border-color: transparent; }
  50% { border-color: #333; }
}

@keyframes hide-cursor {
  to { border-right-color: transparent; }
}

/* Hlavní obsah */
.blog-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.blog-container {
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  overflow: visible !important;
  display: block !important;
}

/* Vyhledávač */
.search-section {
  margin-bottom: 3rem;
}

.search-container {
  position: relative;
  max-width: 300px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: 0.7rem 1rem 0.7rem 2.5rem;
  border: 1px solid #ddd;
  border-radius: 50px;
  background: #ffffff;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  outline: none;
}

.search-input:focus {
  border-color: #333;
  box-shadow: 0 0 0 2px rgba(51, 51, 51, 0.1);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  pointer-events: none;
  font-size: 0.9rem;
}

/* Filtry */
.filters-section {
  margin-bottom: 3rem;
  position: relative;
  z-index: 9999 !important;
  isolation: isolate;
}

.filters-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
}

.filter-btn {
  padding: 0.8rem 1.5rem;
  border: 1px solid #333;
  border-radius: 50px;
  background: #ffffff;
  color: #333;
  font-size: 0.9rem;
  font-weight: 400;
  cursor: pointer !important;
  transition: all 0.3s ease;
  white-space: nowrap;
  min-height: 48px;
  min-width: 48px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0,0,0,0.1);
  user-select: none;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-touch-callout: none;
  pointer-events: auto !important;
  position: relative;
  z-index: 9999 !important;
  isolation: isolate;
}

.filter-btn:hover {
  background: #333;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.filter-btn:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filter-btn.active {
  background: #333;
  color: #ffffff;
}

.filter-btn.active:hover {
  background: #555;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Elysium Recipe Categories */
.elysium-categories-section {
  margin: 3rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 0.5rem;
  border-left: 4px solid #28a745;
}

.categories-title {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #666;
  letter-spacing: 0.15em;
  margin-bottom: 2rem;
  text-align: center;
}

.elysium-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.category-btn {
  padding: 1rem 1.5rem;
  background: white;
  color: #333;
  text-decoration: none;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-align: center;
  border: 2px solid #28a745;
  position: relative;
  overflow: hidden;
}

.category-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(40, 167, 69, 0.1), transparent);
  transition: left 0.5s;
}

.category-btn:hover::before {
  left: 100%;
}

.category-btn:hover {
  background: #28a745;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

/* Special styling for Elixíry button */
.category-btn[href*="elixir"] {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: #667eea;
  position: relative;
}

.category-btn[href*="elixir"]::after {
  content: '✨';
  position: absolute;
  top: 0.3rem;
  right: 0.5rem;
  font-size: 0.8rem;
}

.category-btn[href*="elixir"]:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Signature Stories section */
.signature-section {
  margin: 4rem 0;
  padding-top: 3rem;
  border-top: 1px solid #eee;
  text-align: center;
}

.signup-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 400;
  color: #333;
  margin-bottom: 2rem;
}

.signature-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.signature-btn {
  padding: 0.8rem 1.5rem;
  border: 1px solid #333;
  border-radius: 50px;
  background: #333;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  min-height: 44px;
  min-width: 44px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.signature-btn:hover {
  background: #555;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.signature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

/* Grid článků */
.articles-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 2rem !important;
  margin-bottom: 4rem !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  overflow: visible !important;
  width: 100% !important;
}

/* Sticky článek - vždy první */
.article-card.sticky {
  order: -1;
  position: relative;
  border: 2px solid #333;
  box-shadow: 0 4px 20px rgba(51, 51, 51, 0.15);
}

.article-card.sticky::before {
  content: 'MANIFEST';
  position: absolute;
  top: -1px;
  right: -1px;
  background: #333;
  color: white;
  padding: 0.3rem 0.8rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  z-index: 10;
  border-radius: 0 0 0 0.5rem;
}

.article-card.sticky:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(51, 51, 51, 0.25);
}

.article-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.article-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

/* Kontejner hero obrázku */
.article-hero-wrap {
  margin: 0 0 24px 0;
  overflow: visible; /* neskrývat části obrázku */
  width: 100%;
  max-width: 100%;
}

/* Obrázek musí být vidět celý = žádné ořezávání */
.article-hero {
  display: block !important;
  width: 100% !important;
  height: auto !important; /* zachovat poměr stran */
  max-height: none !important;
  object-fit: contain !important; /* jistota: nic neřež */
  object-position: center !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* UNIVERZÁLNÍ pravidla pro VŠECHNY obrázky v obsahu článku */
.article-content img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important; /* žádné ořezy - zobrazit celé */
  object-position: center !important;
  display: block !important;
  margin: 2rem auto !important;
  border-radius: 0.5rem !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: optimize-quality;
  max-width: 100% !important;
  aspect-ratio: auto !important;
}

/* Kontejnery obrázků - zajištění flexibility */
.article-content .article-image,
.article-content .image-wrap,
.article-content .article-section img,
.article-content figure {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  width: 100% !important;
  margin: 2rem 0 !important;
  text-align: center;
}

/* Specifické přetlučení starých stylů */
.article-content .article-image img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  margin: 0 auto !important;
}

/* Pro případ více obrázků v jedné sekci */
.article-content .multi-image-container {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}

.article-content .multi-image-container.two-images {
  grid-template-columns: 1fr 1fr;
}

.article-content .multi-image-container img {
  margin: 0 !important; /* resetovat margin pro grid layout */
}

/* Responzivní chování pro více obrázků */
@media (max-width: 768px) {
  .article-content .multi-image-container.two-images {
    grid-template-columns: 1fr; /* na mobilu jeden pod druhým */
    gap: 1rem;
  }
}

.image-caption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #666;
  text-align: center;
  font-style: italic;
}

/* Ujistíme se, že sekce článku mají správný spacing */
.article-section {
  margin-bottom: 2rem;
  clear: both;
}

/* GRID NÁHLEDY - univerzální thumbnail systém */
.card-thumb-wrap {
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: 12px;
  position: relative;
  background: #f5f5f5;
}

.card-thumb {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important; /* záměrný ořez pro náhled */
  object-position: center !important;
  display: block !important;
  transition: transform 0.3s ease;
}

.article-card:hover .card-thumb {
  transform: scale(1.05) !important;
}

.article-info {
  padding: 1.5rem;
}

.article-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #999;
  letter-spacing: 1px;
}

/* Styl pro kliknutelné kategorie */
.article-category[style*="cursor: pointer"],
.category-link,
[data-category-link] {
  color: #333 !important;
  font-weight: 500 !important;
  padding: 0.3rem 0.8rem;
  background: #f8f9fa;
  border-radius: 15px;
  border: 1px solid #e9ecef;
  display: inline-block;
  margin-bottom: 1rem;
}

.article-category[style*="cursor: pointer"]:hover,
.category-link:hover,
[data-category-link]:hover {
  background: #e9ecef;
  color: #000 !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Grid článků - texty */
.article-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem !important;
  font-weight: 400;
  color: #333;
  margin-bottom: 0.8rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-date {
  font-size: 0.75rem !important;
  color: #888;
}

/* Detail článku - velké styly */
.article-detail .article-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem; /* 32-36px */
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
  line-height: 1.2;
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.article-detail .article-date {
  font-size: 1rem; /* 14-16px */
  color: #666;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eaeaea;
}

/* Nadpisy v článcích */
.article-detail h1,
.article-detail h2,
.article-detail h3,
.article-detail h4 {
  font-family: 'Playfair Display', serif !important;
  font-weight: 400;
  color: #333;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-detail h2 {
  font-size: 1.8rem;
}

.article-detail h3 {
  font-size: 1.4rem;
}

/* Odstavce v článcích */
.article-detail p,
.article-content p,
.article-section p {
  font-family: 'Source Sans Pro', sans-serif !important;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 1.2rem;
  font-weight: 300;
}

/* About section */
.about-section {
  margin: 4rem 0;
  padding: 3rem 2rem;
  background: #fafafa;
  border-radius: 0.5rem;
  text-align: center;
}

.about-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 400;
  color: #333;
  margin-bottom: 2rem;
}

.about-content {
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

.about-content p {
  margin-bottom: 1.5rem;
  color: #444;
  font-size: 1.1rem;
}

.about-motto {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: #333;
  margin-top: 2rem;
}

/* About page styles */
.back-navigation {
  margin-bottom: 2rem;
}

.back-link {
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: #333;
}

.about-page {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 0;
}

.about-page-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 400;
  color: #333;
  margin-bottom: 2rem;
  text-align: center;
}

.about-page-content {
  line-height: 1.8;
  text-align: center;
}

.about-page-content p {
  margin-bottom: 1.5rem;
  color: #444;
  font-size: 1.1rem;
}

.about-page-motto {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: #333;
  margin-top: 2rem;
}

.nav-active {
  color: #333 !important;
  font-weight: 500;
}

/* Contact page styles */
.contact-page {
  max-width: 500px;
  margin: 0 auto;
  padding: 3rem 0;
  text-align: center;
}

.contact-page-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 400;
  color: #333;
  margin-bottom: 3rem;
}

.contact-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.contact-logo {
  margin-bottom: 1rem;
}

.logo-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #f8f9fa;
  border: 2px solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 500;
  color: #333;
  letter-spacing: 1px;
}

.contact-info {
  width: 100%;
}

.contact-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: #333;
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.contact-label {
  font-size: 0.9rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 400;
}

.contact-value {
  font-size: 1.1rem;
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-value:hover {
  color: #555;
}

@media (max-width: 768px) {
  .contact-page {
    padding: 2rem 1rem;
  }

  .contact-page-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .logo-circle {
    width: 60px;
    height: 60px;
  }

  .logo-text {
    font-size: 1.4rem;
  }

  .contact-brand {
    font-size: 1.5rem;
  }
}

/* Layers rubric styles */
.layers-caption {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #8B7355;
  text-align: center;
  margin: 2rem auto;
  max-width: 600px;
  font-style: italic;
  position: relative;
}

.layers-caption::before {
  content: '';
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: #D4C4A8;
}

.layers-caption:first-of-type::before {
  display: none;
}

/* Responsive adjustments for Layers */
@media (max-width: 768px) {
  .layers-caption {
    font-size: 1rem;
    margin: 1.5rem auto;
    padding: 0 1rem;
  }
}

/* Lightbox pro moodboardy */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.lightbox-content img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
}

.lightbox-info {
  padding: 1.5rem;
}

.lightbox-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.lightbox-info p {
  color: #666;
  line-height: 1.5;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.lightbox-close:hover {
  background: rgba(0, 0, 0, 0.9);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Footer */
.blog-footer {
  background: #f8f9fa;
  padding: 3rem 0;
  margin-top: 4rem;
  text-align: center;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #333;
  text-decoration: none;
  margin-top: 1rem;
}

/* Archive page styles */
.archive-header {
  text-align: center;
  margin: 3rem 0;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eee;
}

.archive-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 400;
  color: #333;
  margin-bottom: 1rem;
}

.archive-description {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.archive-years {
  margin: 3rem 0;
}

.year-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 500;
  color: #333;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

.year-section-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: #333;
}

.archive-grid {
  margin-bottom: 4rem;
}

.archive-stats {
  background: #f8f9fa;
  padding: 3rem 2rem;
  border-radius: 0.5rem;
  text-align: center;
  margin-top: 4rem;
}

.archive-stats h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: #333;
  margin-bottom: 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: #333;
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Responsive styles for archive */
@media (max-width: 768px) {
  .archive-title {
    font-size: 2rem;
  }

  .archive-description {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .year-section-title {
    font-size: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .archive-stats {
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  .archive-header {
    margin: 2rem 0;
  }

  .archive-title {
    font-size: 1.8rem;
  }

  .year-section-title {
    font-size: 1.3rem;
  }
}

/* Responsive */
@media (max-width: 768px) {
  /* NAVIGACE - zachovat normální šířku */
  .nav-container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 1.5rem;
    max-width: 100%;
  }

  .nav-left {
    flex: 1 1 auto;
    min-width: 200px;
  }

  .nav-right {
    flex: 1 1 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
  }

  .nav-right a {
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
  }

  .language-switcher {
    margin-left: auto;
  }

  /* BLOG MAIN - normální padding */
  .blog-main {
    padding: 2rem 1.5rem;
    max-width: 100%;
    overflow-x: hidden;
  }

  .blog-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0;
  }

  /* ARTICLES GRID - jeden sloupec, ale velké náhledy */
  .articles-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
    padding: 0 !important;
    width: 100% !important;
  }

  .signature-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }

  /* CARD THUMB - VELKÝ náhled pro mobil */
  .card-thumb-wrap {
    height: 280px !important;
    width: 100% !important;
    border-radius: 12px;
  }

  .card-thumb {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  /* ARTICLE INFO - dostatečný padding */
  .article-info {
    padding: 2rem 1.5rem !important;
  }

  .article-category {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
  }

  /* ARTICLE TITLE - čitelná velikost */
  .article-title {
    font-size: 1.3rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1rem !important;
    -webkit-line-clamp: 3;
  }

  .article-date {
    font-size: 0.9rem !important;
    margin-top: 0.8rem;
  }

  /* MOTTO */
  .motto-text {
    font-size: 1.5rem;
    padding: 0 1rem;
  }

  /* FILTRY */
  .filters-container {
    gap: 0.8rem;
    padding: 0 0.5rem;
  }

  .filter-btn {
    font-size: 0.85rem;
    padding: 0.7rem 1.3rem;
  }

  /* ELYSIUM CATEGORIES */
  .elysium-categories {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .category-btn {
    padding: 1rem 1.2rem;
    font-size: 0.95rem;
  }
}

/* No results message */
.no-results {
  text-align: center;
  padding: 3rem;
  color: #666;
  font-style: italic;
}

/* Extra small devices (phones, less than 480px) */
@media (max-width: 480px) {
  .nav-logo {
    height: 28px;
  }

  .nav-title {
    font-size: 1rem;
  }

  .motto-text {
    font-size: 1.2rem;
  }

  .search-input {
    font-size: 16px; /* Prevents zoom on iOS */
  }

  .card-thumb-wrap {
    height: 200px;
  }

  .article-info {
    padding: 1.5rem;
  }

  .article-title {
    font-size: 1.1rem !important;
  }

  .article-category {
    font-size: 0.8rem;
  }

  .article-date {
    font-size: 0.8rem !important;
  }

  .article-detail .article-title {
    font-size: 1.8rem;
  }

  .article-detail h2 {
    font-size: 1.4rem;
  }

  .article-detail p {
    font-size: 1rem;
  }

  .running-banner {
    font-size: 0.8rem;
  }
}

/* Loading states */
.loading {
  text-align: center;
  padding: 2rem;
  color: #666;
}

/* Additional utility classes */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}

/* Recipe-specific styles */
.recipe-article .article-header {
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 2.5rem;
}

.recipe-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.recipe-tag {
  background: #f8f9fa;
  color: #666;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.recipe-tag:hover {
  background: #e9ecef;
  color: #333;
}

.recipe-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 0.5rem;
}

.recipe-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.meta-label {
  font-size: 0.8rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.meta-value {
  font-size: 1rem;
  color: #333;
  font-weight: 500;
}

/* Ingredients section */
.recipe-ingredients-section {
  background: #fafbfc;
  padding: 2rem;
  border-radius: 0.5rem;
  margin: 3rem 0;
  border-left: 4px solid #28a745;
}

.recipe-ingredients-section h2 {
  color: #28a745;
  margin-bottom: 2rem;
}

.ingredients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.ingredient-category h3 {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e9ecef;
}

.ingredients-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ingredients-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.ingredients-list li:last-child {
  border-bottom: none;
}

.amount {
  background: #28a745;
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 500;
  min-width: fit-content;
  text-align: center;
}

/* Steps section */
.recipe-steps-section {
  margin: 3rem 0;
}

.recipe-step {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
  padding: 2rem;
  background: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: relative;
}

.step-number {
  background: #333;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 0.5rem;
}

.step-content {
  flex: 1;
}

.step-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #333;
}

.step-content p {
  line-height: 1.6;
  color: #555;
  margin-bottom: 1rem;
}

.step-image {
  margin-top: 1.5rem;
}

.step-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Tips section */
.recipe-tips-section {
  background: #fff3cd;
  padding: 2rem;
  border-radius: 0.5rem;
  margin: 3rem 0;
  border-left: 4px solid #ffc107;
}

.recipe-tips-section h2 {
  color: #856404;
  margin-bottom: 2rem;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.tip-item {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tip-item h4 {
  margin-bottom: 0.5rem;
  color: #333;
  font-size: 1rem;
}

.tip-item p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* Design connection section */
.recipe-design-section {
  background: #f0f0f0;
  padding: 2rem;
  border-radius: 0.5rem;
  margin: 3rem 0;
}

.design-code {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-top: 1rem;
  border-left: 3px solid #333;
}

/* Multimedia section */
.recipe-multimedia-section {
  margin: 3rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 0.5rem;
  color: white;
}

.recipe-multimedia-section h2 {
  color: white;
  margin-bottom: 2rem;
}

.multimedia-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.playlist-section,
.qr-section {
  background: rgba(255,255,255,0.1);
  padding: 1.5rem;
  border-radius: 0.5rem;
  backdrop-filter: blur(10px);
}

.playlist-section h3,
.qr-section h3 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.playlist-items {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1rem;
}

.playlist-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem;
  background: rgba(255,255,255,0.1);
  border-radius: 0.3rem;
  transition: all 0.3s ease;
}

.playlist-item:hover {
  background: rgba(255,255,255,0.2);
  transform: translateX(5px);
}

.track-number {
  background: rgba(255,255,255,0.2);
  padding: 0.3rem 0.6rem;
  border-radius: 0.2rem;
  font-size: 0.8rem;
  font-weight: 500;
  min-width: 30px;
  text-align: center;
}

.track-info {
  font-size: 0.9rem;
}

.spotify-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #1DB954;
  text-decoration: none;
  margin-top: 0.5rem;
  transition: opacity 0.3s ease;
}

.spotify-link:hover {
  opacity: 0.8;
}

.track-title {
  font-weight: 500;
  color: white;
}

.track-artist {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}

.spotify-track {
  margin-top: 1rem;
}

/* QR Code section */
.qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.qr-code-placeholder {
  width: 120px;
  height: 120px;
  background: white;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.qr-pattern {
  width: 100%;
  height: 100%;
  position: relative;
  background:
    repeating-linear-gradient(
      0deg,
      #000 0px 2px,
      transparent 2px 4px
    ),
    repeating-linear-gradient(
      90deg,
      #000 0px 2px,
      transparent 2px 4px
    );
}

.qr-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 3px solid #000;
}

.qr-corner:nth-child(1) {
  top: 5px;
  left: 5px;
}

.qr-corner:nth-child(2) {
  top: 5px;
  right: 5px;
}

.qr-corner:nth-child(3) {
  bottom: 5px;
  left: 5px;
}

.qr-description {
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
  margin: 0;
}

/* Elysium navigation */
.elysium-navigation {
  margin: 4rem 0;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 0.5rem;
  text-align: center;
}

/* Related recipes */
.related-recipes-section {
  border-top: 1px solid #f0f0f0;
  padding-top: 2rem;
  margin-top: 3rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.related-item {
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.related-item:hover {
  background: #e9ecef;
  transform: translateY(-2px);
}

.related-category {
  font-size: 0.8rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.related-item h4 {
  margin: 0.5rem 0;
  color: #333;
  font-size: 1rem;
}

.related-date {
  font-size: 0.8rem;
  color: #666;
  font-style: italic;
}

/* Cloud Dancer article styles */
.cloud-block {
  background: #E8F1FA;
  border-left: 4px solid #314D7F;
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 0.5rem;
  color: #314D7F;
}

.cloud-block h2 {
  color: #314D7F;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.cloud-block p {
  color: #314D7F;
  margin-bottom: 1rem;
}

.cloud-block p:last-child {
  margin-bottom: 0;
}

.cloud-quote-block {
  background: #E8F1FA;
  border: 2px solid #314D7F;
  padding: 2rem 3rem;
  margin: 3rem 0;
  text-align: center;
  border-radius: 0.5rem;
  font-style: italic;
}

.cloud-quote-block p {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: #314D7F;
  margin: 0;
  line-height: 1.6;
}

/* Recipe responsive design */
@media (max-width: 768px) {
  .recipe-step {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    align-self: flex-start;
    margin-top: 0;
  }

  .recipe-meta {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
  }

  .ingredients-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .tips-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .multimedia-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .qr-code-placeholder {
    width: 100px;
    height: 100px;
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .recipe-tags {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .recipe-ingredients-section,
  .recipe-tips-section,
  .recipe-multimedia-section {
    padding: 1.5rem;
    margin: 2rem 0;
  }

  .step-content h3 {
    font-size: 1.1rem;
  }

  .playlist-item {
    padding: 0.6rem;
  }

  .track-number {
    padding: 0.2rem 0.4rem;
    font-size: 0.7rem;
    min-width: 25px;
  }

  .track-info {
    font-size: 0.8rem;
  }
}