@import "tailwindcss";

@plugin "daisyui/theme" {
  name: "llm-console";
  default: true;
  prefersdark: false;
  color-scheme: "dark";
  --color-base-100: oklch(100% 0 0);
  --color-base-200: oklch(98% 0 0);
  --color-base-300: oklch(95% 0 0);
  --color-base-content: oklch(21% 0.006 285.885);
  --color-primary: oklch(45% 0.24 277.023);
  --color-primary-content: oklch(93% 0.034 272.788);
  --color-secondary: oklch(65% 0.241 354.308);
  --color-secondary-content: oklch(94% 0.028 342.258);
  --color-accent: oklch(77% 0.152 181.912);
  --color-accent-content: oklch(38% 0.063 188.416);
  --color-neutral: oklch(14% 0.005 285.823);
  --color-neutral-content: oklch(92% 0.004 286.32);
  --color-info: oklch(74% 0.16 232.661);
  --color-info-content: oklch(29% 0.066 243.157);
  --color-success: oklch(76% 0.177 163.223);
  --color-success-content: oklch(37% 0.077 168.94);
  --color-warning: oklch(82% 0.189 84.429);
  --color-warning-content: oklch(41% 0.112 45.904);
  --color-error: oklch(71% 0.194 13.428);
  --color-error-content: oklch(27% 0.105 12.094);
  --radius-selector: 0.5rem;
  --radius-field: 0.25rem;
  --radius-box: 0.5rem;
  --size-selector: 0.25rem;
  --size-field: 0.25rem;
  --border: 1px;
  --depth: 1;
  --noise: 0;
  --neon-color: #bc13fe;
}

@plugin "daisyui" {
  themes: [ "llm-console"];
}

/* Neon Text Effects */
.neon-text-red {
  color: #22262a;
  font-weight: bold;
  text-shadow:
    2px -2px 0 rgba(255, 0, 0, 0.15),
    -2px 2px 0 rgba(255, 0, 0, 0.15),
    -2px -2px 0 rgba(255, 0, 0, 0.15),
    2px -2px 0 rgba(255, 0, 0, 0.15),
    0 0 7px #fff,
    0 0 10px #fff,
    0 0 21px #fff,
    0 0 42px #f00,
    0 0 82px #f00,
    0 0 24px #f00,
    0 0 32px #f00,
    0 0 151px #f00;
}

.text-stroke-red {
  -webkit-text-stroke: 1px #f8f8f8;
  text-shadow: 0px 2px 4px red;
}

.neon-text-blue {
  color: #22262a;
  font-weight: bold;
  text-shadow:
    2px -2px 0 #00f,
    0 0 7px #fff,
    0 0 10px #fff,
    0 0 21px #fff,
    0 0 42px #00f,
    0 0 82px #00f,
    0 0 24px #00f,
    0 0 32px #00f,
    0 0 151px #00f;
}

.blinking-red {
  animation: neon-flicker-red 1.5s infinite alternate;
}

.blinking-blue {
  animation: neon-flicker-blue 1.5s infinite alternate;
}

.neon-text-large {
  font-size: 3rem;
}

.neon-text-medium {
  font-size: 2rem;
}

.neon-text-small {
  font-size: 1.5rem;
}

.neon-text-subtitle {
  font-size: 1.2rem;
}

/* Red neon flickering animation */
@keyframes neon-flicker-red {
  0%,
  18%,
  22%,
  25%,
  53%,
  57%,
  100% {
    text-shadow:
      2px 2px 0 rgba(255, 0, 0, 0.15),
      -2px 2px 0 rgba(255, 0, 0, 0.15),
      -2px -2px 0 rgba(255, 0, 0, 0.15),
      2px -2px 0 rgba(255, 0, 0, 0.15),
      0 0 7px #fff,
      0 0 10px #fff,
      0 0 21px #fff,
      0 0 42px #f00,
      0 0 82px #f00,
      0 0 24px #f00,
      0 0 32px #f00,
      0 0 151px #f00;
  }

  20%,
  24%,
  55% {
    text-shadow: none;
  }
}

@keyframes neon-flicker-blue {
  0%,
  18%,
  20%,
  22%,
  25%,
  53%,
  57%,
  100% {
    text-shadow:
      2px 2px 0 rgba(0, 0, 255, 0.15),
      -2px 2px 0 rgba(0, 0, 255, 0.15),
      -2px -2px 0 rgba(0, 0, 255, 0.15),
      2px -2px 0 rgba(0, 0, 255, 0.15),
      0 0 7px #fff,
      0 0 10px #fff,
      0 0 21px #fff,
      0 0 42px #00f,
      0 0 82px #00f,
      0 0 24px #00f,
      0 0 32px #00f,
      0 0 151px #00f;
  }

  20%,
  24%,
  55% {
    text-shadow: none;
  }
}

