@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  :root {
    --header-offset: 96px;
  }

  * {
    @apply border-neon/20 outline-neon/50;
  }

  html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-offset);
  }

  body {
    @apply bg-black text-white;
  }

  h1 {
    @apply font-semibold;
    line-height: 1.2;
  }

  h2 {
    @apply font-semibold;
    line-height: 1.3;
  }

  h3 {
    @apply font-semibold;
    line-height: 1.4;
  }
}

#contact {
  scroll-margin-top: var(--header-offset);
}

@layer utilities {
  .text-gradient {
    @apply bg-gradient-to-r from-neon to-neon-dark bg-clip-text text-transparent;
  }

  .card-gradient {
    @apply bg-gradient-to-br from-card-light to-card-dark;
  }

  .glow-border {
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
  }

  .glow-border-light {
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
  }

  .glow-bg {
    box-shadow: 0 0 50px rgba(0, 255, 136, 0.2);
  }

  .border-glow {
    @apply border-neon/20 hover:border-neon/50 transition-all;
  }

  .image-loader {
    pointer-events: none;
  }
}

[data-state=closed] .accordion-content {
  animation: accordion-up 0.2s ease-out;
}

[data-state=open] .accordion-content {
  animation: accordion-down 0.2s ease-out;
}

.accordion-trigger[data-state=open] svg {
  transform: rotate(180deg);
}

.accordion-trigger svg {
  transition: transform 0.2s;
}

.prose {
  color: inherit;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  color: #ffffff;
  line-height: 1.2;
  margin: 1.6em 0 0.6em;
}

.prose h1 {
  font-size: 2.25rem;
}

.prose h2 {
  font-size: 1.8rem;
}

.prose h3 {
  font-size: 1.4rem;
}

.prose h4 {
  font-size: 1.15rem;
}

.prose h5 {
  font-size: 1rem;
}

.prose h6 {
  font-size: 0.95rem;
}

.prose p {
  margin: 0.8em 0;
}

.prose a {
  color: #00ff88;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: #8affc1;
}

.prose strong {
  color: #ffffff;
}

.prose em {
  color: #cbd5f5;
}

.prose ul,
.prose ol {
  padding-left: 1.4em;
  margin: 0.8em 0;
}

.prose li {
  margin: 0.35em 0;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose blockquote {
  border-left: 4px solid rgba(0, 255, 136, 0.6);
  padding: 0.5em 1em;
  margin: 1.2em 0;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.12), rgba(15, 23, 42, 0.75));
  box-shadow: inset 0 0 0 1px rgba(0, 255, 136, 0.12);
  border-radius: 12px;
}

.prose code {
  color: #00ff88;
  background: rgba(0, 255, 136, 0.08);
  padding: 0.1em 0.35em;
  border-radius: 6px;
  font-size: 0.95em;
}

.prose pre {
  background: rgba(2, 6, 23, 0.9);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  overflow-x: auto;
  margin: 1.2em 0;
}

.prose pre code {
  background: transparent;
  color: #d1fae5;
  padding: 0;
}

.prose hr {
  border: 0;
  border-top: 1px solid rgba(0, 255, 136, 0.2);
  margin: 2em 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0;
  font-size: 0.95em;
}

.prose th,
.prose td {
  border: 1px solid rgba(0, 255, 136, 0.2);
  padding: 0.6em 0.8em;
  text-align: left;
}

.prose th {
  color: #ffffff;
  background: rgba(0, 255, 136, 0.08);
}

.prose img,
.prose figure {
  max-width: 100%;
  margin: 1.4em auto;
}

.prose img {
  border-radius: 16px;
}

.prose figcaption {
  text-align: center;
  font-size: 0.9em;
  color: #94a3b8;
  margin-top: 0.6em;
}

.prose iframe {
  width: 100%;
  min-height: 320px;
  border-radius: 16px;
}
