/* =========================================================
   app.css — Global styles for DecentCalendar (vanilla)
   Cyberpunk neon theme, SecretPyramid background
   ========================================================= */

/* General Styling */
body {
  margin: 0;
  padding: 0;
  font-family: chalkduster, fantasy, sans-serif;
  background: url('../assets/SecretPyramid.gif') no-repeat center center fixed;
  background-size: cover;
  color: white;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

/* The canonical Head occupies normal document flow. */
#main-content {
  text-align: center;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  margin-top: 0;
}

#calendar-status {
  padding: 12px 20px;
  margin: 0;
  text-align: center;
  background: #080e1a;
  font: 14px/1.5 system-ui, sans-serif;
}

dialog {
  box-sizing: border-box;
  width: min(42rem, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  overflow-wrap: anywhere;
  background: #080e1a;
  color: white;
  border: 1px solid #0ff;
  font: 16px/1.5 system-ui, sans-serif;
}

dialog::backdrop { background: #000b; }
dialog label { display: block; margin: 12px 0; }
dialog pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 16rem; overflow: auto; }
dialog input:not([type="checkbox"]) { max-width: 100%; box-sizing: border-box; }
dialog [data-close] { float: right; position: sticky; top: 0; }
#booking-registry button { margin: 6px; padding: 10px; }
#booking-registry a { color: #7af0c6; }
#booking-registry input:not([type="checkbox"]) { width: 100%; }
#booking-registry-gate { border-left: 3px solid #bd7cff; padding-left: 12px; }
.timebox-invitations { margin: 20px 0; padding: 16px; border: 1px solid #7af0c655; border-radius: 14px; background: #041820; }
.timebox-invitations h3 { color: #a6ffdd; margin-top: 0; }
#booking-registry .timebox-invitations button, #invitations-inbox button {
  font: inherit; min-height: 44px; margin: 6px; padding: 8px 12px;
  color: #a6ffdd; background: #0b2630; border: 1px solid #7af0c6; border-radius: 10px; cursor: pointer;
}
#booking-registry .timebox-invitations button:hover, #invitations-inbox button:hover { color: #001018; background: #7af0c6; }
#booking-registry .timebox-invitations button:disabled, #invitations-inbox button:disabled { opacity: .5; cursor: wait; }
#invitations-inbox a { color: #7af0c6; }
#booking-registry #invitation-preference { display: block; width: 100%; padding: 10px; font: inherit; background: #050d12; color: white; border: 1px solid #0ff; border-radius: 10px; }
#booking-registry .timebox-invitations input {
  font: inherit; color: white; background: #050d12; border: 1px solid #0ff; border-radius: 10px; padding: 10px; margin-top: 8px;
}
#booking-registry .invitation-join { color: #001018; background: #7af0c6; border: 1px solid #0ff; border-radius: 10px; font: inherit; box-shadow: 0 0 12px #0ff6; }
.timebox-invitations a { display: inline-block; margin: 6px; overflow-wrap: anywhere; }
.timebox-invitations ul { padding-left: 16px; }
.timebox-invitations li { margin: 12px 0; border-top: 1px solid #7af0c633; padding-top: 8px; overflow-wrap: anywhere; }
.invitation-greeting { padding: 12px; border-left: 3px solid #bd7cff; background: #bd7cff11; }
button:focus-visible, input:focus-visible { outline: 3px solid #0ff; outline-offset: 3px; }

.onboarding-bar, .rabbit-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px;
}
.onboarding-bar { background: #080e1aee; font: 15px/1.5 system-ui, sans-serif; }
.onboarding-bar button, .rabbit-actions button, #refresh-ens-profile {
  padding: 10px 16px;
  color: #eaffff;
  background: #10232b;
  border: 1px solid #7af0c6;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
}
.onboarding-bar a, #release-readiness a { color: #7af0c6; }
#rabbit-tour-launch small { display: block; color: #c6d9df; }
.rabbit-glyph { display: inline-block; font-size: 24px; animation: rabbit-hop 3s ease-in-out infinite; }
@keyframes rabbit-hop { 0%, 80%, 100% { transform: translateY(0); } 90% { transform: translateY(-5px); } }
.rabbit-highlight { outline: 3px solid #a6ffdd; outline-offset: 4px; }
#rabbit-tour { margin: auto auto 18px; box-shadow: 0 0 32px #66e4bc55; }
#rabbit-tour::backdrop { background: #02091288; }
#rabbit-title { clear: both; }
.rabbit-step { color: #a6ffdd; }
.quiet { color: #b6c8cf; font-size: 13px; }
#release-readiness {
  box-sizing: border-box;
  max-width: 900px;
  margin: 20px auto;
  padding: 22px;
  border: 1px solid #7af0c655;
  border-radius: 16px;
  background: #080e1aee;
  font: 15px/1.65 system-ui, sans-serif;
}
#calendar-identity {
  width: 100%;
  max-width: 1100px;
  margin: 0 0 16px;
  overflow: hidden;
  border-radius: 12px;
  background: #080e1acc;
  font: 14px/1.5 system-ui, sans-serif;
  text-align: left;
}
#calendar-identity:empty { display: none; }
.ens-banner { display: block; width: 100%; max-height: 160px; object-fit: cover; border-radius: 10px; }
.ens-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.ens-identity { display: flex; align-items: center; gap: 14px; padding: 12px; min-width: 0; overflow-wrap: anywhere; }
.ens-identity p { margin: 4px 0; word-break: break-all; }
.ens-identity strong { color: #a6ffdd; font-size: 18px; }
.asset-icon { display: inline-block; width: 22px; height: 22px; object-fit: contain; vertical-align: middle; margin-right: 5px; }
.slot-avatar { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; vertical-align: middle; margin-right: 4px; }
.slot-identity { display: block; font-size: 11px; opacity: .9; overflow: hidden; text-overflow: ellipsis; }
@media (prefers-reduced-motion: reduce) {
  .rabbit-glyph { animation: none; }
}

/* ---- Header ---- */
#decent-head {
  padding: 20px;
  position: relative;
  z-index: 10;
  text-align: center;
}

#wallet-info {
  margin: 10px 0;
}

.wallet-address-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.wallet-address-part {
  font-size: 1.5rem;
  color: #0ff;
  text-shadow: 0 0 5px #0ff, 0 0 10px #0ff;
}

.wallet-icons {
  display: flex;
  gap: 5px;
}

.icon-small {
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 0 5px #0ff);
  animation: glow 1.5s infinite alternate;
}

/* Wallet Button */
.wallet-button {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wallet-button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(0, 255, 255, 1);
}

.wallet-logo {
  width: 50px;
  height: 50px;
  filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.8));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.wallet-logo:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 20px rgba(0, 255, 255, 1));
}

