/* =============================================================
   A2Z STUDIO — GUIDE SDÍLENÝ STYLESHEET
   Použito na: Guide archiv (archive-guide.php), Guide článek (single-guide.php)
   Závisí na services-shared.css (proměnné --red, --bg, --card, --border,
   --muted, --dark, self-hosted Inter @font-face, .breadcrumb, .cta-section)
   ============================================================= */

.guide-page,
.guide-page * { box-sizing: border-box; }
.guide-page h1, .guide-page h2, .guide-page h3, .guide-page h4,
.guide-page p { margin: 0; padding: 0; }
.guide-page {
  background: var(--bg);
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
}

/* ── GP container full-bleed override (stejné jako .a2z-service-page,
     ale VLASTNÍ třída — guide markup nesmí dědit a2z-service-page resety) ── */
body.guide-body .site-content,
body.guide-body .content-area,
body.guide-body .site-main,
body.guide-body .inside-article {
  max-width: 100% !important;
  padding: 0 !important;
}
body.guide-body .site-main > * {
  margin-bottom: 0 !important;
}

.article-tag {
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--red); margin-bottom: 14px;
}

.archive-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 32px;
}
.archive-section-head h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.3px; }

.read-more {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--red); text-decoration: none;
  font-size: 13px; font-weight: 600; letter-spacing: 0.3px;
  transition: gap 0.2s;
}
.read-more:hover { gap: 12px; color: var(--red); }

/* ── ARTICLE GRID / KARTY ── */
.article-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px;
}
/* Osamělá karta na konci posledního (nedoplněného) řádku -> roztáhnout na
   celou šířku řádku místo "viset" vlevo s prázdnotou vpravo.
   Funguje automaticky pro libovolný (lichý) počet článků, ne natvrdo. */
