/* style.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: linear-gradient(
    180deg,
    rgba(21, 58, 82, 1) 0%,
    rgba(52, 42, 111, 1) 35%,
    rgba(29, 24, 62, 1) 100%
  );
  min-height: 100vh;
  color: white;
}

.container {
  max-width: 90%;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  padding: 20px 0;
  text-align: center;
  margin: auto;
  width: 100%;
}

.logo {
  width: 100px;
  margin: 0 auto;
}

.main-logo {
  width: 100%;
  max-width: 500px;
  margin: 20px auto;
  display: block;
}

nav {
  background-color: rgba(52, 152, 219, 0.3);
  border-radius: 30px;
  margin: 20px 0;
  max-width: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
	margin-top:40px
}

.nav-logo {
  width: 12%;
  height: 12%;
  margin: 8px 15px;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.nav-logo:hover {
  transform: scale(1.1);
}

.nav-logo.menu-active {
  transform: rotate(180deg) scale(1.1);
}

nav ul {
  display: flex;
  list-style: none;
  flex-grow: 1;
}

nav ul li {
  text-align: center;
  transition: background-color 0.3s;
}

nav ul li a {
  color: white;
  text-decoration: none;
  display: block;
  padding: 15px 20px;
  font-weight: bold;
}

nav ul li:hover,
nav ul li.active {
  background-color: rgba(255, 255, 255, 0.3);
}

/* Remove hamburger completely */
.hamburger {
  display: none !important;
}

section {
  padding: 20px 0;
  margin-bottom: 30px;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: bold;
  margin-top:2rem;
}

/* Fotogalerie - domovská stránka */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.gallery-item {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* O pořadu stránka */
.about-content {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 20px;
  margin-top: 30px;
}

.about-content p {
  margin-bottom: 15px;
  line-height: 1.6;
}

/* Epizody stránka */
.episodes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px; /* Zvýšená mezera mezi epizodami */
  margin-top: 5rem;

  justify-content: center;         /* zarovnání na střed */
  max-width: 2000px;               /* omezení maximální šířky gridu */
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.episode {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  position: relative;

  padding: 20px; /* Vnitřní odsazení */
  display: flex;
  flex-direction: column;
  gap: 15px; /* Mezery mezi videem a textem */
}

.episode-thumbnail {
  aspect-ratio: 16 / 9;
  background-color: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.play-button {
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

.play-button::after {
  content: "";
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #153a52;
  margin-left: 5px;
}

.episode-thumbnail:hover .play-button {
  transform: scale(1.1);
}

.episode-info h3 {
  margin-bottom: 5px;
  font-size: 1.2rem;
  text-transform: uppercase;
  font-weight: bold;
}

.episode-info p {
  font-size: 1rem;
  line-height: 1.5;
  opacity: 0.9;
  margin-top: 0;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px 0;
  opacity: 0.7;
  font-size: 0.8rem;
}

/* Modal styl */
.photo-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.photo-modal.hidden {
  display: none;
}

.photo-modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.photo-modal-content img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.photo-modal-close {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 30px;
  color: white;
  background: black;
  padding: 5px 10px;
  border-radius: 50%;
  cursor: pointer;
}

/* Video wrapper for responsive videos */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* Poměr 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  margin-top: 15px;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 10px;
}

/* Media Queries */
@media (max-width: 768px) {
  .main-logo {
    max-width: 400px;
  }

  h1 {
    font-size: 2rem;
  }

  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .episodes {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  /* Mobile navigation - logo becomes the trigger */
  nav {
    width: fit-content;
  }

  .nav-logo {
    width: 60px;
    height: 35px;
    margin: 10px 15px;
    z-index: 101;
  }

  nav ul {
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    backdrop-filter: blur(10px);
    flex-direction: column;
    width: 100%;
    height: 30%;
    max-width: 100%;
    border-radius: 15px;
    text-align: center;
    z-index: 100;
    /* Hide menu by default */
    display: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  }

  /* Show menu when active */
  nav ul.menu-open {
    display: flex;
    justify-content: center;
  }

  nav ul li {
    width: 100%;
    margin: 0;
    /* Start hidden for animation */
    opacity: 1;
    background-color: rgba(21, 58, 82, 0.5);
    transform: translateY(-20px);
  }

  nav ul li a {
    padding: 20px;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
  }

  nav ul li a:hover::before {
    left: 100%;
  }

  nav ul li:last-child a {
    border-bottom: none;
    border-radius: 0 0 15px 15px;
  }
}

@media (max-width: 480px) {
  .main-logo {
    max-width: 150px;
  }

  nav {
    border-radius: 20px;
  }

  .nav-logo {
    width: 60px;
    height: 35px;
    margin: 8px 12px;
  }

  nav ul li a {
    padding: 18px;
    font-size: 0.9rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
  }
}
