/* --- Google Font Cinzel --- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700&display=swap');

/* --- Telo stránky a pozadie ---
   Pôvodne odkazovalo na images/tapeta.jpeg, ktorý v priečinku vôbec
   neexistoval (404) - stránka sa reálne zobrazovala len na plochej
   farbe. Nahradené vlastným "heraldickým" pozadím (hlboký gradient +
   jemný zlatý kosoštvorcový vzor), ladí s erbovým štýlom (Cinzel,
   zlatá, tmavozelená) a funguje všade bez sťahovania súborov. */
body {
  font-family: 'Arial', sans-serif;
  font-size: 22px;
  color: #fff;
  background-color: #071c12;
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(20, 90, 55, .55) 0%, rgba(4, 14, 9, .97) 65%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cpath d='M40 2 L78 40 L40 78 L2 40 Z' stroke='%23d4af37' stroke-width='1' fill='none' stroke-opacity='0.055'/%3E%3Ccircle cx='40' cy='40' r='2' fill='%23d4af37' fill-opacity='0.05'/%3E%3C/svg%3E");
  background-repeat: no-repeat, repeat;
  background-size: cover, 90px 90px;
  margin: 0;
  position: relative;
}

/* Jemný vertikálny gradient pre lepšiu čitateľnosť textu */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(0, 45, 28, .5) 0%, rgba(0, 12, 8, .8) 100%);
  z-index: -1;
}

/* --- Bočný panel (sidebar) --- */
.sidebar {
  width: 220px;
  background: linear-gradient(to bottom, #013220, #00261A);
  padding-top: 20px;
  min-height: 100vh;
  position: fixed;
  top: 0; left: 0;
  z-index: 2;
  box-sizing: border-box;
  overflow-y: auto;
}

.sidebar ul { list-style: none; padding: 0; margin: 0; }

.sidebar ul li a {
  display: block;
  text-align: center;
  padding: 12px 20px;
  color: #ecf0f1;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  transition: background-color .3s ease, color .3s ease;
}

.sidebar ul li a:hover,
.sidebar ul li a:focus,
.sidebar ul li a.active {
  background-color: #145A32;
  color: #d4af37;
  border-radius: 4px;
}

.sidebar-logo { margin: 20px 0; text-align: center; }
.sidebar-logo img { width: 180px; height: auto; }
.sidebar-logo .logo-subtext {
  font-size: 12px;
  color: #d4af37;
  margin-top: 8px;
  font-family: 'Cinzel', serif;
  line-height: 1.4;
}

/* --- Hlavný kontajner --- */
.container {
  display: flex;
  margin-left: 220px;
}

/* --- Obsah stránky --- */
.content {
  flex: 1;
  padding: 30px 40px;
  position: relative;
  z-index: 1;
}

/* --- Banner --- */
.header-image {
  position: relative;
  width: 100%;
  height: 250px;
  background: url('images/pozadie.jpeg') no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-image h1 {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 4rem;
  color: #d4af37;
  text-shadow: -2px -2px 0 #000, 0 0 8px rgba(0,0,0,.7);
  margin: 0;
}

.header-image .subtitle {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  color: #f5f5f5;
  text-shadow: 1px 1px 5px rgba(0,0,0,.5);
  font-family: 'Cinzel', serif;
}

/* --- Nadpisy --- */
h1, h2, h3 {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  color: #d4af37;
  text-shadow: 2px 2px 8px rgba(0,0,0,.5);
  margin: .5em 0;
}
h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; text-shadow: 1px 1px 4px rgba(0,0,0,.3); }

/* --- Obrázky --- */
img {
  max-width: 100%;
  height: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
  border-radius: 10px;
  transition: transform .3s ease, box-shadow .3s ease;
}
img:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(212,175,55,.5);
}

/* --- Popis pod obrázkom (figure/figcaption) --- */
.image-column figure { margin: 0 0 20px; }
.image-column figcaption {
  font-size: .95rem;
  font-style: italic;
  color: #d4af37;
  text-align: center;
  margin-top: 8px;
  line-height: 1.4;
}

