/* ============================= */
/* Header-Styling                */
/* ============================= */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 8vh;
  padding: 0 2vw;
  background-color: #121212;
  color: #f0f0f0;
  font-size: 1.5rem;
  position: relative;
  box-shadow: 0 0.2vh 1vh rgba(0, 0, 0, 0.8);
}

.header-divider {
  width: 100vw;
  height: 0.3vh;
  background-color: #d4af37;
  box-shadow: 0 0.2vh 0.5vh rgba(212, 175, 55, 0.5);
}

.site-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  font-weight: bold;
  color: var(--gold, #d4af37);
}

/* ============================= */
/* Wallet-Container              */
/* ============================= */
.wallet-container {
  display: flex;
  align-items: center;
  gap: 1vw;
}

.wallet-button {
  background: #1c1c1c;
  border: 1px solid #444;
  border-radius: 0.4rem;
  padding: 0.4rem 0.8rem;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.wallet-button:hover {
  border-color: #d4af37;
  background: #1e1e1e;
}

.wallet-options {
  display: flex;
  flex-direction: column;
  position: absolute;
  margin-top: 0.5rem;
  background: #1c1c1c;
  border: 1px solid #444;
  border-radius: 0.4rem;
  padding: 0.4rem;
  z-index: 1000;
}

.wallet-options.hidden {
  display: none;
}

.wallet-option {
  padding: 0.3rem 0.6rem;
  background: transparent;
  border: none;
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
}

.wallet-option:hover {
  background: #2a2a2a;
}

.wallet-disconnect {
  background: #800000;
  border: 1px solid #444;
  border-radius: 0.4rem;
  padding: 0.4rem 0.8rem;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.wallet-disconnect:hover {
  background: #a00000;
}

.admin-button {
  background: #d4af37;
  border: none;
  border-radius: 0.4rem;
  padding: 0.4rem 0.8rem;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.admin-button:hover {
  background: #f5c842;
}

/* ============================= */
/* Wallet Select (Dropdown)      */
/* ============================= */
.wallet-select {
  background: #1c1c1c;
  border: 1px solid #444;
  border-radius: 0.4rem;
  padding: 0.4rem 0.6rem;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
  appearance: none;
}

.wallet-select:hover {
  border-color: #d4af37;
  background: #1e1e1e;
}

.wallet-select:focus {
  outline: none;
  border-color: #d4af37;
  background: #2a2a2a;
}

/* ============================= */
/* QR-Code Overlay (WalletConnect) */
/* ============================= */
#wallet-qr-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: #1c1c1c;
  border-radius: 1rem;
  border: 1px solid #444;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 0 1.5rem rgba(0, 0, 0, 0.9);
  z-index: 2000;
  animation: fadeInScale 0.3s ease forwards;
}

#wallet-qr-container canvas {
  border: 2px solid #d4af37;
  border-radius: 0.5rem;
  padding: 0.5rem;
  background: #fff;
}

#wallet-qr-container p {
  margin-top: 1rem;
  color: #f0f0f0;
  font-size: 1rem;
}

#wallet-qr-close {
  margin-top: 1rem;
  padding: 0.4rem 1.2rem;
  background: #d4af37;
  border: none;
  color: #000;
  font-weight: bold;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

#wallet-qr-close:hover {
  background: #f5c842;
}

/* ============================= */
/* Animationen                   */
/* ============================= */
@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* ============================= */
/* Responsive Anpassungen        */
/* ============================= */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    height: auto;
    padding: 1vh 4vw;
    gap: 1vh;
    text-align: center;
  }

  .site-title {
    position: static;
    transform: none;
    font-size: 1.6rem;
    margin-top: 0.5vh;
  }

  .wallet-select {
    max-width: 80vw;
    font-size: 0.9rem;
  }

  /* Wallet-Adresse und Disconnect-Button verkleinern */
  #wallet-address {
    font-size: 0.85rem;
    max-width: 50vw;
    padding: 0.2rem 0.4rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .wallet-disconnect {
    font-size: 0.85rem;
    padding: 0.3rem 0.6rem;
  }

  .wallet-button {
    font-size: 0.85rem;
    padding: 0.3rem 0.6rem;
  }

  #wallet-qr-container {
    width: 80%;
    padding: 1.5rem 1rem;
  }
}
