/* =========================================================
   RESET / FONTS
   ========================================================= */
@import url(normalize.css);

@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');


/* =========================================================
   VARIABLES
   ========================================================= */
:root {
  --color-primary: #ffffff;
  --color-secondary: #222424;
  --color-link: #F1B616;
  --color-gray: #666666;

  --content-max: 1240px;
  --gutter: 20px;
  --header-h: 3cm;

  --btn-h: 60px;
  --btn-w: 240px;
  --btn-w-lg: 350px;
  --radius: 10px;
}


/* =========================================================
   GLOBAL BASE
   ========================================================= */
* { box-sizing: border-box; }

html, body { max-width: 100%; overflow-x: hidden; }

img { display: block; max-width: 100%; height: auto; }

/* Typografie */
p, span, a, .subheader, li {
  font-family: "Roboto", sans-serif;
}

h1, h2, h3 {
  font-family: "Lato", sans-serif;
  font-weight: 800;
  text-align: center;
  overflow: hidden; 
}

/* Nadpisy */
h1, h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

h1 > span {
  color: var(--color-link);
  display: block;
  font-size: larger;
  font-family: inherit;
}

/* Základ textů */
p {
  text-align: justify;
  text-justify: inter-word;
  overflow-wrap: anywhere; 
  color: var(--color-gray);
}

/* Odstavce, které obsahují tlačítko – vycentrovat */
p:has(> .button) {
  text-align: center;
  margin-top: 2rem;
}

p, a, span { font-size: 1rem; }

li {
  font-size: 115%;
  color: var(--color-gray);
}

/* Odkazy: default */
a { color: var(--color-link); }

/* Pomocné */
.subheader {
  font-weight: 300;
  text-transform: uppercase;
}

/* Skrytý nadpis pro přístupnost */
.visually-hidden {
  position: absolute !important; 
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* =========================================================
   LAYOUT / CONTAINERS
   ========================================================= */
section, header, footer {
  max-width: var(--content-max);
  width: 100%;
}

section { margin: 30px auto; }

.container {
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Barevné režimy */
.container.light {
  background-color: var(--color-primary);
  color: var(--color-secondary);
}

.container.dark {
  background-color: var(--color-secondary);
  color: var(--color-primary);
}
 
.container.dark a { color: inherit; }

/* =========================================================
   HEADER / NAV
   ========================================================= */

header #logo .logo__img {
  height: 2.2cm;
  width: auto;
  max-width: none;
  flex-shrink: 0;
}
   header {
  margin: auto;
  height: var(--header-h);

  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* HTML je header--sticky na .container,
   takže sticky musí být na tom kontejneru */
.header--sticky {
  position: sticky;
  top: 0;
  z-index: 10;
}

nav {
  display: flex;
  align-items: center;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 10px;
  padding: 0;
  margin: 0;
}

nav li { padding-bottom: 1.2em; }

nav a {
  color: var(--color-secondary);
  text-decoration: none;
}

/* Logo  */
.logo__img {
  height: 2.2cm;  
  width: auto;    
  max-width: none;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .logo__img { height: 2.5cm; max-width: 3cm; }
}




/* =========================================================
   FOOTER
   ========================================================= */
footer {
  margin: auto;
  height: var(--header-h);

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

footer img { height: 40px; width: auto; }


/* =========================================================
   BUTTON
   ========================================================= */
.button {
  width: var(--btn-w);
  height: var(--btn-h);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin: 0 auto;
  border-radius: var(--radius);

  text-decoration: none;
  text-transform: uppercase;
}

/* barevné varianty tlačítka podle kontejneru */
.container.light .button {
  background-color: var(--color-secondary);
  color: var(--color-primary);
}

.container.dark .button {
  background-color: var(--color-primary);
  color: var(--color-secondary);
}

@media (min-width: 1024px) {
  .button { width: var(--btn-w-lg); }
  #uvod .button { margin: 0; }
}


/* =========================================================
   ÚVOD (index)
   ========================================================= */
#uvod {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

#uvod__obrazek {
  display: none;
  position: relative;
  width: 100%;
}

#uvod__obrazek img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.uvod__text > p { font-size: 18.4px; }

@media (min-width: 1024px) {
  #uvod {
    flex-direction: row;
    gap: 56px;
  }

  #uvod h1 {
    text-align: left;
    margin-bottom: 32px;
  }

  #uvod__obrazek { display: block; }
  .uvod__text { width: 100%; }
}


