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

/* --- Telo stránky a pozadie --- */
body {
  font-family: 'Arial', sans-serif;
  font-size: 22px;
  color: #fff;
  background-image: url('images/tapeta.jpeg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  margin: 0;
  position: relative;
}

/* Overlay pre lepšiu čitateľnosť textu */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 66, 37, 0.6);
  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);
}

/* --- Sekcie --- */
section {
  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;
}
section p { line-height: 1.6; font-size: 1.2rem; color: #f5f5f5; }

/* --- Submenu panel --- */
.has-submenu { position: relative; }
.has-submenu .arrow { float: right; transition: transform .3s ease; }

.submenu-panel {
  position: fixed;
  top: 0; left: 220px;
  width: 200px; height: 100vh;
  background: linear-gradient(to bottom, #014d2d, #00261A);
  border-left: 2px solid #d4af37;
  display: none;
  flex-direction: column;
  box-shadow: 2px 0 8px rgba(0,0,0,.4);
  z-index: 1000;
  padding-top: 20px;
  overflow-y: auto;
}

.submenu-panel a {
  display: block;
  padding: 12px 20px;
  color: #ecf0f1;
  text-decoration: none;
  font-size: 16px;
  transition: background .3s ease, color .3s ease;
}
.submenu-panel a:hover { background: #145A32; color: #d4af37; }
.has-submenu:hover .submenu-panel { display: flex; }
.submenu-panel.open { display: flex; }
.has-submenu:hover .arrow,
.has-submenu.open .arrow { transform: rotate(90deg); }

/* --- 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; }
  .has-submenu .submenu-panel { display: none !important; position: static !important; }
  .has-submenu.open .submenu-panel,
  .submenu-panel.open { display: block !important; }
  .has-submenu:hover .submenu-panel { display: none; }
}

/* --- Š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);
}

/* --- 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; }

