:root {
  --bg-main: #ffffff;         
  --bg-section: #f5f3ee;     
  --bg-article: #ffffff;
  --text-primary: #292929;
  --text-secondary: #3e3a35;
  --green-primary: #292929;
  --green-hover: #160c0c;
  --green-dark: #2a3a4f;
  --text-green: #2a3a4f;

  --accent-gold: #c6a15e;
  --accent-beige: #e7dcc8;

  --neutral-border: #d7d1c7;
  --neutral-light: #f1eee7;
  --neutral-border-soft: #ffffff;

  --font-serif: "Inter", "Segoe UI", sans-serif;
  --font-sans: "Inter", "Segoe UI", sans-serif;
  --radius: 10px;
  --transition: 0.25s ease;
  --shadow: 0 2px 6px rgba(0,0,0,0.06);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.10);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
    font-size: 18px;
    scroll-behavior: smooth;}

body {
  font-family: var(--font-serif);
  color: var(--text-primary);
  background-color: var(--bg-main);
  font-size: 1rem;         
  line-height: 1.7;   
}

a {
  color: var(--green-primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--green-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--green-primary);
  outline-offset: 3px;
}


h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--accent-gold);
  margin-top: 0;
  margin-bottom: 0.6em;
  line-height: 1.25;
}

h1 {
  font-size: 2.4rem;     /* ~38 px */
  text-align: center;
  letter-spacing: 0.4px;
}

h2 {
  font-size: 1.9rem;     /* ~30 px */
  letter-spacing: 0.3px;
  margin-top: 1.8rem;
}

h3 {
  font-size: 1.45rem;    /* ~23 px */
  letter-spacing: 0.2px;
  margin-top: 1.4rem;
}

h4 {
  font-size: 1.2rem;     /* ~19 px */
  margin-top: 1.2rem;
}

p {
  margin-bottom: 1.1em;
  font-size: 1rem;       /* 18 px */
  line-height: 1.7;
}

ul, ol {
  margin: 0.4rem 0 1.2rem 1.4rem;
  padding: 0;
}
ul li, ol li {
  margin: 0.25rem 0;
  line-height: 1.55;
}

.site-header {
    text-align: center;
}

.hamburger {
    display: none;
    cursor: pointer;
    width: 40px;
    height: 32px;
    margin: 12px auto 0 auto;
    padding: 0;
    border: none;
    background: none;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 4px;
    margin: 6px 0;
    background-color: var(--green-dark);
    border-radius: 3px;
    transition: 0.3s ease;
}

.nav-wrapper {
    margin-top: 15px;
}

nav {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav-container {
    display: flex;
    gap: 18px;
    transition: max-height 0.4s ease;
    overflow: hidden;
    max-height: 1000px;
}

.nav-container a {
    padding: 10px 16px;
    border-radius: var(--radius);
    font-size: 1rem;
    transition: all var(--transition);
}

.nav-container a:hover {
    background-color: var(--accent-beige);
    color: var(--accent-gold);
    transform: translateY(-2px);
}

main {
    max-width: 1200px;
    width: 100%;
    margin: 30px auto;
    background-color: var(--bg-article);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    animation: fadeIn 0.6s ease-in;
    font-size: 1.05rem;
    line-height: 1.7;
}
main p {
  margin-bottom: 1.1em;
}

main a {
  position: relative;
}

main a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: var(--green-primary);
  transform: scaleX(0);
  transform-origin: left; /* ← toto je kľúčové */
  transition: transform var(--transition);
}

main a:hover::after {
  transform: scaleX(1);
}

main img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 25px auto;
  border-radius: 6px;
}

#cardGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 30px;
}

#cardGrid.list {
  grid-template-columns: 1fr;
}

.card {
  background-color: var(--bg-article);
  border: 1px solid var(--neutral-border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  font-size: 1rem; /* 18 px */
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

#cardGrid.list .card {
  box-shadow: none;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--neutral-border);
  padding: 18px 0;
  transform: none;
}

.card .badge {
  display: inline-block;
  background-color: var(--accent-gold);
  color: white;
  padding: 5px 12px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: bold;
  margin-bottom: 12px;
  font-family: var(--font-sans);
}

.card .title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--accent-gold);
  transition: color var(--transition);
}

.card .title:hover {
  color: var(--accent-gold);
}

.card .quote {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 14px;
  font-size: 1rem;
}

.card .source {
  color: var(--text-green);
  font-size: 0.95rem;
  display: none;
}

#controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 25px;
  font-family: var(--font-sans);
  font-size: 1rem;
}

#controls input,
#controls select,
#controls button {
  width: 100%;
  padding: 12px 16px;
  background-color: var(--bg-article);
  border: 1px solid var(--neutral-border);
  border-radius: var(--radius);
  transition: border var(--transition), box-shadow var(--transition);
  font-size: 1rem;
}

#controls input:focus,
#controls select:focus,
#controls button:focus {
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px rgba(92,122,99,0.25);
}

.hidden { display: none; }
.highlight { background-color: var(--bg-section); }

/* Animácia */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.svetlo-rocnik {
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.7;
  font-size: 1rem; /* 18 px */
}

.svetlo-rocnik .rocnik-uvod {
  margin-bottom: 2.5rem;
}

.svetlo-rocnik .rocnik-uvod h1 {
  margin-bottom: 1rem;
}

.svetlo-rocnik .vydania h2 {
  margin-bottom: 1.5rem;
}

/* Odsadenie zoznamu */
.svetlo-rocnik ol {
  padding-left: 1.4rem;
  margin-left: 0;
}

/* Každá položka zoznamu */
.svetlo-rocnik ol li {
  margin-bottom: 1rem;
  padding-left: 0.2rem;
  line-height: 1.6;
}