/* --- Sekcie --- */
section {
  position: relative;
  padding: 30px 20px;
  margin-bottom: 40px;
  background-color: rgba(0, 66, 37, .8);
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  border: 2px solid #d4af37;
  color: #fff;
  /* Jemné zlaté kosoštvorcové ornamenty vo všetkých 4 rohoch sekcie */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M15 2 L28 15 L15 28 L2 15 Z' stroke='%23d4af37' stroke-width='1.5' fill='none' opacity='0.5'/%3E%3Ccircle cx='15' cy='15' r='2' fill='%23d4af37' opacity='0.5'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M15 2 L28 15 L15 28 L2 15 Z' stroke='%23d4af37' stroke-width='1.5' fill='none' opacity='0.5'/%3E%3Ccircle cx='15' cy='15' r='2' fill='%23d4af37' opacity='0.5'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M15 2 L28 15 L15 28 L2 15 Z' stroke='%23d4af37' stroke-width='1.5' fill='none' opacity='0.5'/%3E%3Ccircle cx='15' cy='15' r='2' fill='%23d4af37' opacity='0.5'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M15 2 L28 15 L15 28 L2 15 Z' stroke='%23d4af37' stroke-width='1.5' fill='none' opacity='0.5'/%3E%3Ccircle cx='15' cy='15' r='2' fill='%23d4af37' opacity='0.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  background-position: 8px 8px, calc(100% - 8px) 8px, 8px calc(100% - 8px), calc(100% - 8px) calc(100% - 8px);
  background-size: 22px 22px, 22px 22px, 22px 22px, 22px 22px;
}
section p { line-height: 1.6; font-size: 1.2rem; color: #f5f5f5; }

/* --- Submenu panel ---
   Rozbaľuje sa priamo pod položkou v sidebar-i (nie ako "lietajúci"
   panel na fixnej súradnici) - funguje rovnako na mobile, tablete
   aj desktope, bez ohľadu na to, akú šírku má práve sidebar. */
.has-submenu { position: relative; }
.has-submenu .arrow { float: right; transition: transform .3s ease; }
.has-submenu.open .arrow,
.has-submenu:hover .arrow { transform: rotate(90deg); }

.submenu-panel {
  display: none;
  flex-direction: column;
  width: 100%;
  background: rgba(0, 38, 26, .95);
  border-left: 3px solid #d4af37;
  box-sizing: border-box;
}

.submenu-panel a {
  display: block;
  padding: 10px 20px 10px 34px;
  color: #ecf0f1;
  text-decoration: none;
  font-size: 15px;
  transition: background .3s ease, color .3s ease, padding-left .3s ease;
}
.submenu-panel a:hover,
.submenu-panel a.active { background: #145A32; color: #d4af37; padding-left: 40px; }

.has-submenu.open .submenu-panel { display: flex; }

/* Na počítači sa dá submenu otvoriť aj len prejdením myšou */
@media (min-width: 993px) {
  .has-submenu:hover .submenu-panel { display: flex; }
}

/* --- Galéria --- */
.galeria-section {
  width: 100%;
  padding: 40px 20px;
  background: rgba(0, 66, 37, .9);
  box-sizing: border-box;
}
.galeria-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #d4af37 !important;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  text-shadow: 2px 2px 6px rgba(0,0,0,.6);
}
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(280px,1fr));
  gap: 15px;
  max-width: 1600px;
  margin: 0 auto;
}
.galeria-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,.5);
  transition: transform .3s ease;
}
.galeria-grid img:hover { transform: scale(1.05); }
.galeria-grid .wide { grid-column: span 2; aspect-ratio: 2/1; }
.galeria-grid .tall { grid-row: span 2; aspect-ratio: 1/2; }

/* --- Responzívnosť --- */
@media (max-width: 992px) {
  .container { margin-left: 0; flex-direction: column; }
  .sidebar { position: relative; width: 100%; height: auto; }
}
@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
  section { padding: 20px 15px; }
  .o-mne, .uvod-section, .onas-section, .kangal-section { flex-direction: column; }
  .header-image { height: 200px; }
  .header-image h1 { font-size: 2.2rem; top: 28%; }
  .header-image .subtitle { font-size: 1rem; top: 72%; width: 90%; text-align: center; }
}

/* --- Špecifické layouty --- */
.o-mne { display: flex; align-items: flex-start; gap: 30px; }
.o-mne .foto { flex: 0 0 250px; max-width: 250px; border-radius: 10px; }
.o-mne .text { flex: 1; }

.steniatka-image img {
  max-width: 180px;
  width: 60%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,.5);
  margin-bottom: 15px;
}

.page-galeria .header-image h1,
.page-galeria .header-image .subtitle { display: none; }

.parent { display: flex; align-items: center; gap: 20px; margin: 20px 0; flex-wrap: wrap; }
.parent-text { flex: 1; }
.parent-photo img { max-width: 150px; border-radius: 10px; }

.vrh-gallery { display: flex; gap: 15px; margin-top: 20px; flex-wrap: wrap; }
.vrh-gallery img { flex: 1; max-width: 40%; border-radius: 10px; }