/* IPFS status indicator */
.ipfs-indicator {
  font-size: 0.75rem;
  color: #666;
  margin-top: 5px;
}

.ipfs-indicator.connected {
  color: #0f0;
  text-shadow: 0 0 5px #0f0;
}

/* ---- Neon Text ---- */
.neon-text {
  font-size: 2rem;
  color: #0ff;
  text-shadow: 0 0 5px #0ff, 0 0 10px #0ff;
  margin-bottom: 10px;
}

/* ---- Calendar Controls ---- */
#calendar-controls {
  position: relative;
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.address-input {
  display: flex;
  flex-wrap: wrap;
  max-width: 100%;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}

.address-input input {
  box-sizing: border-box;
  max-width: 100%;
  padding: 10px;
  font-size: 1rem;
  border: 2px solid #0ff;
  border-radius: 5px;
  background: black;
  color: white;
  width: 300px;
  text-align: center;
}

.address-input button {
  padding: 10px 20px;
  font-size: 1rem;
  border: 2px solid #0ff;
  border-radius: 5px;
  background: black;
  color: white;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.address-input button:hover {
  background: #0ff;
  color: black;
}

/* ---- Add Event Button ---- */
.add-event-button {
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  font-weight: bold;
  color: #0ff;
  background: black;
  border: 2px solid #0ff;
  border-radius: 50%;
  box-shadow: 0 0 10px #0ff, 0 0 20px #0ff;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
}

.add-event-button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px #0ff, 0 0 30px #00f;
}

/* ---- Mint Button ---- */
.mint-button {
  padding: 8px 16px;
  font-size: 1rem;
  font-family: inherit;
  color: #ffd700;
  background: black;
  border: 2px solid #ffd700;
  border-radius: 8px;
  box-shadow: 0 0 10px #ffd700, 0 0 20px rgba(255, 215, 0, 0.4);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mint-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #ffd700, 0 0 40px rgba(255, 215, 0, 0.6);
}

/* ---- Payment Options ---- */
.payment-options {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 15px 0;
  flex-wrap: wrap;
}

.payment-options button {
  padding: 10px 16px;
  font-size: 0.95rem;
  font-family: inherit;
  border: 2px solid #0ff;
  border-radius: 8px;
  background: black;
  color: #0ff;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.payment-options button:hover {
  background: #0ff;
  color: black;
}

/* ---- Utility ---- */
.hidden {
  display: none !important;
}

/* ---- Footer ---- */
.App-footer {
  margin-top: 20px;
  color: #fff;
  text-shadow: 0 0 5px #fff, 0 0 10px #0ff;
  font-size: 0.9rem;
  padding: 10px 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.App-footer img {
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 0 5px #0ff);
}

/* ---- Glow Animation ---- */
@keyframes glow {
  from {
    filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0.8));
  }
  to {
    filter: drop-shadow(0 0 15px rgba(0, 255, 255, 1));
  }
}

/* ---- Shimmer Animation (for icon rings and loading states) ---- */
@keyframes shimmer {
  0%, 100% {
    opacity: 0.5;
    filter: drop-shadow(0 0 4px rgba(0, 255, 255, 0.7));
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 14px rgba(0, 255, 255, 1));
  }
}

.shimmer {
  animation: shimmer 2s ease-in-out infinite;
}

/* ---- Calendar Toggle labels ---- */
#calendar-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

#calendar-toggle label {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.calendar-shower-wallet-addr {
  display: inline;
  font-size: 0.8rem;
  font-weight: bold;
  color: #00fff29b;
}

/* modal info text */
.modal-info {
  font-size: 0.85rem;
  color: #aaa;
  margin-bottom: 12px;
}
