:root {
  --forest: #1C3A2D;
  --forest-light: #2A4F3D;
  --cream: #F5F1E8;
  --off-white: #FAF8F3;
  --white: #FFFFFF;
  --terracotta: #9B6A4A;
  --charcoal: #2C2C2C;
  --olive: #7A806B;
  --gold: #8B7355;
  --gold-hover: #7A6348;
  --gold-light: #D4A574;
  --text-muted: #6B6B6B;
  --border-light: #E0DCD3;

  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  --max-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.7;
  font-size: 15px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ===================== NAV ===================== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245, 241, 232, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
  padding: 18px 0;
}
.nav__inner {
  max-width: var(--max-width); margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 500;
  color: var(--forest); letter-spacing: 1px;
}
.nav__links { display: flex; gap: 32px; list-style: none; }
.nav__links a {
  font-size: 13px; font-weight: 400;
  color: var(--charcoal); letter-spacing: 0.5px;
  transition: color .2s;
}
.nav__links a:hover { color: var(--gold); }
.nav__links a.active { color: var(--gold); font-weight: 500; }
.nav__cta {
  font-size: 12px; font-weight: 500;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 10px 22px;
  border: 1px solid var(--forest);
  color: var(--forest);
  transition: all .2s;
}
.nav__cta:hover { background: var(--forest); color: var(--cream); }

.nav__hamburger { display: none; }

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger {
    display: flex; flex-direction: column; justify-content: center;
    gap: 5px; cursor: pointer; padding: 8px;
  }
  .nav__hamburger span {
    width: 24px; height: 2px; background: var(--forest);
    transition: all .2s;
  }
}

.nav__mobile {
  position: fixed; top: 0; right: -100%;
  width: 100%; height: 100vh;
  background: var(--cream);
  z-index: 200;
  padding: 40px 24px;
  transition: right .3s ease;
  display: flex; flex-direction: column;
}
.nav__mobile.active { right: 0; }
.nav__mobile-close {
  align-self: flex-end;
  font-size: 32px; background: none; border: none; cursor: pointer;
  color: var(--forest); margin-bottom: 32px;
}
.mobile-link {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--forest);
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}

/* ===================== HERO ===================== */
.magazin-hero {
  padding: 80px 24px 50px;
  text-align: center;
  background: var(--cream);
}
.magazin-hero__eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 500;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  position: relative;
  padding-top: 16px;
}
.magazin-hero__eyebrow::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 36px; height: 2px;
  background: var(--gold);
}
.magazin-hero__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 400;
  color: var(--forest);
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 18px;
}
.magazin-hero__perex {
  max-width: 600px; margin: 0 auto;
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.7;
}

/* ===================== FILTER BAR ===================== */
.filter-bar {
  background: var(--off-white);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 18px 0;
  margin-top: 110px;
  margin-bottom: 60px;
  position: sticky;
  top: 70px;
  z-index: 90;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(250, 247, 242, 0.96);
}
.filter-bar__inner {
  max-width: var(--max-width); margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.filter-tabs {
  display: flex; gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}
.filter-tab {
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.8px; text-transform: uppercase;
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--text-muted);
  transition: all .2s;
  white-space: nowrap;
  /* Works for both button and anchor */
  display: inline-block;
  border: 0;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  font-family: var(--font-body);
}
.filter-tab:hover { color: var(--forest); background: var(--cream); }
.filter-tab.active {
  background: var(--forest);
  color: var(--cream);
}

/* ===================== MAGAZÍN CONTENT ===================== */
.magazin-section {
  max-width: var(--max-width); margin: 0 auto;
  padding: 0 24px;
}
.section-header {
  margin-bottom: 36px;
  padding-top: 16px;
}
.section-header::before {
  content: '';
  display: block;
  width: 36px; height: 3px;
  background: var(--gold);
  margin-bottom: 18px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  color: var(--forest);
  letter-spacing: -0.3px;
}

