/*
Theme Name: Luxe Child – Magazín Amenity
Theme URI: https://amenity.cz/magazin-amenity/
Description: Child theme of Luxe. Adds the Magazín Amenity blog (Fáze 1): controlled article + archive templates, SEO-clean markup, CTA/FAQ/related-article slots.
Author: Triton IT
Template: luxe
Version: 0.1.0
Text Domain: luxe-child
*/

/* ---- Magazín Amenity – Fáze 1 styles ---- */

/* Archive: header + intro SEO text */
.magazin-header { text-align: center; margin: 40px 0 36px; }
.magazin-header h1 { margin-bottom: 18px; }
.magazin-intro {
  max-width: 820px;
  margin: 0 auto 50px;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Category filter bar */
.magazin-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 44px;
}
.magazin-filter a {
  display: inline-block;
  padding: 9px 18px;
  border: 1px solid #ddd;
  border-radius: 999px;
  font-size: 16px;
  text-decoration: none;
  color: #444;
}
.magazin-filter a[aria-current="true"] {
  background: #9a7b3f;
  border-color: #9a7b3f;
  color: #fff;
}

.magazin-empty {
  text-align: center;
  color: #888;
  padding: 60px 0;
}

/* Archive: article cards grid */
.magazin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 992px) { .magazin-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .magazin-grid { grid-template-columns: 1fr; } }