/* =========================================================
   DOVEDNOSTI (index)
   ========================================================= */
.comumime {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dovednosti {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.dovednost {
  background-color: var(--color-primary);
  color: var(--color-secondary);
  padding: 32px;

  display: flex;
  flex-direction: column;
  align-items: center;

  
  text-align: left;
}

.dovednost h3 { text-align: center; }

.dovednost img {
  padding-top: 2svh;
  width: 10dvw;
  height: auto;
}

/* specifické obrázky */
.dovednost img#dovimg1,
.dovednost img#dovimg2 {
  width: 15dvw;
}

@media (min-width: 1024px) {
  .dovednosti { flex-direction: row; }

  
  .dovednost { max-width: 30dvw; }

  .dovednost img { height: 60px; }
}


/* =========================================================
   BLOG / INFO
   ========================================================= */
.blogposts {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.blogpost > p {
  padding-bottom: 5px; 
}

.blogpost > img,
.blogpost img#isvg1,
.blogpost img#isvg2 {
  margin: 0 auto;
}

/* obrázky v info */
#isvg1 {
  height: 20svh;
  width: 20svw;
}

#isvg2 {
  height: 30svh;
  width: 30svw;
  max-height: 30svh;
}


.blogpost > img {
  height: 25svh;
  max-height: 25svh;
  width: auto;
  max-width: 25svw;
  min-width: 200px;
  min-height: 200px;
}


/* =========================================================
   KONTAKT (kontakt.html)
   ========================================================= */
#formular {
  display: flex;
  justify-content: center;
  align-items: center;
}


#kontakt {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: flex-start;

  padding-bottom: 50px;
  gap: 2rem;
}

.kontakt__text {
  display: flex;
  flex-direction: column;
  flex: 1;
}


.kontakt__text > p:has(a) {
  display: inline-flex;
  gap: 0.5rem;
  align-items: baseline;
}

/* obrázek na kontaktu */
#kontakt > img,
#kontakt > img#ksvg2 {
  width: 200px;
  height: 280px;
  max-width: 280px;
  max-height: 280px;
  margin-top: -4svh;
  align-self: flex-start;
}


@media (max-width: 575px) {
  #kontakt {
    display: grid;
    gap: 5rem;
    justify-items: center;
    justify-content: center;
  }

  #kontakt > * { justify-content: center; }

  .kontakt__text > p { text-align: center; }

  
  body p { text-align: unset; }
}

.actions-row{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: 16px;
}

.button--ghost{
  background: transparent;
  border: 2px solid currentColor;
}

.hint{
  opacity: .85;
  text-align: center;
}

.book-card{
  background: rgba(255,255,255,.06);
  border-radius: 16px;
  padding: 20px;
  margin-top: 16px;
}

.book-card h3{ margin-top: 0; }

.download-row{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.download-btn[aria-disabled="true"]{
  opacity: .5;
  pointer-events: none;
}

.auth-modal::backdrop{
  background: rgba(0,0,0,.55);
}

.auth-modal__content{
  max-width: 520px;
  width: calc(100% - 24px);
  border: 0;
  border-radius: 16px;
  padding: 20px;
}

.field{
  display:flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0;
}

.field input{
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.2);
  padding: 0 12px;
}

.error{
  color: #ffb4b4;
}

.share-icons {
  display: flex;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
}

