@import "tailwindcss";

/* Base theme definition */
@theme {
  --color-primary-blue: #0071e3;
  --color-deep-blue: #004cc2;
  --color-bluegray: #606080;
  --color-dark-gray: #1a1a1a;
  --color-mid-gray: #a0a0a0;
  --color-light-gray: #f0f0f0;
  --color-base: #e0e0e0;
  --color-card: rgba(255, 255, 255, 0.1);
}

/* Focus and selection states */
:focus-visible {
  outline: 2px solid var(--color-base);
  outline-offset: 2px;
}

::selection {
  background-color: var(--color-base);
  color: var(--color-black);
}

/* Base HTML styles */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;

  & [id] {
    scroll-margin-top: 100px;
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Icons",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.022em;
  text-rendering: optimizeLegibility;
  background-color: var(--color-black);
  color: var(--color-base);
}

/* Prose typography styles */
.prose {
  & a {
    color: var(--color-yellow-500);

    &:hover {
      color: var(--color-yellow-700);
    }
  }

  & h3 {
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1rem;

    & a {
      margin-left: 0.5rem;
      opacity: 0;
    }
  }

  & h4 {
    font-weight: 500;
    margin-top: 1rem;
    margin-bottom: 0.5rem;

    & a {
      margin-left: 0.5rem;
      opacity: 0;
    }
  }

  & ul,
  & ol {
    margin-top: 1rem;
    margin-bottom: 1rem;
  }
}

.group:hover {
  & .prose h3 a,
  & .prose h4 a {
    opacity: 100;
    color: var(--color-yellow-700);
    text-decoration: none;
  }
}

/* FAQ Styles */
.faq-details {
  & a {
    color: var(--color-yellow-500);
    text-decoration: none;
    transition: color 0.2s;

    &:hover {
      color: var(--color-yellow-700);
    }
  }

  & ul,
  & ol {
    list-style-position: outside;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
  }

  & ul {
    list-style-type: disc;
  }

  & ol {
    list-style-type: decimal;
  }

  & li {
    margin-bottom: 0.5rem;
    display: list-item;
  }

  & p {
    margin-bottom: 1rem;
  }

  & strong {
    font-weight: 600;
  }

  & summary {
    list-style: none;

    &::-webkit-details-marker {
      display: none;
    }
  }
}

/* Mobile menu management */
.mobile-menu-open {
  overflow: hidden;
}

#mobile-menu {
  &.hidden {
    display: none;
  }

  &.block {
    display: block;
  }
}

/* Coming soon component */
.coming-soon-card {
  opacity: 0.75;
  filter: grayscale(30%);
  pointer-events: none;
  position: relative;

  &::before {
    content: "Coming Soon";
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--color-bluegray);
    color: var(--color-black);
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    border-radius: 0.3rem;
    font-weight: bold;
    pointer-events: none;
    z-index: 10;
  }

  &::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--color-black);
    opacity: 0.1;
    border-radius: 0.75rem;
    pointer-events: none;
  }
}

/* Apply Tailwind plugins */
@plugin "@tailwindcss/typography";
