/* ===================================================================
   Klánovická akademie — motiv WordPress
   Barevný kód: indigo podklad + kruhy navy / peach / green / blue
   Typografie: Editor (serif) + Gotham (sans), fallback Fraunces + Montserrat
   =================================================================== */

/* --- Reálné fonty Editor / Gotham ---------------------------------
   Nahraj soubory do assets/fonts/ a pojmenuj je dle níže (nebo uprav cesty).
   Dokud soubory chybí, web plynule použije Fraunces + Montserrat. */
/* Editor (serif) */
@font-face {
  font-family: "Editor";
  src: url("../fonts/Editor Regular.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Editor";
  src: url("../fonts/Editor Regular Italic.otf") format("opentype");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Editor";
  src: url("../fonts/Editor Medium.otf") format("opentype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Editor";
  src: url("../fonts/Editor Medium Italic.otf") format("opentype");
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Editor";
  src: url("../fonts/Editor Bold.otf") format("opentype");
  font-weight: 700; font-style: normal; font-display: swap;
}
/* Gotham (sans) */
@font-face {
  font-family: "Gotham";
  src: url("../fonts/Gotham-Light.otf") format("opentype");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Gotham";
  src: url("../fonts/Gotham-Book.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Gotham";
  src: url("../fonts/Gotham-Medium.otf") format("opentype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Gotham";
  src: url("../fonts/Gotham-Bold.otf") format("opentype");
  font-weight: 700; font-style: normal; font-display: swap;
}
/* 800 (wordmark) — fallback na Bold, Black není dodán */
@font-face {
  font-family: "Gotham";
  src: url("../fonts/Gotham-Bold.otf") format("opentype");
  font-weight: 800; font-style: normal; font-display: swap;
}

:root {
  --indigo: #3906F5;
  --navy:   #262a5f;
  --peach:  #fadfd3;
  --green:  #54b686;
  --blue:   #4f99d3;
  --ink:    #14143a;
  --paper:  #faf6f2;
  --white:  #ffffff;

  --serif: "Editor", "Fraunces", Georgia, serif;
  --sans:  "Gotham", "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;

  --wrap: 1180px;
  --gap: clamp(2rem, 5vw, 5rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--white);
  background: var(--indigo);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
em, i { font-style: italic; }

/* ===== Plovoucí kruhy / paralaxa ===== */
.bubbles { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.bubble {
  position: absolute;
  width: var(--size); height: var(--size);
  background: var(--c); border-radius: 50%;
  opacity: .9; will-change: transform; transform: translateY(0);
}
.site-header, .hero, .section, .banner, .site-footer, .detail { position: relative; z-index: 1; }

/* ===== Tlačítka ===== */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 700;
  font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; padding: .95em 1.6em; border-radius: 999px;
  border: 2px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn--ticket { background: var(--green); color: var(--indigo); }
.btn--ticket:hover { background: var(--white); }
.btn--ghost { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.55); }
.btn--ghost:hover { background: var(--white); color: var(--indigo); border-color: var(--white); }
.btn--dark { background: var(--indigo); color: var(--white); }
.btn--dark:hover { background: var(--navy); }

/* ===== Hlavička ===== */
.site-header {
  display: flex; align-items: center; gap: 2rem;
  max-width: var(--wrap); margin: 0 auto;
  padding: 1.6rem clamp(1.2rem, 4vw, 2.5rem);
}
.wordmark {
  font-family: var(--sans); font-weight: 800; font-size: 1.05rem;
  line-height: 1.05; letter-spacing: -.01em; color: var(--white); text-decoration: none;
}
.wordmark span { color: var(--green); }
.nav { margin-left: auto; }
.nav, .nav .nav__list { display: flex; gap: 1.8rem; list-style: none; align-items: center; }
.nav a {
  color: var(--white); text-decoration: none; font-weight: 600;
  font-size: .85rem; letter-spacing: .04em; opacity: .85; transition: opacity .15s;
}
.nav a:hover { opacity: 1; }
.site-header .btn--ticket { margin-left: auto; }
.nav + .btn--ticket { margin-left: 0; }

/* ===== HERO ===== */
.hero {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) clamp(1.2rem, 4vw, 2.5rem) clamp(4rem, 9vw, 8rem);
  display: grid; grid-template-columns: 1.4fr .9fr; align-items: center; gap: var(--gap);
}
.eyebrow {
  font-weight: 700; font-size: .8rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--peach); margin-bottom: 2.6rem;
}
.hero__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.8rem, 7vw, 5.4rem); line-height: .98; letter-spacing: -.015em;
}
.hero__title em { color: var(--green); }
.hero__lead {
  margin: 1.8rem 0 2.4rem; font-size: 1.12rem; line-height: 1.55;
  max-width: 32ch; color: rgba(255,255,255,.82);
}
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.hero__media { display: flex; justify-content: center; }

/* ===== Portrét (kruh) ===== */
.portrait {
  width: min(360px, 80%); aspect-ratio: 1; border-radius: 50%;
  background: var(--ring); display: grid; place-items: center;
  overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.25);
}
.portrait__img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.portrait__ph { font-family: var(--serif); font-size: 4rem; color: var(--indigo); opacity: .65; }