.fenky {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px; /* medzera medzi obrázkami */
}

.fenky img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.psikovia {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* min. šírka 220px */
  gap: 15px;
  margin-top: 20px;
}

.psikovia img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  object-fit: cover;
}

.vrh1 img {
  width: 60%; max-width: 60%; height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,.5);
}
#stena31a, #stena31b, #stena31c, #stena31d, #stena31e, #stena31f, 
#stena31g, #stena31h, #stena31i, #stena31j, #stena31k, #stena31l, 
#stena31m, #stena31n {
  width: 250px;   /* tu si nastavíš veľkosť podľa seba – napr. 200–350 px */
  height: auto;   /* zachová proporcie */
  border-radius: 12px; /* zaoblené rohy (nepovinné) */
  box-shadow: 0 4px 10px rgba(0,0,0,0.5); /* tieň pre efekt */
  margin: 10px;   /* rozostup medzi fotkami */
}
#stena18a, #stena18b, #stena18c, #stena18d, #stena18e,{
  width: 250px;   /* tu si nastavíš veľkosť podľa seba – napr. 200–350 px */
  height: auto;   /* zachová proporcie */
  border-radius: 12px; /* zaoblené rohy (nepovinné) */
  box-shadow: 0 4px 10px rgba(0,0,0,0.5); /* tieň pre efekt */
  margin: 10px;   /* rozostup medzi fotkami */
}
#stena5a, #stena5b, #stena5c, #stena5d, #stena5e, #stena5f, #stena5g,{
  width: 250px;   /* tu si nastavíš veľkosť podľa seba – napr. 200–350 px */
  height: auto;   /* zachová proporcie */
  border-radius: 12px; /* zaoblené rohy (nepovinné) */
  box-shadow: 0 4px 10px rgba(0,0,0,0.5); /* tieň pre efekt */
  margin: 10px;   /* rozostup medzi fotkami */
}


.uvod-section .image img {
  width: 450px;   /* zmenší šírku fotky */
  height: auto;   /* zachová pomer strán */
  border-radius: 10px; /* pekne zaoblí rohy, ak chceš */
}


