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

@layer base {
  /* Smooth font rendering */
  html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

@layer components {
  /* Transition defaults for interactive elements */
  .transition-default {
    @apply transition-all duration-150 ease-in-out;
  }

  /* Focus ring style (consistent across all interactive elements) */
  .focus-ring {
    @apply focus:outline-none focus:ring-2 focus:ring-primary-600 focus:ring-offset-2;
  }

  /* Turbo progress bar */
  .turbo-progress-bar {
    @apply bg-primary-600;
    height: 3px;
  }

  /* ═══════════════════════════════════════════════════════════════
     Blog / Article Content Styling
     Applied via .blog-content on the article wrapper.
     Styles all standard HTML elements for rich content rendering.
     ═══════════════════════════════════════════════════════════════ */
  .blog-content {
    color: #374151; /* gray-700 */
    font-size: 1.125rem; /* text-lg */
    line-height: 1.8;
  }

  .blog-content p {
    margin-bottom: 1.5em;
  }

  .blog-content h2 {
    color: #1E1B4B; /* ds-dark-text */
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 2.5em;
    margin-bottom: 0.75em;
    letter-spacing: -0.01em;
  }

  .blog-content h3 {
    color: #1E1B4B;
    font-size: 1.375rem;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 2em;
    margin-bottom: 0.6em;
  }

  .blog-content h4 {
    color: #1E1B4B;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.5;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
  }

  .blog-content a {
    color: #7C3AED; /* accent-purple */
    text-decoration: underline;
    text-underline-offset: 2px;
  }
  .blog-content a:hover {
    color: #A855F7; /* accent-electric */
  }

  .blog-content strong {
    color: #1E1B4B;
    font-weight: 600;
  }

  .blog-content em {
    font-style: italic;
  }

  .blog-content ul {
    list-style-type: disc;
    padding-left: 1.75em;
    margin-bottom: 1.5em;
  }

  .blog-content ol {
    list-style-type: decimal;
    padding-left: 1.75em;
    margin-bottom: 1.5em;
  }

  .blog-content li {
    margin-bottom: 0.5em;
    padding-left: 0.25em;
  }

  .blog-content li::marker {
    color: #7C3AED; /* accent-purple */
  }

  .blog-content blockquote {
    border-left: 4px solid #7C3AED;
    padding: 1em 1.5em;
    margin: 1.5em 0;
    background: #F5F3FF; /* purple-50 */
    border-radius: 0 0.5rem 0.5rem 0;
    color: #4B5563; /* gray-600 */
    font-style: italic;
  }

  .blog-content code {
    background: #F3F4F6; /* gray-100 */
    color: #7C3AED;
    padding: 0.15em 0.4em;
    border-radius: 0.25rem;
    font-size: 0.875em;
    font-family: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
  }

  .blog-content pre {
    background: #1E1B4B;
    color: #EDE9FE;
    padding: 1.25em 1.5em;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin: 1.5em 0;
    font-size: 0.875em;
    line-height: 1.7;
  }
  .blog-content pre code {
    background: none;
    color: inherit;
    padding: 0;
    font-size: inherit;
  }

  .blog-content hr {
    border: none;
    border-top: 1px solid #E5E7EB;
    margin: 2.5em 0;
  }

  .blog-content img {
    border-radius: 0.75rem;
    margin: 2em 0;
    max-width: 100%;
    height: auto;
  }

  .blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.95em;
  }
  .blog-content th {
    background: #F9FAFB;
    color: #1E1B4B;
    font-weight: 600;
    text-align: left;
    padding: 0.75em 1em;
    border-bottom: 2px solid #E5E7EB;
  }
  .blog-content td {
    padding: 0.75em 1em;
    border-bottom: 1px solid #F3F4F6;
  }

  /* First element: remove top margin */
  .blog-content > *:first-child {
    margin-top: 0;
  }

  /* Discovery product card slide-in animation */
  @keyframes slideIn {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *


 */

/* SVG icon defaults - scoped to Heroicons only */
svg[data-icon] {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

svg[data-icon] path {
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ═══════════════════════════════════════════════════════════════
   Blog / Article Content Styling
   Applied via .blog-content on the article wrapper.
   Styles all standard HTML elements for rich content rendering.
   Works for current and all future blog posts.
   ═══════════════════════════════════════════════════════════════ */
.blog-content {
  color: #374151;
  font-size: 1.125rem;
  line-height: 1.8;
}

.blog-content > *:first-child {
  margin-top: 0;
}

.blog-content p {
  margin-top: 0;
  margin-bottom: 1.5em;
}

.blog-content h2 {
  color: #1E1B4B;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2.5em;
  margin-bottom: 0.75em;
  letter-spacing: -0.01em;
}

.blog-content h3 {
  color: #1E1B4B;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 2em;
  margin-bottom: 0.6em;
}

.blog-content h4 {
  color: #1E1B4B;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.5;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.blog-content a {
  color: #7C3AED;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
}
.blog-content a:hover {
  color: #A855F7;
}

.blog-content strong,
.blog-content b {
  color: #1E1B4B;
  font-weight: 600;
}

.blog-content em,
.blog-content i {
  font-style: italic;
}

.blog-content ul {
  list-style-type: disc;
  padding-left: 1.75em;
  margin-top: 0;
  margin-bottom: 1.5em;
}

.blog-content ol {
  list-style-type: decimal;
  padding-left: 1.75em;
  margin-top: 0;
  margin-bottom: 1.5em;
}

.blog-content li {
  margin-bottom: 0.5em;
  padding-left: 0.25em;
}

.blog-content li::marker {
  color: #7C3AED;
}

.blog-content blockquote {
  border-left: 4px solid #7C3AED;
  padding: 1em 1.5em;
  margin: 1.5em 0;
  background: #F5F3FF;
  border-radius: 0 0.5rem 0.5rem 0;
  color: #4B5563;
  font-style: italic;
}

.blog-content code {
  background: #F3F4F6;
  color: #7C3AED;
  padding: 0.15em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
}

.blog-content pre {
  background: #1E1B4B;
  color: #EDE9FE;
  padding: 1.25em 1.5em;
  border-radius: 0.75rem;
  overflow-x: auto;
  margin: 1.5em 0;
  font-size: 0.875em;
  line-height: 1.7;
}
.blog-content pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
}

.blog-content hr {
  border: none;
  border-top: 1px solid #E5E7EB;
  margin: 2.5em 0;
}

.blog-content img {
  border-radius: 0.75rem;
  margin: 2em 0;
  max-width: 100%;
  height: auto;
}

.blog-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.95em;
}
.blog-content th {
  background: #F9FAFB;
  color: #1E1B4B;
  font-weight: 600;
  text-align: left;
  padding: 0.75em 1em;
  border-bottom: 2px solid #E5E7EB;
}
.blog-content td {
  padding: 0.75em 1em;
  border-bottom: 1px solid #F3F4F6;
}
