/* style.css */

/* 1. Globální proměnné a reset (beze změny) */
:root {
  --bg: #000000;
  --surface: rgba(28, 28, 34, .85);
  --gold: #d4af37;
  --violet: #a14ff0;
  --text: #f4f4f4;
  --muted: #b7b7b7;
  --radius: 10px;
  --blur: 12px;
  --tr-fast: .25s ease;
  --tr-medium: .4s cubic-bezier(.4, .0, .2, 1);
  font-size: 16px;
  /* Přidávám pro lepší kontrolu rem jednotek */
}

body {
  margin: 0;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  /* Zabrání nechtěnému horizontálnímu scrollu */
}

/* 2. Wrappery (váš původní kód) */
.wrapper {
  text-align: center;
  align-items: center;
  margin: auto;
  position: relative;
}

.rightButtonsWrapper {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: flex-start;
}

.loginWrapper {
  position: fixed;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: flex-start;
}

.heroWrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-image:
    linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 60%,
      var(--bg) 100%),
    url("/images/background/win_gold_smooth.png");
  /* Zkontrolujte cestu k obrázku! */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  min-height: 800px;
  /* Pevná výška pro desktop */
}

.featuresWrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  padding-top: 60px;
}

.pricingWrapper {
  padding-top: 60px;
}

.contactWrapper {
  padding-top: 60px;
}

.backbuttonWrapper {
  margin-top: 60px;
}

/* 3. Obecné třídy */
.btn {
  display: inline-flex;
  /* Používám inline-flex pro lepší zarovnání obsahu */
  align-items: center;
  /* Vycentrování obsahu vertikálně */
  justify-content: center;
  /* Vycentrování obsahu horizontálně */
  gap: 0.5rem;
  /* Mezera pro text a ikonu */
  padding: 14px 34px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: transform var(--tr-fast), box-shadow var(--tr-fast);
  cursor: pointer;
  background: var(--surface);
  color: var(--text);
  border: 1px solid transparent;
  font-size: 1rem;
  /* Pro konzistenci s REM jednotkami */
}

.btn--login {
  margin: 0 8px;
}

.btn--account {
  margin: 0 8px;
}

.btn--lang {
  margin: 0 8px;
}

.btn--primary {
  color: #2c2c2c;
  background-color: #e6e6e6;
}

.btn--secondary {
  background: #d4a200;
  color: #fff;
}

/* 1) Animace */
@keyframes button-loading-spinner {
  from {
    transform: rotate(0turn);
  }

  to {
    transform: rotate(1turn);
  }
}

/* 2) Základní .btn – musí mít position: relative */
.btn {
  position: relative;
  /* …ostatní vaše .btn styly… */
}

/* 3) Třída pro loading stav (.btn.loading) */
.btn.loading {
  pointer-events: none;
  /* zakáže další klikání */
  color: transparent;
  /* skryje text */
}

/* 4) Spinner jako ::after pseudo-element */
.btn.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 25px;
  height: 25px;
  margin: -15px;
  /* vycentruje spinner */
  border: 3px solid transparent;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: button-loading-spinner 1s ease infinite;
}
/* success flash */
.btn.success {
  animation: pulse 0.8s ease-out;
}

.btn--back {
  /* můžete tu přidat specifika pro back-to-top */
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .45);
}

/* 4. Konkrétní selektory */
#hero-logo {
  width: 60vh;
  /* Původní hodnota pro desktop */
  margin-top: 150px;
  /* Původní hodnota pro desktop */
  margin-bottom: 500px;
  /* Původní hodnota pro desktop */
}

#hero-subtitle {
  padding-top: 0px;
  font-size: 20px;
  top: 20px;
}

#account-icon {
  width: 24px;
}

.feature {
  background: var(--surface);
  backdrop-filter: blur(var(--blur));
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  padding: 30px;
  max-width: 300px;
  transition: transform var(--tr-medium), box-shadow var(--tr-medium);
  cursor: pointer;
  /* přidáno pro konzistenci */
}

.feature__title {
  color: #FFD700;
  margin-top: 0;
  text-shadow:
    0px 0px 0px #d4d000,
    0px 0px 25px #d4c600;
}

.feature__text {
  color: var(--text);
}

.feature:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 32px rgba(0, 0, 0, .45);
}

.pricing__cards {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  margin-top: 20px;
}

.card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  backdrop-filter: blur(var(--blur));
  border-radius: var(--radius);
  padding: 32px;
  width: 240px;
  transition: transform var(--tr-medium), box-shadow var(--tr-medium);
}