/* ===== Generická sekce ===== */
.section { padding: clamp(3.5rem, 8vw, 7rem) clamp(1.2rem, 4vw, 2.5rem); }
.section__head { max-width: var(--wrap); margin: 0 auto clamp(2rem, 4vw, 3.5rem); }
.section__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1; color: var(--indigo);
}
.section__title--light { color: var(--white); }
.section__sub { margin-top: .6rem; font-weight: 600; letter-spacing: .04em; color: var(--ink); opacity: .6; }
.section__sub--light { color: var(--peach); opacity: .9; }
.section--paper { background: var(--paper); color: var(--ink); }
.section--indigo { background: transparent; }

/* ===== Karty: Inspirace ===== */
.cards { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.cards--grid { grid-template-columns: repeat(3, 1fr); }
.card {
  --card-fg: var(--white); background: var(--card); color: var(--card-fg);
  border-radius: 0; padding: 2rem 1.8rem 2.2rem; display: flex; flex-direction: column;
  min-height: 340px; text-decoration: none; transition: transform .2s ease;
}
.card:hover { transform: translateY(-6px); }
.card__avatar {
  width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.25);
  display: grid; place-items: center; overflow: hidden;
  font-family: var(--serif); font-size: 1.4rem; margin-bottom: 1.4rem;
}
.card__avatar-img { width: 100%; height: 100%; object-fit: cover; }
.card__tag { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .8; margin-bottom: .8rem; }
.card__title { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.12; margin-bottom: auto; }
.card__meta { margin-top: 1.6rem; font-size: .85rem; line-height: 1.2; }
.card__name { display: block; font-weight: 700; }
.card__role { display: block; font-weight: 400; opacity: .8; margin-top: .4rem; }

.link-more {
  display: block; max-width: var(--wrap); margin: 2.4rem auto 0; text-align: left;
  font-weight: 700; letter-spacing: .04em; color: var(--indigo); text-decoration: none;
}
.link-more--light, .section--indigo .link-more { color: var(--white); }

/* ===== Lineup: nadcházející přednášky ===== */
.lineup { max-width: var(--wrap); margin: 0 auto; list-style: none; }
.lineup__row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: clamp(.6rem, 1.4vw, 1.1rem) 0; border-bottom: 1px solid rgba(250,223,211,.25);
}
.lineup__link { text-decoration: none; }
.lineup__name {
  font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 5.5vw, 4rem);
  line-height: 1; color: var(--green); transition: color .15s, padding-left .2s; display: inline-block;
}
.lineup__row:hover .lineup__name { color: var(--peach); padding-left: .4rem; }
.lineup__date { font-family: var(--serif); font-size: clamp(1.6rem, 4vw, 3rem); color: var(--peach); white-space: nowrap; }

/* ===== Proběhlé přednášky ===== */
.past-grid { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.past { text-decoration: none; color: inherit; display: block; }
.past__thumb { aspect-ratio: 1; border-radius: 0; background: var(--t); margin-bottom: 1rem; overflow: hidden; }
.past__thumb--img img { width: 100%; height: 100%; object-fit: cover; }
.past h3 { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; margin-top: .1rem; }
.past p { font-size: .85rem; font-weight: 600; opacity: .6; margin-top: .3rem; }
.past__date { margin-top: 0; margin-bottom: .35rem; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; opacity: .55; }
.past__title { font-size: 1.05rem; font-weight: 600; opacity: .8; margin-top: .35rem; }
.section--indigo .past h3 { color: var(--white); }
.section--indigo .past p { color: var(--peach); opacity: .85; }

/* ===== Banner / předplatné ===== */
.banner { padding: clamp(3rem, 7vw, 6rem) clamp(1.2rem, 4vw, 2.5rem); }
.banner__inner {
  max-width: var(--wrap); margin: 0 auto; background: var(--peach); color: var(--indigo);
  border-radius: 0; padding: clamp(2.5rem, 6vw, 5rem); text-align: center;
}
.banner__kicker { font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: .82rem; color: var(--green); margin-bottom: 1.2rem; }
.banner__title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1; }
.banner__title em { color: var(--green); }
.banner__lead { margin: 1.6rem auto 2.4rem; max-width: 44ch; font-size: 1.08rem; line-height: 1.5; opacity: .8; }