/* Zvýraznenie podčiarknutých častí */
.svetlo-rocnik ol li u {
  font-weight: 600;
}

/* Navigácia späť */
.svetlo-rocnik .navigacia-spat {
  margin-top: 3rem;
  font-size: 0.95rem;
}

/* ===========================
   DROPDOWN
=========================== */

.custom-dropdown {
  position: relative;
  width: 100%;
  max-width: 280px;
  font-size: 1rem;
  cursor: pointer;
}

.dropdown-selected {
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--neutral-border);
  border-radius: 6px;
  transition: 0.2s ease;
}

.dropdown-selected:hover {
  border-color: #b8c7b0;
}

.dropdown-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--neutral-border);
  border-radius: 6px;
  margin-top: 4px;
  padding: 0;
  list-style: none;
  display: none;
  max-height: 240px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.dropdown-options li {
  padding: 12px 16px;
  transition: 0.15s ease;
  font-size: 1rem;
}

.dropdown-options li:hover {
  background: #f3f3f3;
}

ul {
  margin: 0 0 1rem 1.2rem;
  padding: 0;
  list-style-position: outside;
}

ul li {
  margin: 0.25rem 0;
  line-height: 1.55;
}

.article-content ul {
  margin: 0.4rem 0 1.1rem 1.4rem;
  padding: 0;
}

.article-content ul li {
  margin: 0.2rem 0;
  line-height: 1.55;
  padding-left: 0.2rem;
}

.article-content p + ul {
  margin-top: 0.3rem;
}

.article-content ul + p {
  margin-top: 0.6rem;
}

.article-content ul ul {
  margin-left: 1.2rem;
  margin-top: 0.2rem;
  margin-bottom: 0.6rem;
}

.article-content img,
.book-image {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
}

footer {
  background-color: var(--neutral-border-soft);
  text-align: center;
  padding: 18px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

#noResults {
  text-align: center;
  margin: 40px auto;
  width: 100%;
  color: var(--green-dark);
}

#resultCount {
  text-align: center;
  color: var(--green-primary);
}

.search-container {
    margin-top: 30px;
}

/* Ale zabránime tomu, aby ovplyvňovala sticky filter */
header {
    overflow: visible !important;
}

header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    padding-bottom: 16px;

}

.header-top {
    padding-top: 20px;
    /*padding-bottom: 20px;*/
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap; /* umožní zalomenie */
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: var(--text-secondary);
    padding-left: 0;
    width: 100%;
    justify-content: flex-start;
    text-align: left;
}

.breadcrumb a {
    color: var(--green-primary);
    text-decoration: none;
    font-weight: 500;
    white-space: normal; /* povolí zalomenie */
}

.breadcrumb .sep {
    color: var(--text-secondary);
    opacity: 0.6;
    font-size: 0.85rem;
}

.search-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px;
    font-family: var(--font-sans);
    color: var(--text-primary);
}

/* Vyhľadávací formulár */
.search-container .search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.search-container .search-form input[type="text"] {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid var(--neutral-border);
    border-radius: var(--radius);
    font-size: 1rem;
    background: var(--bg-main);
    color: var(--text-primary);
    transition: var(--transition);
}

.search-container .search-form input[type="text"]:focus {
    border-color: var(--green-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(41, 41, 41, 0.15);
}

.search-container .search-form button {
    padding: 12px 18px;
    background: var(--green-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.search-container .search-form button:hover {
    background: var(--accent-gold);
}

/* Počítadlo výsledkov */
.search-container .result-count {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Výsledky – moderné karty */
.search-container .result-item {
    /*background: var(--neutral-light);*/
    border: 1px solid var(--neutral-border);
    padding: 18px;
    border-radius: var(--radius);
    margin-bottom: 18px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.search-container .result-item:hover {
    background: var(--bg-section);
    box-shadow: var(--shadow-hover);
}

/* Nadpis výsledku */
.search-container .result-item h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-gold);
    font-family: var(--font-sans);
}

/* Odkazy */
.search-container .result-item a {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.search-container .result-item a:hover {
    color: var(--green-hover);
    /*text-decoration: underline;*/
}

/* Snippet */
.search-container .result-item .snippet {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.55;
    font-size: 0.95rem;
}

.btn-back {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 18px;
    background: #b8860b;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.btn-back:hover {
    background: #a07509;
}

#controls {
  background-color: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding: 14px 0px;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
  z-index: 50;
}

#controls.sticky {
  position: sticky;
  top: 0;
  background-color: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.news {
  /*background: var(--bg-section);*/
  border: 1px solid var(--neutral-border);
  border-radius: var(--radius);
  /*padding: 28px 32px;*/
  padding: 20px 20px;
  margin: 40px 0;
  box-shadow: var(--shadow);
  font-family: var(--font-serif);
  line-height: 1.7;
  color: var(--text-primary);
}

.news h3 {
  font-size: 1.55rem;
  color: var(--accent-gold);
  margin-bottom: 0.4rem;
  letter-spacing: 0.3px;
  line-height: 1.3;
}

.news .date {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  font-style: italic;
}

.news p {
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.7;
}

.news ul {
  margin: 0.6rem 0 1.4rem 1.4rem;
  padding: 0;
  list-style-position: outside;
}

.news ul li {
  margin: 0.3rem 0;
  line-height: 1.55;
  color: var(--text-primary);
}

.news ul li strong {
  color: var(--text-primary);
  font-weight: normal;
}

.news a {
  color: var(--green-primary);
  position: relative;
  text-decoration: none;
  transition: color var(--transition);
}

.news a:hover {
  color: var(--green-hover);
}

.news a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: var(--green-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.news a:hover::after {
  transform: scaleX(1);
}