.card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, var(--gold), transparent 40%, var(--violet));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.card h3 {
  margin: 0;
  font-weight: 400;
}

.card p {
  color: var(--text);
  margin: 8px 0;
}

.card .price {
  display: block;
  margin-top: 12px;
  font-size: 1.6rem;
  color: var(--gold);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 36px rgba(0, 0, 0, .5);
}

/* Kontakt */
.contact__form {
  background: var(--surface);
  backdrop-filter: blur(var(--blur));
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .08);
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.contact__form input,
.contact__form textarea {
  width: 100%;
  padding: 12px 16px;
  background: #111;
  border: 1px solid #333;
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color var(--tr-fast);
  font-size: 1rem;
}

.contact__form input:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--gold);
}

/* back-to-top */
.backbuttonWrapper .btn--back {
  padding: 12px 20px;
}

/* overlay pozadí a info box */
.info-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}

.info-box {
  background: var(--surface);
  color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  max-width: 90%;
  width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  font-size: 1.3rem;
}

.info-box h3 {
  margin-top: 0;
}

.info-close {
  margin-top: 15px;
  padding: 8px 12px;
  cursor: pointer;
  background: #d4ad00;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
}

.info-close:hover {
  background: #0056b3;
}

/* 5. Animace */
.fade-in {
  opacity: 0;
  animation: fade 1s forwards;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(28px);
  animation: fadeUp 1s forwards;
}

@keyframes fade {
  to {
    opacity: 1;
  }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: none;
  }
}

/* MOBILNÍ RESPONSIVITA */
@media (max-width: 768px) {
  :root {
    font-size: 15px;
  }

  .wrapper {
    padding: 0 10px;
  }

  .loginWrapper,
  .rightButtonsWrapper {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
    justify-content: center;
    padding: 10px 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(var(--blur));
    flex-wrap: wrap;
    gap: 10px;
  }

  .loginWrapper {
    margin-bottom: 5px;
  }

  .heroWrapper {
    min-height: 450px;
    background-position: center 10%;
    padding-top: 80px;
    justify-content: flex-start;
  }

  #hero-logo {
    width: 90%;
    max-width: 400px;
    margin-top: 20px;
    margin-bottom: 80px;
  }

  #hero-subtitle {
    font-size: 1.2rem;
    position: static;
    top: auto;
    padding: 0 10px;
    margin-top: 300px;
    margin-bottom: 0px;
  }

  .featuresWrapper {
    flex-direction: column;
    gap: 20px;
    padding-top: 40px;
  }

  .feature {
    width: 90%;
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
  }

  .feature__title {
    font-size: 1.4rem;
  }

  .feature__text {
    font-size: 0.9rem;
  }

  .pricingWrapper {
    padding-top: 40px;
  }

  .contactWrapper {
    padding-top: 40px;
  }

  .contact__form {
    padding: 20px;
    max-width: 90%;
    gap: 15px;
  }

  .contact__form input,
  .contact__form textarea {
    padding: 10px 15px;
    font-size: 0.9rem;
  }

  .backbuttonWrapper {
    margin-top: 40px;
    padding-bottom: 20px;
  }

  .backbuttonWrapper .btn--back {
    padding: 10px 18px;
  }

  #account-icon {
    width: 20px;
  }

  #account-btn,
  .btn--login,
  .btn--lang {
    padding: 6px 10px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  :root {
    font-size: 14px;
  }

  .wrapper {
    padding: 0 5px;
  }

  .loginWrapper,
  .rightButtonsWrapper {
    padding: 8px 0;
    gap: 5px;
  }

  .heroWrapper {
    min-height: 350px;
    background-position: center 5%;
    padding-top: 60px;
  }

  #hero-logo {
    width: 95%;
    margin-top: 10px;
    margin-bottom: 40px;
  }

  #hero-subtitle {
    font-size: 1rem;
  }

  .featuresWrapper,
  .contactWrapper,
  .pricingWrapper {
    padding-top: 30px;
  }

  .feature {
    padding: 15px;
  }

  .feature__title {
    font-size: 1.2rem;
  }

  .feature__text {
    font-size: 0.8rem;
  }

  .contact__form {
    padding: 15px;
    gap: 10px;
  }

  .contact__form input,
  .contact__form textarea {
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .backbuttonWrapper .btn--back {
    padding: 8px 15px;
  }

  #account-icon {
    width: 18px;
  }

  #account-btn,
  .btn--login,
  .btn--lang {
    padding: 5px 8px;
    font-size: 0.8rem;
  }
}