/* ===================== FEATURED HERO ===================== */
.featured-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  margin-bottom: 100px;
}
.featured-main {
  background: var(--white);
  overflow: hidden;
  cursor: pointer;
  transition: transform .3s, box-shadow .3s;
  display: block;
}
.featured-main:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(28, 58, 45, 0.12);
}
.featured-main__image {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #2A4F3D 0%, #1C3A2D 100%);
  position: relative;
  overflow: hidden;
}
.featured-main__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.featured-main__image-label {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  color: rgba(245, 241, 232, 0.3);
  font-size: 24px;
  letter-spacing: 4px;
}
.featured-main__content {
  padding: 32px 36px 38px;
}
.featured-main__meta {
  display: flex; align-items: center; gap: 14px;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 16px;
}
.featured-main__meta-sep {
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
}
.featured-main__title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  color: var(--forest);
  letter-spacing: -0.3px;
  line-height: 1.15;
  margin-bottom: 18px;
}
.featured-main__perex {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}
.featured-main__cta {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap .2s;
}
.featured-main:hover .featured-main__cta { gap: 14px; }

.featured-side {
  display: flex; flex-direction: column;
  gap: 24px;
}
.featured-card {
  background: var(--white);
  overflow: hidden;
  cursor: pointer;
  transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column;
  flex: 1;
}
.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(28, 58, 45, 0.1);
}
.featured-card__image {
  aspect-ratio: 16/9;
  background: var(--forest-light);
  position: relative;
}
.featured-card__content {
  padding: 20px 24px 24px;
  flex: 1;
  display: flex; flex-direction: column;
}
.featured-card__meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 10px;
}
.featured-card__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--forest);
  line-height: 1.25;
  margin-bottom: 10px;
}
.featured-card__perex {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===================== GRID OF ARTICLES ===================== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 100px;
}
.article-card {
  background: var(--white);
  overflow: hidden;
  cursor: pointer;
  transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(28, 58, 45, 0.1);
}
.article-card__image {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #7A806B 0%, #5C6253 100%);
  position: relative;
}
.article-card__content {
  padding: 20px 24px 26px;
  flex: 1;
  display: flex; flex-direction: column;
}
.article-card__meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 12px;
}
.article-card__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--forest);
  line-height: 1.25;
  letter-spacing: -0.2px;
  margin-bottom: 12px;
  min-height: 56px;
}
.article-card__perex {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}
.article-card__tags {
  display: flex; gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
}
.tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  border-radius: 4px;
}

