/* --- Styly pro soutěžní stránku MySwag --- */

/* Hlavní kontejner stránky */
.competition-page-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #e0e0e0;
}

.competition-page-container .f-w-800 {
  font-weight: 800 !important;
}

.competition-page-container .brand-color {
  color: var(--primary-pink) !important;
}

.competition-page-container ol.how-to-steps a:focus {
  color: var(--primary-pink) !important;
  text-decoration: underline;
}

/* Hlavička s logem a názvem */
.competition-header {
  text-align: center;
  margin-bottom: 50px;
}
.competition-header img {
  max-width: 200px;
  margin-bottom: 20px;
}
.content-inner article .competition-header h2.headline {
  font-size: 3.5rem;
  color: #fff;
  font-weight: 800;
  margin-bottom: 10px;
}
.competition-header .brand-color {
  color: #c40f61; /* Vaše brandová barva */
}
.competition-header p {
  font-size: 1.2rem;
  color: #b0b0b0;
}

/* Sekce (O co hraješ?, Jak se zapojit? atd.) */
.competition-section {
  background-color: #1a1a1a;
  border: 1px solid #252525;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 40px;
}
.competition-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-top: 0;
  margin-bottom: 25px;
  text-align: center;
}

/* Mřížka s cenami */
.prizes-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.prize-card {
  background-color: #111;
  border-radius: 8px;
  border: 1px solid #252525;
  padding: 20px;
  text-align: center;
  flex-basis: 250px; /* Šířka karty */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.prize-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(196, 15, 97, 0.15);
}
.prize-card h3 {
  font-size: 1.1rem;
  color: #c40f61;
  margin: 0 0 5px 0;
}
.prize-card p {
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

/* Kroky "Jak se zapojit" */
.how-to-steps {
  list-style: none;
  padding-left: 0;
  counter-reset: steps-counter;
}
.how-to-steps li {
  position: relative;
  padding: 15px 15px 15px 60px;
  margin-bottom: 15px;
  background-color: #111;
  border-radius: 8px;
  font-size: 1.1rem;
}
.how-to-steps li::before {
  counter-increment: steps-counter;
  content: counter(steps-counter);
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.8rem;
  font-weight: bold;
  color: #c40f61;
}

/* Podmínky a další info */
.terms-section strong {
  color: #fff;
  display: block;
  margin-top: 15px;
}
.terms-section p {
  color: #b0b0b0;
  margin-top: 5px;
}

/* Odkaz na plná pravidla */
.rules-link {
  text-align: center;
  margin-top: 50px;
}

.rules-link a {
  display: inline-block;
  background-color: transparent;
  color: #fff !important;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.2s ease;
  border: 2px solid #c40f61;
}

.rules-link a:hover {
  background-color: #c40f61;
  color: #fff !important;
}

/* Responzivita pro mobil */
@media (max-width: 767px) {
  .competition-header h1 {
    font-size: 2.5rem;
  }
  .prize-card {
    flex-basis: 100%;
  }
}

/* --- ANIMOVANÉ OBRÁZKY (MOBIL + DESKTOP) --- */

.competition-page-container {
  position: relative;
  isolation: isolate;
}

.competition-page-container::before,
.competition-page-container::after {
  content: "";
  position: absolute;
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.1;
  animation: floating 8s ease-in-out infinite;
}

/* 3. Airpods */
.competition-page-container::before {
  background-image: url("https://www.getmyswag.cz/user/documents/upload/Soutěž/airpods-max-vyhra.png");
  width: 150px;
  height: 150px;
  top: 30%;
  left: 10px;
  animation-delay: -4s;
}

/* PS5 */
.competition-page-container::after {
  background-image: url("https://www.getmyswag.cz/user/documents/upload/Soutěž/ps5-vyhra.png");
  width: 180px;
  height: 180px;
  top: 15%;
  right: 10px;
}

/* DESKTOP */
@media screen and (min-width: 1200px) {
  .competition-page-container::before,
  .competition-page-container::after {
    opacity: 1;
  }

  /* --> Airpods */
  .competition-page-container::before {
    width: 250px;
    height: 250px;
    bottom: 25%;
    left: -250px;
    top: auto;
  }
  /*-- PS5 */
  .competition-page-container::after {
    width: 250px;
    height: 250px;
    top: 25%;
    right: -80px;
  }
}

@media screen and (min-width: 1920px) {
  .competition-page-container::after {
    width: 250px;
    height: 250px;
    top: 25%;
    right: -250px;
  }
}

/* -->Animations */
@keyframes floating {
  0% {
    transform: translateY(0px) rotate(-5deg);
  }
  50% {
    transform: translateY(30px) rotate(5deg);
  }
  100% {
    transform: translateY(0px) rotate(-5deg);
  }
}