/* ===== YouTube videa ===== */
.videos { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.videos-empty { max-width: var(--wrap); margin: 0 auto; }
.video { text-decoration: none; color: var(--white); }
.video__thumb {
  aspect-ratio: 16/9; border-radius: 0; background: var(--t); position: relative;
  display: grid; place-items: center; margin-bottom: 1rem; overflow: hidden; transition: transform .2s;
}
.video__thumb--img { background-size: cover; background-position: center; }
.video__thumb--img::before { content: ""; position: absolute; inset: 0; background: rgba(13,13,40,.18); }
.video:hover .video__thumb { transform: translateY(-4px); }
.play {
  position: relative; z-index: 1; width: 58px; height: 58px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--indigo);
  display: grid; place-items: center; font-size: 1.1rem; padding-left: 3px;
}

/* ===== Detail (přednáška / rozhovor) ===== */
.detail__head {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.2rem, 4vw, 2.5rem) clamp(3rem, 6vw, 5rem);
  display: grid; grid-template-columns: .9fr 1.4fr; gap: var(--gap); align-items: center;
}
.detail__head--stack { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.detail__title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1; }
.detail__host { margin-top: 1rem; font-weight: 600; color: var(--peach); }
.detail__role { display: block; margin-top: .35rem; font-weight: 400; opacity: .85; }
.detail__lead { margin-top: 1.4rem; font-size: 1.1rem; line-height: 1.55; color: rgba(255,255,255,.82); max-width: 40ch; }
.detail__body { padding: clamp(3rem, 6vw, 5rem) clamp(1.2rem, 4vw, 2.5rem); }
.detail__video { max-width: var(--wrap); margin: 2.5rem auto 0; }
.detail__video iframe { width: 100%; aspect-ratio: 16/9; border: 0; }

/* ===== Prose (obsah stránek) ===== */
.prose { max-width: 720px; margin: 0 auto; color: var(--ink); font-size: 1.08rem; line-height: 1.7; }
.prose h2 { font-family: var(--serif); font-weight: 500; font-size: 1.8rem; margin: 2rem 0 .8rem; color: var(--indigo); }
.prose h3 { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; margin: 1.6rem 0 .6rem; }
.prose p { margin-bottom: 1.2rem; }
.prose a { color: var(--indigo); }
.prose blockquote {
  font-family: var(--serif); font-size: 1.6rem; line-height: 1.25;
  color: var(--indigo); border-left: 4px solid var(--green); padding-left: 1.4rem; margin: 2rem 0;
}
.prose img { margin: 1.5rem auto; }

/* ===== Stránkování ===== */
.pagination, .pagination a, .pagination .page-numbers {
  max-width: var(--wrap); margin: 2.5rem auto 0; color: var(--indigo);
}
.pagination .page-numbers { display: inline-block; padding: .4em .8em; font-weight: 700; text-decoration: none; }
.pagination .current { color: var(--green); }

/* ===== Patička ===== */
.site-footer {
  background: var(--navy);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.2rem, 4vw, 2.5rem) 2.5rem;
  display: grid; grid-template-columns: 1fr 2fr; gap: var(--gap); max-width: 100%;
}
.site-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.site-footer h4 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--peach); margin-bottom: 1rem; }
.site-footer a { display: block; color: rgba(255,255,255,.8); text-decoration: none; font-size: .92rem; margin-bottom: .5rem; }
.site-footer a:hover { color: var(--white); }
.site-footer__copy { grid-column: 1 / -1; margin-top: 2rem; font-size: .8rem; opacity: .5; }

/* ===== Responzivita ===== */
@media (max-width: 880px) {
  .hero, .detail__head { grid-template-columns: 1fr; }
  .hero__media, .detail__media { order: -1; }
  .nav { display: none; }
  .cards, .cards--grid, .videos { grid-template-columns: 1fr; }
  .past-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer__cols { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .bubble { transform: none !important; }
}
