@import url("./vars.css");

html,
body {
  background-color: var(--background-color);
  color: var(--foreground-color);
  font-family: var(--main-font);
  font-weight: 400;
  font-style: normal;

  width: 100%;
  height: 100%;
}

#moorecoin {
  color: var(--accent-color);
  font-family: var(--accent-font);
  font-weight: 300;
  font-style: normal;
}

#api-error-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #d32f2f;
  color: white;
  padding: 12px 16px;
  text-align: center;
  font-family: sans-serif;
  font-size: 14px;
  z-index: 9999;
  display: none;
}

#api-error-banner a {
  color: white;
  text-decoration: underline;
  font-weight: 600;
}

/* step 3: tilt card */
.tilt-card-wrap {
  perspective: 1000px;
}

.tilt-card {
  position: relative;
  width: 320px;
  padding: 1.75rem;
  border-radius: 16px;
  background: linear-gradient(155deg, var(--secondary-color), #1a1a1a);
  border: 1px solid rgba(255, 204, 34, 0.25);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  text-align: left;
  transform-style: preserve-3d;
  transition: transform 150ms ease-out;
  overflow: hidden;
}

.tilt-card-shine {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--shine-x, 50%) var(--shine-y, 50%),
    rgba(255, 204, 34, 0.18),
    transparent 55%
  );
  pointer-events: none;
}

.tilt-card-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.5;
}

.tilt-card-public-id {
  font-family: var(--accent-font);
  font-size: 2.2rem;
  color: var(--accent-color);
  line-height: 1;
}

.tilt-card-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.6rem;
}

.tilt-card-field-label {
  font-size: 0.75rem;
  opacity: 0.5;
}

.tilt-card-field-value {
  font-size: 0.85rem;
  font-weight: 600;
  max-width: 60%;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* add to shared.css */
.step-button {
  font-family: var(--main-font);
  font-size: 1rem;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  border: none;
  background: var(--accent-color);
  color: #111;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition:
    transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 200ms ease;
}

.step-button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.step-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.step-button.ghost {
  background: transparent;
  color: var(--foreground-color);
  border: 1px solid var(--foreground-color);
}

.step-button-row {
  display: flex;
  gap: 1rem;
}