.magazin-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 8px;
  overflow: hidden;
}
.magazin-card__thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.magazin-card__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.magazin-card__cat {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9a7b3f;
  margin-bottom: 8px;
}
.magazin-card__title { font-size: 20px; line-height: 1.35; margin: 0 0 10px; }
.magazin-card__title a { color: inherit; text-decoration: none; }
.magazin-card__excerpt { font-size: 16px; color: #555; flex: 1; line-height: 1.55; }
.magazin-card__meta { font-size: 14px; color: #999; margin-top: 14px; }

/* Single article — full container width like the rest of the site.
   Pin a base font-size so child em/rem don't shrink with the theme. */
.magazin-article { margin: 40px 0 0; font-size: 18px; }
.magazin-breadcrumb {
  margin: 24px 0 16px;
  font-size: 16px;
  color: #666;
}
.magazin-article__header { margin-bottom: 28px; }
.magazin-article__title { margin: 8px 0 16px; }
.magazin-article__cat {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9a7b3f;
  margin-bottom: 10px;
}
.magazin-article__cat a { color: inherit; text-decoration: none; }
.magazin-article__meta { font-size: 16px; }
.magazin-article__meta span { margin-right: 18px; white-space: nowrap; }
.magazin-article__perex {
  font-size: 22px;
  line-height: 1.55;
  color: #333;
  margin: 0 0 24px;
}
.magazin-article__meta {
  color: #777;
  margin-bottom: 28px;
  border-bottom: 1px solid #ececec;
  padding-bottom: 16px;
}
.magazin-article__featured img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 32px;
}
.magazin-article__body { font-size: 19px; line-height: 1.75; }
.magazin-article__body p, .magazin-article__body li { font-size: 19px; }
.magazin-article__body a {
  color: #9a7b3f;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.magazin-article__body a:hover {
  color: #846a35;
  text-decoration-thickness: 2px;
}
.magazin-article__body h2 { margin-top: 1.8em; }
.magazin-article__body h3 { margin-top: 1.4em; }

/* Related articles */
.magazin-related { margin-top: 56px; margin-bottom: 50px; }
.magazin-related__title { margin-bottom: 24px; }

/* CTA block */
.magazin-cta {
  margin: 32px 0;
  text-align: center;
}
.magazin-cta__btn {
  display: inline-block;
  padding: 20px 44px;
  background: #9a7b3f;
  color: #fff;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.15s ease;
}
.magazin-cta__btn:hover { background: #846a35; color: #fff; }
.magazin-cta--learn_more .magazin-cta__btn {
  background: transparent;
  color: #9a7b3f;
  border: 2px solid #9a7b3f;
  padding: 18px 42px;
}
.magazin-cta--learn_more .magazin-cta__btn:hover { background: #9a7b3f; color: #fff; }
.magazin-cta__hint { color: #c00; font-size: 0.85rem; }

/* FAQ element – collapsible via native <details>/<summary> */
.magazin-faq { margin: 40px 0; font-size: 18px; }
.magazin-faq__title { margin-bottom: 20px; font-size: 28px; }
.magazin-faq__item {
  border-bottom: 1px solid #ececec;
  padding: 18px 0;
}
.magazin-faq__item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  outline: none;
}
.magazin-faq__item summary::-webkit-details-marker { display: none; }
.magazin-faq__item summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 28px;
  line-height: 1;
  color: #9a7b3f;
  font-weight: 400;
  transition: transform 0.2s ease;
}
.magazin-faq__item[open] summary::after {
  content: '−';
}
.magazin-faq__item summary:focus-visible { box-shadow: 0 0 0 2px rgba(154,123,63,0.35); border-radius: 4px; }
.magazin-faq__q {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
}
.magazin-faq__a { color: #444; font-size: 18px; line-height: 1.7; margin-top: 12px; }
.magazin-faq__a p { font-size: 18px; }

/* Pagination */
.magazin-pagination { margin-top: 48px; text-align: center; }

/* =============================================================
   Layout variant: SIDEBAR
   ============================================================= */
/* Lead area (title + perex + featured image) spans the full container width. */
.magazin-article__header--lead { margin-top: 32px; }
.magazin-article__featured--lead { margin-top: 0; }

.magazin-layout--sidebar .magazin-sidebar-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: start;
  margin-top: 16px;
}
.magazin-layout--sidebar .magazin-article { margin-top: 0; }
@media (max-width: 992px) {
  .magazin-layout--sidebar .magazin-sidebar-grid { grid-template-columns: 1fr; }
  /* On mobile show the sidebar (category / TOC / meta) above the article and unpin it. */
  .magazin-layout--sidebar .magazin-side {
    order: -1;
    position: static;
    top: auto;
  }
}

.magazin-layout--sidebar .magazin-article { margin-top: 0; min-width: 0; }

.magazin-side {
  position: sticky;
  top: 120px; /* clear Luxe's fixed header; bump higher if it still overlaps */
  font-size: 15px;
}
.magazin-side__block {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 16px;
}
.magazin-side__label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
  color: #999;
  margin-bottom: 10px;
}
.magazin-side__cat-name {
  display: inline-block;
  font-weight: 700;
  color: #9a7b3f;
  font-size: 17px;
  text-decoration: none;
}
.magazin-side__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed #eee;
  font-size: 15px;
}
.magazin-side__row:last-child { border-bottom: 0; }
.magazin-side__row span { color: #888; }

.magazin-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.magazin-toc__list li { margin: 6px 0; }
.magazin-toc__h3 { padding-left: 14px; }
.magazin-toc__list a {
  color: #333;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.4;
  display: block;
}
.magazin-toc__list a:hover { color: #9a7b3f; }

.magazin-side__cat .magazin-side__tags { margin-top: 12px; }
.magazin-side__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.magazin-side__tags span {
  display: inline-block;
  padding: 3px 10px;
  background: #f4efe5;
  color: #6a5326;
  border-radius: 999px;
  font-size: 13px;
}
.magazin-side__more {
  list-style: none;
  margin: 0;
  padding: 0;
}
.magazin-side__more li {
  padding: 8px 0;
  border-bottom: 1px solid #f1f1f1;
}
.magazin-side__more li:last-child { border-bottom: 0; }
.magazin-side__more a {
  color: #333;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
}
.magazin-side__more a:hover { color: #9a7b3f; }

.magazin-pagination .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 3px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
}
.magazin-pagination .page-numbers.current {
  background: #9a7b3f;
  color: #fff;
  border-color: #9a7b3f;
}
