@import 'tailwindcss';
@import 'primeicons/primeicons.css';

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background-color: #0b0b0b;
  font-family: 'Figtree', sans-serif !important;
  font-size: 16px;
  color: #fff;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.app-container {
  min-height: 100vh;
  display: flex;
  padding: 0 2em;
}

.back-to-top {
  background: #0b0b0b;
  aspect-ratio: 1;
  font-weight: 500;
  border-radius: 0.75rem;
  border: 1px solid #333;
  width: 50px;
  position: fixed;
  right: 2.3em;
  z-index: 98;
  box-shadow: 10px 0 25px rgba(0, 0, 0, 0.2);
  transition:
    opacity 0.3s ease,
    bottom 0.3s ease;
  opacity: 0;
  bottom: 1em;
  cursor: default;
}

.back-to-top.visible {
  opacity: 1;
  bottom: 2.5em;
  cursor: pointer;
}

.v-code-block--code-copy-button {
  border: 1px solid #333;
  border-radius: 8px;
  padding: 0.8em !important;
  height: 35px !important;
  top: 0.5em !important;
  right: 0.5em !important;
}

.v-code-block--code-copy-button.v-code-block--code-copy-button-status-success svg {
  fill: #27ff64 !important;
}

.v-code-block--code-copy-button svg {
  fill: #ffffff !important;
}

@media (max-width: 640px) {
  .p-toast {
    position: fixed !important;
    bottom: 1rem !important;
    right: 1rem !important;
    left: 1rem !important;
    width: auto !important;
    max-width: calc(100vw - 2rem) !important;
  }

  .p-toast-message {
    max-width: 100% !important;
    min-width: unset !important;
    width: 100% !important;
    margin: 0 !important;
    font-size: 0.875rem !important;
    padding: 0.75rem !important;
    box-sizing: border-box !important;
  }

  .p-toast-message-content {
    padding: 0.5rem !important;
    gap: 0.5rem !important;
  }

  .p-toast-message-text {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
  }

  .p-toast-message-summary {
    font-size: 0.875rem !important;
    line-height: 1.25 !important;
  }
}

/* MagicRings demo card */
.mr-demo-card {
  width: 340px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid #271e37;
  border-radius: 24px;
  overflow: hidden;
  font-family: inherit;
}

.mr-demo-card-visual {
  background-color: #17251420;
  border: 1px solid #271e37;
  position: relative;
  margin: 14px;
  border-radius: 16px;
  overflow: hidden;
  height: 220px;
}

.mr-demo-card-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.85;
  stroke: #aeffc5;
}

.mr-demo-card-body {
  padding: 10px 20px 20px;
}

.mr-demo-card-title {
  font-size: 26px;
  font-weight: 700;
  color: #e9f8ff;
  margin: 0;
}

.mr-demo-card-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}

.mr-demo-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

.mr-demo-card-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mr-demo-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.mr-demo-card-cta {
  flex: 1;
  padding: 12px 0;
  background: #aeffc5;
  color: black;
  border: none;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 120ms ease,
    filter 120ms ease,
    box-shadow 120ms ease;
  box-shadow: 0 4px 16px rgba(82, 39, 255, 0.25);
}

.mr-demo-card-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(82, 39, 255, 0.35);
}

.mr-demo-card-heart {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #271e37;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 200ms ease;
}

.mr-demo-card-heart:hover {
  border-color: #aeffc5;
}