/* Responsive neon text sizes */
@media (min-width: 640px) {
  .neon-text-large {
    font-size: 4rem;
  }

  .neon-text-medium {
    font-size: 2.5rem;
  }

  .neon-text-subtitle {
    font-size: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .neon-text-large {
    font-size: 5rem;
  }

  .neon-text-medium {
    font-size: 3rem;
  }

  .neon-text-subtitle {
    font-size: 1.8rem;
  }
}

.neon-effect {
  margin: 0;
  font-size: 2rem;
  font-weight: normal;
  border: 0.03em solid #fff;
  border-radius: 0.4em;
  padding: 0.4em;
  text-shadow:
    0 0 2px #fff,
    0 0 4px #fff,
    0 0 6px #fff,
    0 0 15px var(--neon-color),
    0 0 23px var(--neon-color),
    0 0 36px var(--neon-color),
    0 0 42px var(--neon-color),
    0 0 67px var(--neon-color);
  box-shadow:
    0 0 3px #fff,
    0 0 3px #fff,
    0 0 33px var(--neon-color),
    0 0 36px var(--neon-color),
    0 0 45px var(--neon-color),
    inset 0 0 21px var(--neon-color);
}

@keyframes pulsate {
  0% {
    text-shadow:
      0 0 2px #fff,
      0 0 4px #fff,
      0 0 6px #fff,
      0 0 15px var(--neon-color),
      0 0 23px var(--neon-color),
      0 0 36px var(--neon-color),
      0 0 42px var(--neon-color),
      0 0 67px var(--neon-color);
  }

  100% {
    text-shadow:
      0 0 5px #fff,
      0 0 9px #fff,
      0 0 18px #fff,
      0 0 36px var(--neon-color),
      0 0 49px var(--neon-color),
      0 0 65px var(--neon-color),
      0 0 89px var(--neon-color),
      0 0 140px var(--neon-color);
  }
}

/* Markdown Prose Styles for LLM Responses */
.prose {
  color: oklch(var(--bc));
}

.prose p {
  margin-bottom: 1em;
  line-height: 1.7;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose strong {
  font-weight: 600;
  color: oklch(var(--bc));
}

.prose em {
  font-style: italic;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  color: oklch(var(--bc));
}

.prose h1 {
  font-size: 1.5em;
}
.prose h2 {
  font-size: 1.35em;
}
.prose h3 {
  font-size: 1.2em;
}
.prose h4 {
  font-size: 1.1em;
}
.prose h5 {
  font-size: 1em;
}
.prose h6 {
  font-size: 0.95em;
}

.prose h1:first-child,
.prose h2:first-child,
.prose h3:first-child,
.prose h4:first-child,
.prose h5:first-child,
.prose h6:first-child {
  margin-top: 0;
}

.prose ul,
.prose ol {
  margin-top: 0.75em;
  margin-bottom: 0.75em;
  padding-left: 1.5em;
}

.prose ul {
  list-style-type: disc;
}

.prose ol {
  list-style-type: decimal;
}

.prose li {
  margin-top: 0.25em;
  margin-bottom: 0.25em;
  line-height: 1.6;
}

.prose li > p {
  margin: 0.25em 0;
}

.prose ul ul,
.prose ul ol,
.prose ol ul,
.prose ol ol {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.prose code {
  background-color: oklch(var(--b2));
  color: oklch(var(--bc));
  padding: 0.125em 0.3em;
  border-radius: 0.25rem;
  font-size: 0.9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.prose pre {
  background-color: oklch(var(--b2));
  border: 1px solid oklch(var(--b3));
  border-radius: 0.5rem;
  padding: 1em;
  overflow-x: auto;
  margin: 1em 0;
  line-height: 1.5;
}

.prose pre code {
  background-color: transparent;
  padding: 0;
  font-size: 0.875em;
}

.prose blockquote {
  border-left: 4px solid oklch(var(--p));
  padding-left: 1em;
  margin: 1em 0;
  font-style: italic;
  color: oklch(var(--bc) / 0.8);
}

.prose a {
  color: oklch(var(--p));
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:hover {
  color: oklch(var(--pf));
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
}

.prose th {
  background-color: oklch(var(--b2));
  font-weight: 600;
  text-align: left;
  padding: 0.5em 0.75em;
  border: 1px solid oklch(var(--b3));
}

.prose td {
  padding: 0.5em 0.75em;
  border: 1px solid oklch(var(--b3));
}

.prose hr {
  border: none;
  border-top: 1px solid oklch(var(--b3));
  margin: 1.5em 0;
}

.prose del {
  text-decoration: line-through;
  opacity: 0.7;
}

.prose sup {
  font-size: 0.75em;
  vertical-align: super;
}

.prose sub {
  font-size: 0.75em;
  vertical-align: sub;
}
