/*
 * bootstrap-lite.css
 * Vlastná, minimálna náhrada za Bootstrap 5 CSS (~200 KB) a Bootstrap Icons font.
 * Obsahuje LEN triedy, ktoré sa v šablónach YAQ reálne používajú (overené cez
 * grep naprieč site/templates/*.php). Ak v budúcnosti pridáš do šablóny novú
 * bootstrap-classu, ktorá tu chýba, treba ju sem doplniť.
 *
 * Breakpointy zodpovedajú Bootstrapu 5: md = 768px, lg = 992px.
 */

/* ---------- 1. Základný reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; height: auto; vertical-align: middle; }
a { text-decoration: none; }

/* ---------- 2. Kontajner a grid ---------- */
.container {
  width: 100%;
  padding-right: 12px;
  padding-left: 12px;
  margin-right: auto;
  margin-left: auto;
}
@media (min-width: 768px)  { .container { max-width: 720px; } }
@media (min-width: 992px)  { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
.container-fluid {
  width: 100%;
  padding-right: 12px;
  padding-left: 12px;
  margin-right: auto;
  margin-left: auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -12px;
  margin-left: -12px;
}
.row > * {
  width: 100%;
  padding-right: 12px;
  padding-left: 12px;
}
/* gutter utilities */
.g-0 { margin-right: 0; margin-left: 0; }
.g-0 > * { padding-right: 0; padding-left: 0; }
.g-4 { margin-right: -12px; margin-left: -12px; }
.g-4 > * { padding-right: 12px; padding-left: 12px; margin-bottom: 24px; }

.col-12 { flex: 0 0 auto; width: 100%; }

@media (min-width: 768px) {
  .col-md-3 { flex: 0 0 auto; width: 25%; }
  .col-md-4 { flex: 0 0 auto; width: 33.3333%; }
  .col-md-6 { flex: 0 0 auto; width: 50%; }
  .col-md-9 { flex: 0 0 auto; width: 75%; }
}
@media (min-width: 992px) {
  .col-lg-2 { flex: 0 0 auto; width: 16.6667%; }
  .col-lg-4 { flex: 0 0 auto; width: 33.3333%; }
  .col-lg-8 { flex: 0 0 auto; width: 66.6667%; }
}

/* ---------- 3. Spacing (margin / padding) ---------- */
/* stupnica ako v Bootstrape: 0=0, 1=.25rem, 2=.5rem, 3=1rem, 4=1.5rem, 5=3rem */
.m-0 { margin: 0 !important; }
.mt-1 { margin-top: .25rem !important; }
.mt-2 { margin-top: .5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: .25rem !important; }
.mb-2 { margin-bottom: .5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.my-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.p-2 { padding: .5rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }
.py-2 { padding-top: .5rem !important; padding-bottom: .5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.pb-2 { padding-bottom: .5rem !important; }
.pb-3 { padding-bottom: 1rem !important; }
.me-1 { margin-right: .25rem !important; }
.me-2 { margin-right: .5rem !important; }
.me-3 { margin-right: 1rem !important; }

/* ---------- 4. Display & flex ---------- */
.d-flex { display: flex !important; }
.d-block { display: block !important; }
.d-inline-block { display: inline-block !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.align-items-center { align-items: center !important; }

/* ---------- 5. Text ---------- */
.text-center { text-align: center !important; }
.text-uppercase { text-transform: uppercase !important; }
.text-decoration-none { text-decoration: none !important; }
.fw-bold { font-weight: 700 !important; }
.fs-3 { font-size: 1.75rem !important; }
.fs-5 { font-size: 1.25rem !important; }
.lh-lg { line-height: 2 !important; }
.display-1 { font-size: 5rem; font-weight: 300; line-height: 1.2; }
.display-3 { font-size: 4rem; font-weight: 300; line-height: 1.2; }
.display-4 { font-size: 3.5rem; font-weight: 300; line-height: 1.2; }
.text-white   { color: #fff !important; }
.text-dark    { color: #212529 !important; }
.text-muted   { color: #6c757d !important; }
.text-danger  { color: #dc3545 !important; }
.text-secondary { color: #6c757d !important; }
.text-light   { color: #f8f9fa !important; }
.text-info    { color: #0dcaf0 !important; }

/* ---------- 6. Pozadia ---------- */
.bg-white  { background-color: #fff !important; }
.bg-dark   { background-color: #212529 !important; }
.bg-light  { background-color: #f8f9fa !important; }
.bg-primary{ background-color: #0d6efd !important; }
.bg-info   { background-color: #0dcaf0 !important; }
.bg-danger { background-color: #dc3545 !important; }
.bg-transparent { background-color: transparent !important; }

/* ---------- 7. Okraje, tiene, rozmery ---------- */
.border         { border: 1px solid #dee2e6 !important; }
.border-0       { border: 0 !important; }
.border-top     { border-top: 1px solid #dee2e6 !important; }
.border-bottom  { border-bottom: 1px solid #dee2e6 !important; }
.border-start   { border-left: 1px solid #dee2e6 !important; }
.border-danger    { border-color: #dc3545 !important; }
.border-dark      { border-color: #212529 !important; }
.border-primary   { border-color: #0d6efd !important; }
.border-secondary { border-color: #6c757d !important; }
.rounded       { border-radius: .375rem !important; }
.rounded-3     { border-radius: .5rem !important; }
.rounded-4     { border-radius: 1rem !important; }
.rounded-top   { border-top-left-radius: .375rem !important; border-top-right-radius: .375rem !important; }
.rounded-start { border-top-left-radius: .375rem !important; border-bottom-left-radius: .375rem !important; }
.border-4      { border-width: 4px !important; }
.overflow-hidden { overflow: hidden !important; }
.lead { font-size: 1.25rem; font-weight: 300; }
.shadow      { box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important; }
.shadow-sm   { box-shadow: 0 .125rem .25rem rgba(0,0,0,.075) !important; }
.shadow-lg   { box-shadow: 0 1rem 3rem rgba(0,0,0,.175) !important; }
.shadow-none { box-shadow: none !important; }
.opacity-25 { opacity: .25 !important; }
.opacity-50 { opacity: .5 !important; }
.w-100 { width: 100% !important; }
.w-25  { width: 25% !important; }
.h-100 { height: 100% !important; }
.img-fluid { max-width: 100%; height: auto; }
.sticky-top { position: sticky; top: 0; z-index: 1020; }

/* ---------- 8. Karty (card) ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border: 1px solid rgba(0,0,0,.125);
  border-radius: .375rem;
}
.card-body { flex: 1 1 auto; padding: 1rem; }
.card-title { margin-bottom: .5rem; }
.card-text { margin-bottom: 1rem; }
.card-img-top { width: 100%; border-top-left-radius: calc(.375rem - 1px); border-top-right-radius: calc(.375rem - 1px); }
.card-header {
  padding: .5rem 1rem;
  background-color: rgba(0,0,0,.03);
  border-bottom: 1px solid rgba(0,0,0,.125);
}

/* ---------- 9. Tlačidlá ---------- */
.btn {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  border: 1px solid transparent;
  padding: .375rem .75rem;
  font-size: 1rem;
  border-radius: .375rem;
  background: none;
}
.btn-sm { padding: .25rem .5rem; font-size: .875rem; border-radius: .25rem; }
.btn-dark { color: #fff; background-color: #212529; border-color: #212529; }
.btn-outline-light { color: #f8f9fa; border-color: #f8f9fa; }
.btn-outline-light:hover { color: #212529; background-color: #f8f9fa; }

/* ---------- 10. Badge ---------- */
.badge {
  display: inline-block;
  padding: .35em .65em;
  font-size: .75em;
  font-weight: 700;
  border-radius: .375rem;
  color: #fff;
}

/* ---------- 11. Alert ---------- */
.alert { position: relative; padding: 1rem; margin-bottom: 1rem; border: 1px solid transparent; border-radius: .375rem; }
.alert-warning   { color: #664d03; background-color: #fff3cd; border-color: #ffecb5; }
.alert-success   { color: #0f5132; background-color: #d1e7dd; border-color: #badbcc; }
.alert-secondary { color: #41464b; background-color: #e2e3e5; border-color: #d3d6d8; }
.alert-info      { color: #055160; background-color: #cff4fc; border-color: #b6effb; }
.alert-dark      { color: #fff; background-color: #212529; border-color: #212529; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin-bottom: 1rem;
  list-style: none;
}
.breadcrumb-item + .breadcrumb-item { padding-left: .5rem; }
.breadcrumb-item + .breadcrumb-item::before { content: "/"; padding-right: .5rem; color: #6c757d; }
.breadcrumb-item.active { color: #6c757d; }

/* ---------- 12. Stránkovanie (pagination) ---------- */
.pagination { display: flex; padding-left: 0; list-style: none; }
.page-item { margin: 0 2px; }
.page-link {
  display: block;
  padding: .375rem .75rem;
  color: #0d6efd;
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: .375rem;
}
.page-item.active .page-link,
.page-link.active { background-color: #212529; border-color: #212529; color: #fff; }

/* ---------- 13. Formuláre ---------- */
.form-control {
  display: block;
  width: 100%;
  padding: .375rem .75rem;
  font-size: 1rem;
  color: #212529;
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: .375rem;
}
.form-label { margin-bottom: .5rem; display: inline-block; }
.small { font-size: .875em; }
.input-group { display: flex; flex-wrap: wrap; align-items: stretch; width: 100%; }
.input-group > .form-control { position: relative; flex: 1 1 auto; width: 1%; min-width: 0; }
.input-group > .btn { position: relative; z-index: 2; }

/* ---------- Ikony (náhrada za bootstrap-icons font, viď img/icons.svg) ---------- */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  fill: currentColor;
  vertical-align: -0.125em;
}

/* ---------- 14. Navbar ---------- */
.navbar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-top: .5rem;
  padding-bottom: .5rem;
}
.navbar > .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.navbar-brand { padding-top: .3125rem; padding-bottom: .3125rem; font-size: 1.25rem; }
.navbar-nav {
  display: flex;
  flex-direction: column;
  padding-left: 0;
  margin: 0;
  list-style: none;
  width: 100%;
}
.nav-item { }
.nav-link { display: block; padding: .5rem 1rem; }

/* Toggler (hamburger) tlačidlo pre mobil */
.navbar-toggler {
  padding: .25rem .75rem;
  font-size: 1.25rem;
  line-height: 1;
  background-color: transparent;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: .375rem;
  cursor: pointer;
}
.navbar-toggler-icon {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0,0,0,0.55)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

/* Collapse (skladací obsah pod .navbar-toggler) */
.collapse:not(.show) { display: none; }
.collapse.show { display: block; width: 100%;
  padding: 40px 0;}

/* Nad breakpointom lg je menu vždy zobrazené vodorovne, toggler zmizne */
@media (min-width: 992px) {
  .navbar-expand-lg { flex-wrap: nowrap; }
  .navbar-expand-lg .navbar-toggler { display: none; }
  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
  }
  .navbar-expand-lg .navbar-nav { flex-direction: row; width: auto; }
  .navbar-expand-lg .navbar-nav.mx-auto { margin-left: auto !important; margin-right: auto !important; }
}
