@import "tailwindcss";
@font-face {
  font-family: "DMSans";
  src: url("../fonts/DMSans.ttf") format("truetype");

  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

.gradient-text {
  background: linear-gradient(45deg, #10b981, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text; /* Added standard property */
  -webkit-text-fill-color: transparent;
}
.feature-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.glassmorphic {
  backdrop-filter: blur(10px); /* Increased blur for better effect */
  background-color: rgba(
    39,
    39,
    42,
    0.5
  ); /* Slightly darker zinc-800 with opacity */
  border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
}
.hero-bg-gradient {
  background: radial-gradient(
      ellipse at top,
      rgba(22, 163, 74, 0.15),
      transparent 60%
    ),
    /* Subtle green glow from top */
      radial-gradient(
        ellipse at bottom,
        rgba(59, 130, 246, 0.15),
        transparent 70%
      ); /* Subtle blue glow from bottom */
}
/* Styles for hamburger menu toggle */
#menu-toggle:checked ~ #menu-links {
  display: block; /* Show menu when checkbox is checked */
}

/* On mobile, when menu is open, links should stack vertically and be centered */
#menu-toggle:checked ~ #menu-links a {
  width: 100%;
  text-align: center;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.tooltip {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background-color: #18181b;
  color: #34d399;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  white-space: nowrap;
  z-index: 10;
}

.group:hover .tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(8px);
}

.unicode-scroller::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.unicode-scroller::-webkit-scrollbar-track {
  background: #3f3f46;
  border-radius: 4px;
}

.unicode-scroller::-webkit-scrollbar-thumb {
  background: #52525b;
  border-radius: 4px;
}

.unicode-scroller::-webkit-scrollbar-thumb:hover {
  background: #6366f1;
}

/* Blinking cursor */
#editor:empty:after {
  content: "|";
  animation: blink 1s step-end infinite;
}
.brand:empty:after {
  content: "_";
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  from,
  to {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
/* Add to your existing style tag */
#unicode-suggestion {
  transition: all 0.2s ease;
}

.suggestion-popup {
  transform-origin: bottom left;
  animation: scaleIn 0.15s ease-out;
}

.suggestion-trigger {
  will-change: transform;
}
.animate-scaleIn {
  animation: scaleIn 0.15s ease-out;
}
@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
/* Ensure menu is flex on md and larger screens, overriding the 'hidden' class if toggle was active */
/* Also reset mobile-specific styles for links */
@media (min-width: 768px) {
  /* md breakpoint in Tailwind */
  #menu-links {
    display: flex !important;
    flex-direction: row;
    width: auto !important;
  }
  #menu-links a {
    width: auto;
    text-align: left;
    padding-top: 0;
    padding-bottom: 0;
  }
}
