/* ========================================= */
/* DESKTOP TYPOGRAFIA (901px+)               */
/* ========================================= */

html {
  font-size: 18px;
}

h1 { font-size: 2.4rem; line-height: 1.25; margin-bottom: 1.2em; }
h2 { font-size: 2rem;   line-height: 1.3;  margin-bottom: 1.2em; }
h3 { font-size: 1.6rem; line-height: 1.35; margin-bottom: 1.2em; }
h4 { font-size: 1.3rem; line-height: 1.4;  margin-bottom: 1.2em; }

p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.2em;
}

small {
  font-size: 0.875rem;
}

section {
  margin-bottom: 2.5rem;
}

/* Desktop navigácia (hamburger skrytý) */
.hamburger {
  display: none;
}

/* ========================================= */
/* MOBIL (0–600px)                           */
/* ========================================= */

@media (max-width: 600px) {

  html {
    font-size: 16px;
  }

  main {
    padding: 18px;
    margin: 15px auto;
    border-radius: 8px;
    font-size: 1rem;
  }

  h1 { font-size: 1.9rem; line-height: 1.3; }
  h2 { font-size: 1.55rem; line-height: 1.35; }
  h3 { font-size: 1.25rem; line-height: 1.4; }
  h4 { font-size: 1.1rem; line-height: 1.45; }

  p {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  small {
    font-size: 0.8rem;
  }

  /* Navigácia – hamburger */
  .hamburger {
    display: block;
  }

  .nav-container {
    flex-direction: column;
    align-items: center;
    max-height: 0;
    overflow: hidden;
    gap: 8px;
  }

  .nav-container.active {
    max-height: 100vh;
    margin-top: 10px;
  }

  .nav-container a {
    width: 100%;
    text-align: center;
    padding: 12px 0;
    font-size: 0.95rem;
  }

  .nav-container a.active {
    background-color: var(--accent-beige);
    color: var(--accent-gold);
  }

  /* Ovládacie prvky */
  #controls {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 18px;
  }

  #controls input,
  #controls select,
  #controls button {
    padding: 12px;
    font-size: 1rem;
  }

  /* Grid kariet */
  #cardGrid {
    gap: 16px;
  }

  .card {
    padding: 16px;
    border-radius: 8px;
  }

  .card .title,
  .card .quote,
  .card .source {
    font-size: 1rem;
  }

  .card .badge {
    font-size: 0.8rem;
    padding: 4px 10px;
  }

  footer {
    padding: 14px;
    font-size: 0.85rem;
  }

  .no-mobile {
    display: none;
  }
}

/* ========================================= */
/* TABLET (601–900px)                        */
/* ========================================= */

@media (min-width: 601px) and (max-width: 900px) {

  html {
    font-size: 17px;
  }

  main {
    font-size: 1rem;
    padding: 28px;
    margin: 20px auto;
    border-radius: 10px;
  }

  h1 { font-size: 2.1rem; line-height: 1.28; }
  h2 { font-size: 1.7rem; line-height: 1.32; }
  h3 { font-size: 1.35rem; line-height: 1.38; }
  h4 { font-size: 1.2rem; line-height: 1.42; }

  p {
    font-size: 1rem;
    line-height: 1.7;
  }

  small {
    font-size: 0.85rem;
  }

  /* Navigácia – stále hamburger */
  .hamburger {
    display: block;
  }

  .nav-container {
    flex-direction: column;
    align-items: center;
    max-height: 0;
    overflow: hidden;
    gap: 12px;
  }

  .nav-container.active {
    max-height: 100vh;
    margin-top: 10px;
  }

  .nav-container a {
    width: 100%;
    text-align: center;
    padding: 12px 0;
    font-size: 1rem;
  }

  .nav-container a.active {
    background-color: var(--accent-beige);
    color: var(--accent-gold);
  }

  /* Ovládacie prvky */
  #controls {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 22px;
  }

  #controls input,
  #controls select,
  #controls button {
    padding: 12px 14px;
    font-size: 1rem;
  }

  #cardGrid {
    gap: 20px;
  }

  .card {
    padding: 20px;
    border-radius: 10px;
  }

  .card .badge {
    font-size: 0.85rem;
    padding: 5px 12px;
  }

  footer {
    padding: 16px;
    font-size: 0.9rem;
  }
}

@media (max-width: 900px) {
  #controls {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: #ffffff;
    padding-top: 12px;
    padding-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    border-bottom: 1px solid #d6d6d6;
  }
}