/* === GLOBAL STYLES === */
.icon-white {
  filter: brightness(0) invert(1);
}

/* === GLASSMORPHISM === */
.glass-card {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
}

/* Glass card hover effect (index.html only) */
.glass-card-hover {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card-hover:hover {
  border-color: rgba(34, 211, 238, 0.4);
  transform: translateY(-4px) scale(1.01);
}

/* === BUTTONS === */
.btn-glow {
  background: linear-gradient(135deg, #22d3ee 0%, #818cf8 100%);
  box-shadow: 0 0 15px rgba(34, 211, 238, 0.4);
  color: #020617 !important;
}

#previewCanvas {
  /* Use !important to override any remaining Tailwind bg-white or other styles */
  background-color: #020617 !important;
  background-image: linear-gradient(45deg, #0f172a 25%, transparent 25%),
  linear-gradient(-45deg, #0f172a 25%, transparent 25%),
  linear-gradient(45deg, transparent 75%, #0f172a 75%),
  linear-gradient(-45deg, transparent 75%, #0f172a 75%) !important;
  background-size: 20px 20px !important;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0 !important;

  /* Ensure the canvas is display-block so it respects the background */
  display: block;
  image-rendering: pixelated;
}

/* === ANIMATIONS === */
@keyframes slowGlow {
  0%,
  100% {
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.4);
  }

  50% {
    box-shadow: 0 0 25px rgba(34, 211, 238, 0.7);
  }
}

@keyframes wiggle {
  0%,
  100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-8deg);
  }

  75% {
    transform: rotate(8deg);
  }
}

@keyframes rubberBand {
  0% {
    transform: scale3d(1, 1, 1);
  }

  30% {
    transform: scale3d(1.25, 0.75, 1);
  }

  40% {
    transform: scale3d(0.75, 1.25, 1);
  }

  100% {
    transform: scale3d(1, 1, 1);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-glow-animate {
  animation: slowGlow 3s infinite ease-in-out;
}

.group:hover .group-hover\:animate-wiggle {
  animation: wiggle 0.3s infinite;
}

.hover\:animate-rubberBand:hover {
  animation: rubberBand 0.6s both;
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.delay-100 {
  animation-delay: 0.15s;
}

.delay-200 {
  animation-delay: 0.3s;
}

.delay-300 {
  animation-delay: 0.45s;
}

.delay-400 {
  animation-delay: 0.6s;
}

/* === MOBILE MENU === */
#mobile-menu {
  transition: all 0.3s ease-in-out;
}

#mobile-menu:not(.hidden) {
  animation: slideDown 0.3s ease-out;
}

/* === DEXSCREENER EMBED === */
#dexscreener-embed {
  position: relative;
  width: 100%;
  height: 100%;
}

#dexscreener-embed iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border: 0;
}

/* === BUILDER-SPECIFIC === */
.image-render-pixelated {
  image-rendering: pixelated;
}

/* Custom Dropdown Styling with Visible Cyan Arrow */
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2322d3ee'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.2em;
  padding-right: 2.5rem;
}

/* === DOCS-SPECIFIC === */
.doc-content h2 {
  color: #22d3ee;
  font-size: 1.875rem;
  font-weight: 800;
  margin-top: 3rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(34, 211, 238, 0.2);
  padding-bottom: 0.5rem;
}

.doc-content h3 {
  color: #818cf8;
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.doc-content p {
  margin-bottom: 1.5rem;
  color: #94a3b8;
  line-height: 1.8;
}

.doc-content ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: #94a3b8;
}

.doc-content li {
  margin-bottom: 0.5rem;
}

.doc-content strong {
  color: #f1f5f9;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.fact-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