/* placeholder backgrounds for variety */
.bg-1 { background: linear-gradient(135deg, #1C3A2D 0%, #2A4F3D 100%); }
.bg-2 { background: linear-gradient(135deg, #9B6A4A 0%, #7A5238 100%); }
.bg-3 { background: linear-gradient(135deg, #7A806B 0%, #5C6253 100%); }
.bg-4 { background: linear-gradient(135deg, #8B7355 0%, #6F5C44 100%); }
.bg-5 { background: linear-gradient(135deg, #2A4F3D 0%, #1C3A2D 50%, #0F2418 100%); }
.bg-6 { background: linear-gradient(135deg, #B8956B 0%, #8B7355 100%); }
.bg-image-label {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  color: rgba(245, 241, 232, 0.25);
  font-size: 18px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* COMING SOON ARTICLES */
.article-card.coming-soon {
  opacity: 0.55;
  cursor: not-allowed;
  position: relative;
}
.article-card.coming-soon::before {
  content: 'PRIPRAVUJEME';
  position: absolute;
  top: 16px; right: 16px;
  z-index: 5;
  font-size: 9px;
  letter-spacing: 1.5px;
  font-weight: 600;
  padding: 6px 10px;
  background: rgba(28, 58, 45, 0.85);
  color: var(--cream);
  border-radius: 4px;
}
.article-card.coming-soon:hover {
  transform: none;
  box-shadow: none;
}

/* ===================== NEWSLETTER ===================== */
.newsletter {
  background: var(--forest);
  color: var(--cream);
  padding: 80px 24px;
  margin-top: 60px;
}
.newsletter__inner {
  max-width: 700px; margin: 0 auto;
  text-align: center;
}
.newsletter__eyebrow {
  font-size: 11px; font-weight: 500;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
}
.newsletter h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 400;
  margin-bottom: 18px;
  letter-spacing: -0.3px;
}
.newsletter p {
  font-size: 16px;
  color: rgba(245, 241, 232, 0.8);
  margin-bottom: 32px;
  line-height: 1.7;
}
.newsletter__form {
  display: flex; gap: 12px;
  max-width: 500px; margin: 0 auto;
  flex-wrap: wrap;
}
.newsletter__form input {
  flex: 1; min-width: 200px;
  font-family: var(--font-body);
  font-size: 14px;
  padding: 14px 20px;
  background: rgba(245, 241, 232, 0.1);
  border: 1px solid rgba(245, 241, 232, 0.2);
  color: var(--cream);
  outline: none;
}
.newsletter__form input::placeholder { color: rgba(245, 241, 232, 0.5); }
.newsletter__form input:focus { border-color: var(--gold-light); }
.newsletter__form button {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 14px 32px;
  background: var(--gold);
  color: var(--cream);
  transition: background .2s;
}
.newsletter__form button:hover { background: var(--gold-hover); }

/* ===================== FOOTER ===================== */
.footer {
  background: var(--forest);
  color: var(--cream);
  padding: 50px 24px 30px;
  text-align: center;
  border-top: 1px solid rgba(245, 241, 232, 0.1);
}
.footer__inner {
  max-width: var(--max-width); margin: 0 auto;
}
.footer__logo {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 500;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.footer__text {
  font-size: 13px;
  color: rgba(245, 241, 232, 0.6);
}
.footer__links {
  margin-top: 24px;
  display: flex; gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}
.footer__links a {
  font-size: 12px;
  color: rgba(245, 241, 232, 0.7);
  letter-spacing: 0.5px;
  transition: color .2s;
}
.footer__links a:hover { color: var(--cream); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .featured-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .featured-main__title { font-size: 28px; }
  .featured-main__content { padding: 24px 24px 28px; }
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .filter-bar { margin-top: 90px; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* ============================================================
   PAGINATION (added by listing_generator)
   ============================================================ */
.pagination {
  max-width: var(--max-width);
  margin: 60px auto 80px;
  padding: 0 24px;
  display: flex;
  justify-content: center;
}
.pagination__inner {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}
.pag-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--charcoal);
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.pag-link:hover {
  background: var(--cream);
  border-color: var(--gold);
  color: var(--forest);
}
.pag-link--current {
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
  cursor: default;
  pointer-events: none;
}
.pag-link--prev,
.pag-link--next {
  padding: 10px 20px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
}

/* CATEGORY HEADING */
.category-heading {
  max-width: var(--max-width);
  margin: 40px auto 20px;
  padding: 0 24px;
  text-align: center;
}
.category-heading__back {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 12px;
}
.category-heading__back:hover { color: var(--forest); }
.category-heading__title {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 400;
  color: var(--forest);
  margin: 0;
  line-height: 1.1;
}

/* PLACEHOLDER GRADIENT pre clanky bez obrazku */
.placeholder-gradient {
  background: linear-gradient(135deg, var(--forest-light) 0%, var(--forest) 50%, #0F2418 100%);
  position: relative;
  aspect-ratio: 16/10;
}
.placeholder-gradient .bg-image-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  color: rgba(245, 241, 232, 0.3);
  font-size: 22px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* IMAGE COVER */
.featured-card__image,
.article-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}
.featured-card__image picture,
.article-card__image picture {
  display: block;
  width: 100%;
  height: 100%;
}
.featured-card__image img,
.article-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Link wraps */
.article-card-link,
.featured-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.article-card-link:hover .article-card__title,
.featured-card-link:hover .featured-card__title {
  color: var(--terracotta);
}

/* CTA Pripravujeme variant */
.featured-main__cta--soon {
  color: var(--gold) !important;
  font-style: italic;
  cursor: default;
}
.featured-main--soon { cursor: default; }
.magazin-section--first { margin-top: 24px; }
