@import "tailwindcss";
@import "./dracula.css";
@import "@fontsource/fira-code" layer(base);
@plugin "@tailwindcss/typography";
@config '../../tailwind.config.mjs';

/*
  The default border color has changed to `currentcolor` in Tailwind CSS v4,
  so we've added these compatibility styles to make sure everything still
  looks the same as it did with Tailwind CSS v3.

  If we ever want to remove these styles, we need to add an explicit border
  color utility to any element that depends on these defaults.
*/
@layer base {
  *,
  ::after,
  ::before,
  ::backdrop,
  ::file-selector-button {
    border-color: var(--color-gray-200, currentcolor);
  }
}

@utility copy-code {
  @apply absolute top-0 right-0 bg-dracula-dark/80 px-2 py-1 text-xs text-dracula-light hover:bg-dracula-dark;
}

@utility ghost-link {
  @apply text-dracula-light transition hover:text-dracula-pink;
}

@utility ghost-link-underline {
  @apply ghost-link underline underline-offset-4;
}

@utility card-static {
  @apply bg-dracula-dark/20;
}

@utility card-hoverable {
  @apply cursor-pointer card-static transition hover:bg-dracula-dark;
}

@utility card-input {
  @apply card-hoverable cursor-text px-8 py-4 text-dracula-light placeholder-dracula-blue focus:bg-dracula-dark focus:outline-hidden;
}

@layer base {
  del {
    @apply text-dracula-blue;
  }

  code {
    @apply font-code break-all;
  }

  pre {
    @apply rounded-none! bg-dracula-dark/30!;
  }

  ::selection {
    @apply bg-dracula-blue;
  }

  ::-webkit-scrollbar {
    width: 4px;
    height: 4px;
  }

  ::-webkit-scrollbar-track {
    background-color: transparent;
  }

  ::-webkit-scrollbar-thumb {
    background-color: var(--color-dracula-purple-400);
  }

  ::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-dracula-purple);
  }
}
