/* === Globální nastavení === */
body {
  background-color: #000000;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8vh 2vw 5vh;
}

/* === Nadpis sekce === */
h1 {
  font-size: 2.4rem;
  color: #860ad8;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8vh;
  text-align: center;
  border-bottom: 2px solid rgba(134, 10, 216, 0.3);
  display: inline-block;
  padding-bottom: 0.5rem;
}

/* === Karta článku === */
.novinka {
  background: linear-gradient(180deg, #0e0e0e, #161616);
  border: 1px solid rgba(134, 10, 216, 0.25);
  border-radius: 20px;
  padding: 4vh 4vw;
  margin-bottom: 8vh;
  box-shadow: 0 0 25px rgba(134, 10, 216, 0.08);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.novinka:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 35px rgba(134, 10, 216, 0.25);
}

/* === Nadpis článku === */
.novinka h2 {
  font-size: 1.8rem;
  color: #b974ff;
  margin-top: 3vh;
  margin-bottom: 2vh;
}

/* === Text === */
.novinka p {
  font-size: 1.1rem;
  color: #d4d4d4;
  text-align: justify;
  line-height: 1.8;
}

/* === Obrázky === */
.image-wrapper {
  overflow: hidden;
  border-radius: 15px;
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #090909;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
  border-radius: 15px;
}

.image-wrapper:hover img {
  transform: scale(1.06);
  filter: brightness(0.85);
}

/* === Oddělovač === */
hr {
  border: none;
  height: 2px;
  background: linear-gradient(to right, transparent, #860ad8, transparent);
  width: 70%;
  margin: 10vh auto;
  opacity: 0.6;
}

/* === Tlačítko Zpět === */
.allnews {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 8vh;
}

.novinky {
    background-color: #111;
  border: 2px solid #860ad8;
  
  color: #111111;
  border: none;
  font-size: 1.2rem;
  padding: 1.2vh 3vw;
  border-radius: 30px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 0 18px rgba(134, 10, 216, 0.4);
}

.novinky span {
  position: relative;
  z-index: 2;
}

.novinky::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    0deg,
    transparent,
    transparent 30%,
    rgba(0, 0, 0, 0.3)
  );
  transform: rotate(-45deg);
  transition: all 0.5s ease;
  opacity: 0;
  z-index: 1;
}

.novinky:hover {
  transform: scale(1.05);
  background-color: #a63af0;
  color: #000;
}

.novinky:hover::before {
  opacity: 1;
  transform: rotate(-45deg) translateY(100%);
}

/* === Extra tlačítko REAL NOVINKY === */
.ucebnatlacitko {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #111;
  border: 2px solid #860ad8;
  border-radius: 50px;
  color: #860ad8;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  padding: 12px 28px;
  transition: all 0.4s ease;
  overflow: hidden;
  z-index: 999;
}

.ucebnatlacitko span {
  position: relative;
  z-index: 2;
}

.ucebnatlacitko::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    0deg,
    transparent,
    transparent 30%,
    rgba(0, 0, 0, 0.3)
  );
  transform: rotate(-45deg);
  transition: all 0.5s ease;
  opacity: 0;
  z-index: 1;
}

.ucebnatlacitko:hover {
  transform: scale(1.05);
  background-color: #860ad8;
  color: #000000;
  box-shadow: 0 0 20px rgba(134, 10, 216, 0.6);
}

.ucebnatlacitko:hover::before {
  opacity: 1;
  transform: rotate(-45deg) translateY(100%);
}

/* === Responsivita === */
@media (max-width: 768px) {
  .container {
    padding: 10vh 5vw;
  }

  .novinka {
    padding: 3vh 5vw;
  }

  .novinka h2 {
    font-size: 1.4rem;
  }

  .novinka p {
    font-size: 1rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  .ucebnatlacitko {
    bottom: 20px;
    right: 20px;
    font-size: 0.9rem;
    padding: 10px 22px;
  }
}