.article-grid > .article-card:last-child:nth-child(2n+1) {
  grid-column: 1 / -1;
}
@media (max-width: 900px) {
  .article-grid > .article-card:last-child:nth-child(2n+1) {
    grid-column: auto;
  }
}
.article-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
  text-decoration: none; color: inherit;
}
.article-card:hover { border-color: rgba(204,41,41,0.3); transform: translateY(-3px); color: inherit; }
.article-thumb {
  height: 150px; position: relative;
  background: linear-gradient(160deg, #1a1a1a 0%, #0d0d0d 100%);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.article-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-thumb svg { width: 36px; height: 36px; opacity: 0.35; }
.article-card-body { padding: 22px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.article-card-body h4 {
  font-size: 16px; font-weight: 600; line-height: 1.35;
  margin-bottom: 10px;
}
.article-card-body p {
  font-size: 12.5px; color: var(--muted); line-height: 1.65;
  margin-bottom: 18px; flex: 1;
}
.article-card-meta {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border); padding-top: 14px;
  font-size: 11px; color: var(--muted);
}
.article-card-meta .read-more { font-size: 11.5px; }

/* =============================================================
   ARCHIVE — hero, featured article, pagination
   ============================================================= */
.guide-hero {
  position: relative;
  padding: 80px 48px 64px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.guide-hero-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 15% 30%, rgba(204,41,41,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.guide-hero-inner { position: relative; max-width: 1200px; margin: 0 auto; text-align: center; }
.guide-hero .breadcrumb { justify-content: center; }
.guide-hero h1 {
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 700; letter-spacing: -1.5px; line-height: 1.1;
  margin-bottom: 18px;
}
.guide-hero .hero-label { margin: 0 auto 24px !important; }
.guide-hero-desc {
  font-size: 15px; color: var(--muted);
  line-height: 1.75; max-width: 480px; margin: 0 auto 32px !important;
}
.guide-search-bar {
  display: flex;
  align-items: center;
  max-width: 560px;
  margin: 0 auto;
  background: var(--card) !important;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 6px 6px 22px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.guide-search-bar:focus-within {
  border-color: rgba(204,41,41,.55);
  box-shadow: 0 0 0 3px rgba(204,41,41,.12);
}
.guide-search-bar::before {
  content: '';
  width: 16px; height: 16px;
  margin-right: 12px;
  flex-shrink: 0;
  background: var(--muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") center / contain no-repeat;
}
.guide-search-bar input {
  flex: 1; min-width: 0; /* bez tohoto má <input> defaultní prohlížečovou
    min-šířku (~170-200px), kvůli které se na mobilu nezmenšil a tlačítko
    "Hledat" uteklo mimo viditelnou oblast (brief 2026-07-09/13, bod 6) */
  background: transparent !important;
  border: none !important; box-shadow: none !important;
  -webkit-appearance: none; appearance: none;
  padding: 11px 0; font-family: inherit; font-size: 14px;
  color: #fff !important; outline: none;
}
.guide-search-bar input::placeholder { color: var(--muted); }
.guide-search-bar button {
  border-radius: 999px !important;
}
.guide-search-bar button {
  background: var(--red); color: #fff; border: none;
  font-family: inherit; font-size: 12px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 0 26px; border-radius: 0 4px 4px 0; cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
  white-space: nowrap;
}
.guide-search-bar button:hover { background: #aa1f1f; }
@media (max-width: 480px) {
  .guide-search-bar { padding: 6px 6px 6px 16px; }
  .guide-search-bar button { padding: 0 16px; font-size: 11px; letter-spacing: 1px; }
}

/* Jednoduchý systém tagů/kategorií pod search barem (brief 2026-07-09/13,
   sekce 6) */
.guide-tag-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 18px auto 0;
  max-width: 720px;
}
.guide-tag {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  padding: 7px 16px;
  border-radius: 999px;
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.guide-tag:hover {
  border-color: rgba(204,41,41,.5);
  color: #fff;
}
.guide-tag.is-active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.guide-archive { max-width: 1200px; margin: 0 auto; padding: 72px 48px 40px; }

.featured-article {
  display: grid; grid-template-columns: 1.05fr 1fr;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden; margin-bottom: 64px;
  text-decoration: none; color: inherit;
}
.featured-article:hover { color: inherit; }
.featured-thumb {
  position: relative; min-height: 320px;
  background:
    radial-gradient(ellipse 70% 70% at 30% 30%, rgba(204,41,41,0.18) 0%, transparent 65%),
    linear-gradient(160deg, #1c1c1c 0%, #0d0d0d 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.featured-thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.featured-thumb svg { width: 64px; height: 64px; opacity: 0.5; position: relative; z-index: 1; }
.featured-badge {
  position: absolute; top: 20px; left: 20px; z-index: 2;
  background: var(--red); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 7px 14px; border-radius: 4px;
}
.featured-body { padding: 44px 44px 44px 40px; display: flex; flex-direction: column; justify-content: center; }
.featured-body h2 {
  font-size: clamp(22px, 2.6vw, 30px); font-weight: 700;
  letter-spacing: -0.5px; line-height: 1.25; margin-bottom: 16px;
}
.featured-body p {
  font-size: 14px; color: var(--muted); line-height: 1.75; margin-bottom: 26px;
}

.pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 8px; margin-top: 64px;
}
.page-btn {
  width: 40px; height: 40px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); color: var(--muted);
  font-size: 13px; text-decoration: none; transition: all 0.2s;
}
.page-btn:hover { border-color: rgba(204,41,41,0.4); color: #fff; }
.page-btn.active { background: var(--red); color: #fff; border-color: var(--red); }
.page-btn.next { width: auto; padding: 0 18px; gap: 6px; font-size: 12px; letter-spacing: 0.5px; }

/* =============================================================
   SINGLE ARTICLE — hero, body, foot row, related
   ============================================================= */
.article-hero {
  position: relative;
  padding: 64px 48px 48px; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.article-hero-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 85% 20%, rgba(204,41,41,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.article-hero-inner { position: relative; max-width: 720px; margin: 0 auto; }
.article-hero h1 {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 700; letter-spacing: -1px; line-height: 1.2;
  margin-bottom: 22px;
}
.article-meta-row {
  display: flex; align-items: center; gap: 14px;
  font-size: 12.5px; color: var(--muted);
}
.article-meta-row .article-tag {
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--red); margin: 0;
}
.meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }

.article-wrap { max-width: 720px; margin: 0 auto; padding: 56px 48px 0; }
.article-lede {
  font-size: 17px; color: #ccc; line-height: 1.8; margin-bottom: 40px;
  font-weight: 300;
}
.article-body h2 {
  font-size: 23px; font-weight: 700; letter-spacing: -0.3px;
  margin: 48px 0 18px; display: flex; align-items: center; gap: 12px;
}
.article-body h2::before {
  content: ''; width: 4px; height: 22px; background: var(--red);
  border-radius: 2px; flex-shrink: 0;
}
.article-body p {
  font-size: 15px; color: #bbb; line-height: 1.85; margin-bottom: 18px;
}
.article-body ul, .article-body ol { color: #bbb; font-size: 15px; line-height: 1.85; margin: 0 0 18px; padding-left: 22px; }
.article-pullquote,
.article-body blockquote {
  border-left: 3px solid var(--red); padding: 4px 0 4px 24px;
  margin: 36px 0; font-size: 16px; font-style: italic;
  color: #ddd; line-height: 1.7;
}
.article-divider { height: 1px; background: var(--border); margin: 56px 0; }

.article-foot-row {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 64px;
}
.back-to-guide {
  color: var(--muted); text-decoration: none; font-size: 13px;
  display: inline-flex; align-items: center; gap: 8px; transition: color 0.2s;
}
.back-to-guide:hover { color: #fff; }
.share-row { display: flex; gap: 10px; }
.share-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); display: flex;
  align-items: center; justify-content: center;
  color: var(--muted); font-size: 12px; transition: all 0.2s;
  text-decoration: none;
}
.share-btn:hover { border-color: rgba(204,41,41,0.4); color: #fff; }

.related-section { background: var(--dark); padding: 88px 48px; }
.related-inner { max-width: 1200px; margin: 0 auto; }
.related-inner .archive-section-head { justify-content: center; margin-bottom: 40px; }
.related-inner .archive-section-head h3 { font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--red); font-weight: 600; }

/* =============================================================
   RESPONSIVE — collapse to 1 column under ~860px (matches
   .features-grid breakpoint logic from service pages)
   ============================================================= */
@media (max-width: 900px) {
  .article-grid { grid-template-columns: 1fr; gap: 20px; }
  .featured-article { grid-template-columns: 1fr; }
  .featured-thumb { min-height: 220px; }
  .featured-body { padding: 32px 28px; }
}
@media (max-width: 700px) {
  .guide-hero,
  .guide-archive,
  .article-hero,
  .related-section { padding-left: 24px; padding-right: 24px; }
  .article-wrap { padding-left: 24px; padding-right: 24px; }
  .article-foot-row { flex-direction: column; align-items: flex-start; gap: 20px; }
}

/* =============================================================
   GUIDE — breadcrumb a badge mírně větší než výchozí services-shared.css
   (jen na Guide stránkách, podstránky služeb zůstávají beze změny) — 2026-06-23
   ============================================================= */
.guide-page .breadcrumb { font-size: 14px; }
.guide-page .cta-section { padding-top: 48px; }

/* Guide hero/cta label -> stejný "holý" styl jako .onas-section-label
   na O nás / Reference / Vouchery (bez bublinového rámečku, bez tečky) */
.guide-page .hero-label,
.guide-page .cta-label {
  display: block;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  animation: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
}
/* "Rady & tipy pro hudebníky" — stejná velikost jako .onas-hero__label
   ("Nahrávací studio Praha" na O nás/Reference/Vouchery/Službách) */
.guide-page .hero-label {
  font-size: 1.05rem !important;
  letter-spacing: .22em;
}
.guide-page .hero-label::before,
.guide-page .cta-label::before {
  display: none !important;
}
/* .cta-label je <p> -> .guide-page p {margin:0} mazal mezeru pod ním
   (.hero-label má vlastní margin pravidlo výše, .guide-hero .hero-label) */
.guide-page .cta-label {
  margin-bottom: 28px !important;
}
/* Stejný bug i u textu nad tlačítkem "Rezervovat studio" (obyčejné <p>,
   .guide-page p {margin:0} mu mazalo mezeru před tlačítkem) */
.guide-page .cta-inner > p {
  margin-bottom: 36px !important;
}
