﻿/* === RESET === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* === ZÁKLADNÍ STYL === */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f9f9;
  color: #222;
  line-height: 1.6;
  overflow-x: hidden;
}

/* === KONTEJNER === */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === HEADER === */
header {
  position: relative;
  z-index: 10; /* zvýšeno kvůli menu */
  height: 150px;
  /* important: povolit overflow, aby fixed elementy (menu) nebyly potenciálně ořezány
     pokud ti to vizuálně něco neuklidí, můžeš vrátit overflow: hidden; */
  overflow: visible;
}

/* === VIDEO POZADÍ === */
.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}
.video-background::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}
.video-background video {
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 200%;
  object-fit: cover;
  z-index: 0;
}

/* === OBSAH HEADERU === */
header .container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
}

/* === LOGO === */
header .logo {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* H1 glow */
header h1 a {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  text-align: center;
  position: relative;
  animation: pulseGlowSlow 6s infinite alternate;
}
header h1 a::after {
  content: "";
  display: block;
  width: 60%;
  height: 3px;
  background: linear-gradient(to right, #ff6600, #ffaa00, #ffcc33);
  margin: 6px auto 0;
  border-radius: 2px;
}

/* H2 */
header h2 a {
  font-size: 1.2rem;
  font-weight: 400;
  color: #fff;
  text-decoration: none;
  text-align: center;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Glow animace */
@keyframes pulseGlowSlow {
  0% { text-shadow: none; }
  50% {
    text-shadow:
      0 0 2px #fff,
      0 0 6px #ffcc33,
      0 0 8px #ffaa00,
      0 0 10px #ff6600;
  }
  100% {
    text-shadow:
      0 0 2px #fff,
      0 0 8px #ffcc33,
      0 0 12px #ffaa00,
      0 0 16px #ff6600;
  }
}

/* === NAVIGACE (cíleno na ID aby bylo jednoznačné) === */
#main-nav {
  position: relative;
  z-index: 9999; /* zajistí, že se menu neztratí za obsahem */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#main-nav.open {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
#main-nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}
#main-nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}
#main-nav ul li a:hover {
  color: #ff6600;
}

/* === MENU TOGGLE === */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10002; /* vyšší než video overlay */
  /* připraveno pro absolutní pozicování v mobile */
  position: relative;
}

/* === FOOTER === */
footer {
  background-color: #222;
  color: #ccc;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
  font-size: 0.9rem;
}

/* === FAQ === */
.faq-item {
  border-bottom: 1px solid #ddd;
  padding: 15px 0;
  cursor: pointer;
}
.faq-item:last-child {
  border-bottom: none;
}
.faq-question {
  font-weight: 700;
  position: relative;
  padding-right: 25px;
}
.faq-question::after {
  content: "+";
  position: absolute;
  right: 0;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}
.faq-item.open .faq-question::after {
  content: "-";
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  margin-top: 8px;
  color: #444;
}
.faq-item.open .faq-answer {
  max-height: 500px;
}

/* === GALERIE === */
.gallery-categories {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 40px auto;
  max-width: 900px;
  text-align: center;
}
.category-toggle {
  display: inline-block;
  background: linear-gradient(135deg, #ff6600, #ffaa00);
  color: #fff;
  border: none;
  padding: 15px 25px;
  border-radius: 30px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.category-toggle:hover {
  background: linear-gradient(135deg, #cc5200, #ff8800);
  transform: scale(1.03);
}
.gallery-grid {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 15px;
}
.gallery-grid.open {
  display: grid;
}
.gallery-grid img {
  width: 100%;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* === RESPONSIVE MENU === */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    /* umístit přesně nad video v headeru */
    position: absolute;
    top: 18px;
    right: 20px;
    z-index: 10003;
  }

  /* mobilní menu: pevně nad obsahem (viewport) */
  #main-nav {
    position: fixed;
    top: 70px;
    right: 15px;
    background-color: #333;
    width: 220px;
    border-radius: 6px;
    padding: 15px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    opacity: 0;
    pointer-events: none;
    overflow-y: auto;
    max-height: 80vh;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 10002;
    /* pro jistotu výchozí display */
    display: none;
  }
  #main-nav.open {
    display: block;      /* zaručí vykreslení i v prohlížečích, kde opacity nestačí */
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  #main-nav ul {
    flex-direction: column;
    gap: 0;
  }
  #main-nav ul li a {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid #444;
    color: #fff;
  }
  #main-nav ul li:last-child a {
    border-bottom: none;
  }
}

/* === DESKTOP === */
@media (min-width: 769px) {
  #main-nav {
    opacity: 1 !important;
    pointer-events: auto !important;
    position: static;
    background: transparent;
    transform: none;
    display: block;
  }
  #main-nav ul {
    flex-direction: row;
  }
  .menu-toggle {
    display: none;
  }
}

/* === TEXTY === */
.intro-text {
  text-align: center;
  margin-bottom: 25px;
  color: #444;
  font-size: 1.1rem;
}

.about {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
  line-height: 1.8;
}