.video-heading {
  text-align: center;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  font-family: 'Cinzel', serif;
  border-bottom: 2px solid #ccc;
  display: inline-block;
  padding-bottom: 0.3rem;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.video-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.video-item {
  text-align: center;
}

.video-item h4 {
  font-family: 'Cinzel', serif;
  margin-bottom: .5rem;
  font-size: 1.1rem;
}

.video-item video {
  width: 100%;
  max-width: 800px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
  .video-gallery {
    grid-template-columns: 1fr;
  }
  .video-heading {
    text-align: center;
  }
}


/* --- Jazykový prepínač --- */
.lang-switch {
  position: absolute;
  top: 10px; right: 12px;
  display: flex;
  gap: .5rem;
  align-items: center;
  z-index: 20;
}
.lang-btn {
  border: 1px solid #d4af37;
  background: transparent;
  color: #d4af37;
  padding: .3rem .6rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}
.lang-btn.active,
.lang-btn:hover { background: #d4af37; color: #111; }
/* --- VYLEPŠENÝ VZHĽAD MENU --- */
nav.sidebar ul li a {
  transition: all 0.3s ease; /* Plynulá animácia */
  border-radius: 6px; /* Jemne zaoblené rohy */
  position: relative;
}

/* Efekt pri prejdení myšou (Hover) */
nav.sidebar ul li a:hover {
  background-color: rgba(200, 160, 100, 0.15); /* Jemný nádych farby */
  color: #c8a064; /* Zlatistá farba textu */
  padding-left: 20px; /* Text sa efektne posunie mierne doprava */
}

/* Zvýraznenie aktuálnej stránky (Active) */
nav.sidebar ul li a.active {
  background-color: #c8a064;
  color: #ffffff;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* (definícia .has-submenu / .submenu-panel je zjednotená vyššie,
   pri "Submenu panel" - tu už nič netreba duplikovať) */


/* =====================================================
   OKRASNÉ ORNAMENTY (čisto CSS/SVG, bez externých súborov)
   ===================================================== */

/* --- Jemný "paw print" vodoznak na pozadí obsahu ---
   Vidno ho len v medzerách okolo sekcií (samotné sekcie majú
   vlastné nepriehľadné pozadie), takže nič neprekáža čitateľnosti. */
.content {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cellipse cx='50' cy='62' rx='24' ry='19' fill='%23d4af37' fill-opacity='0.05'/%3E%3Cellipse cx='20' cy='38' rx='11' ry='14' fill='%23d4af37' fill-opacity='0.05'/%3E%3Cellipse cx='40' cy='18' rx='11' ry='14' fill='%23d4af37' fill-opacity='0.05'/%3E%3Cellipse cx='62' cy='18' rx='11' ry='14' fill='%23d4af37' fill-opacity='0.05'/%3E%3Cellipse cx='82' cy='38' rx='11' ry='14' fill='%23d4af37' fill-opacity='0.05'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 130px 130px;
}

/* --- Zlaté rožné ornamenty na banneri hlavičky ---
   Zámerne dole (nie hore), aby neprekážali prepínaču jazyka SK/EN
   v pravom hornom rohu ani nadpisu v strede banneru. */
.header-image::before,
.header-image::after {
  content: "";
  position: absolute;
  bottom: 14px;
  width: 56px;
  height: 56px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cpath d='M2 30 Q2 58 30 58' stroke='%23d4af37' stroke-width='2' fill='none'/%3E%3Cpath d='M10 48 Q12 36 24 38' stroke='%23d4af37' stroke-width='1.5' fill='none' opacity='0.65'/%3E%3Ccircle cx='30' cy='58' r='3' fill='%23d4af37'/%3E%3Ccircle cx='2' cy='30' r='3' fill='%23d4af37'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: .85;
  pointer-events: none;
  z-index: 2;
}
.header-image::before { left: 14px; }
.header-image::after  { right: 14px; transform: scaleX(-1); }

@media (max-width: 768px) {
  .header-image::before,
  .header-image::after { width: 30px; height: 30px; bottom: 6px; }
  .header-image::before { left: 6px; }
  .header-image::after  { right: 6px; }
}

/* --- Medailónový rám okolo loga v sidebar-i --- */
.sidebar-logo img {
  border: 3px double #d4af37;
  border-radius: 50%;
  padding: 4px;
  background: rgba(0, 0, 0, .15);
}

/* --- Ozdobný oddeľovač pod nadpismi sekcií --- */
.content h2::after {
  content: "";
  display: block;
  width: 90px;
  height: 3px;
  margin-top: 10px;
  border-radius: 2px;
  background: linear-gradient(to right, #d4af37, transparent);
}
.galeria-section h2::after {
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(to right, transparent, #d4af37, transparent);
}

/* --- Ozdobná linka nad pätičkou --- */
footer {
  position: relative;
  text-align: center;
  padding-top: 18px;
}
footer::before {
  content: "❖";
  display: block;
  color: #d4af37;
  font-size: 1.1rem;
  margin-bottom: 8px;
  letter-spacing: 6px;
}

/* --- Ozdobné lístky po stranách hlavného nadpisu --- */
.header-image h1::before,
.header-image h1::after {
  content: "❦";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: .4em;
  color: #d4af37;
  opacity: .8;
}
.header-image h1::before { left: -1.3em; }
.header-image h1::after  { right: -1.3em; }
@media (max-width: 768px) {
  .header-image h1::before,
  .header-image h1::after { display: none; }
}

/* --- Zlatý scrollbar --- */
html { scrollbar-color: #d4af37 #06150d; scrollbar-width: thin; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #06150d; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #d4af37, #8a6d1f);
  border-radius: 8px;
  border: 2px solid #06150d;
}
::-webkit-scrollbar-thumb:hover { background: #f0cc55; }

/* =====================================================
   LIGHTBOX (zväčšenie fotky po kliknutí) - lightbox.js
   Aplikuje sa automaticky na všetky fotky v main.content,
   na každej stránke, bez potreby vlastného kódu na stránke.
   ===================================================== */
.lightbox-trigger { cursor: zoom-in; }

.lightbox-global {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 5000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, .92);
}
.lightbox-global.open { display: flex; }
.lightbox-global img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(212, 175, 55, .35);
  cursor: default;
}
.lightbox-global-close {
  position: absolute;
  top: 18px;
  right: 26px;
  color: #d4af37;
  font-size: 2.4rem;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  transition: color .2s ease, transform .2s ease;
}
.lightbox-global-close:hover { color: #fff; transform: scale(1.1); }
@media (max-width: 768px) {
  .lightbox-global-close { top: 10px; right: 16px; font-size: 2rem; }
}

/* =====================================================
   Jemné odhalenie sekcií pri scrollovaní (fade-in).
   Triedu "reveal" pridáva JS (menu.js) - ak by sa JS
   nespustil, obsah ostáva plne viditeľný (žiadny risk
   "neviditeľnej" stránky bez JS).
   ===================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