.share-icon {
  font-size: 0.9rem;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.share-icon:hover {
  opacity: 1;
  transform: scale(1.1);
}

.hero-illustration {
  margin: 1.5rem 0 1.5rem;
  text-align: center;
}

.hero-illustration img {
  max-width: 260px;
  width: 100%;
  height: auto;
  opacity: 0.9;
}

.hero-illustration img {
  filter: sepia(10%);
}

.hero-illustration {
  display: flex;
  justify-content: center;
  margin: 1.25rem 0 1.5rem;
}

.hero-illustration img {
  max-width: 260px;
  width: 100%;
  height: auto;
  opacity: 0.9;
}

@media (max-width: 480px) {
  .hero-illustration img {
    max-width: 180px;
  }
}

/* ===== Digitální edice ===== */

.knihy {
    max-width: 900px;
    margin: auto;
}

.knihy h1 {
    margin-bottom: 1rem;
}

.knihy p {
    max-width: 700px;
}

.dovednost .button {
    display: inline-block;
    margin-top: 10px;
}

.dovednost ul {
    margin-bottom: 10px;
}

/* připravované edice */

.dovednost.pripravuje {
    opacity: 0.8;
}

.dovednost.pripravuje h3 {
    font-style: italic;
}

.dovednost:hover {
    transform: translateY(-2px);
    transition: 0.2s ease;
}

/* ===== Digitální edice ===== */

.comumime {
    text-align: center;
}

.dovednosti {
    justify-content: center;
}

/* karta edice */

.edice-karta {
    border: 2px solid #f2a03d;
    border-radius: 10px;
    padding: 20px;
    background: #fffaf3;
}

/* zvýrazněné tlačítko */

.button-edice {
    background: #f2a03d;
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 6px;
    transition: 0.2s;
}

.button-edice:hover {
    background: #e08f2c;
    transform: translateY(-2px);
}

/* centrování tlačítka */

.edice-tlacitko {
    margin-top: 15px;
    text-align: center;
}

/* tlačítko otevřít edici */

.button-edice {
    background: #ffffff;
    color: #f28c28;          /* oranžový text */
    font-weight: 700;        /* tučný nápis */
    font-size: 1.05rem;
    padding: 12px 28px;
    border-radius: 6px;
    border: 2px solid #f28c28;
    display: inline-block;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
}

/* efekt při přejetí myší */

.button-edice:hover {
    background: #f28c28;
    color: #ffffff;
    transform: translateY(-2px);
}

.edice-tlacitko {
    text-align: center;
    margin-top: 18px;
}

/* zvýraznění odkazu na traktát v menu */

.menu-edice a {
    color: #f28c28;
    font-weight: 600;
}

.menu-edice a:hover {
    text-decoration: underline;
}


/* tlačítka pro stahování traktátu */

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.button-row .primary {
    font-weight: 700;
}


/* drobečková navigace edice */

.edition-breadcrumbs {
    max-width: 1100px;
    margin: 1.2rem auto 0 auto;
    padding: 0 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
}

.edition-breadcrumbs a {
    color: #f28c28;
    text-decoration: none;
    font-weight: 600;
}

.edition-breadcrumbs a:hover {
    text-decoration: underline;
}

.edition-breadcrumbs .crumb-sep {
    margin: 0 0.45rem;
    color: #999;
}

.edition-breadcrumbs .current-crumb {
    color: #333;
    font-weight: 600;
}

/* tiráž digitální edice */

.tiraz {
max-width: 520px;
margin: 2rem auto;
text-align: center;
line-height: 1.8;
font-size: 0.95rem;
color: #444;
}

.tiraz-title {
font-size: 1.1rem;
margin-bottom: 1.4rem;
}

.tiraz-license {
margin-top: 1.4rem;
}

.tiraz a {
color: #f28c28;
text-decoration: none;
}

.tiraz a:hover {
text-decoration: underline;
}

.tiraz-cc {
margin-top: 0.5rem;
}