/* Orchid Labs Blog — Custom Styles
   Tailwind CDN handles utility classes; this file covers
   custom properties, prose styling, and component overrides.
   Font & color values sourced from orchid.com/css/styleguide.css */

/* ── Color tokens (matching orchid.com palette) ── */
:root {
  --color-primary: #8263ff;
  --color-primary-container: #a789ff;
  --color-on-primary: #ffffff;
  --color-on-primary-container: #441a86;
  --color-secondary: #68f5da;
  --color-on-secondary: #0f0f0f;
  --color-surface: #0f0f0f;
  --color-surface-container: #212121;
  --color-surface-container-low: #090909;
  --color-surface-container-lowest: #040404;
  --color-surface-container-high: #2c2c2c;
  --color-surface-container-highest: #2c2c2c;
  --color-surface-variant: #212121;
  --color-on-surface: #ffffff;
  --color-on-surface-variant: #ae9aff;
  --color-outline: #2c2c2c;
  --color-outline-variant: #2c2c2c;
  --color-error: #ffb4ab;
  --font-family: "Figtree", Helvetica, sans-serif;
}

/* ── Material Symbols ── */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ── Glass nav ── */
.glass-nav {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ── Hero gradient overlay ── */
.hero-gradient-overlay {
  background: linear-gradient(
    to top,
    #0f0f0f 0%,
    rgba(15, 15, 15, 0.85) 40%,
    rgba(15, 15, 15, 0.5) 100%
  );
}

/* ── Prose: article body styling ── */
.prose {
  color: var(--color-on-surface);
  font-family: var(--font-family);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.4px;
  max-width: 72ch;
}

.prose h1, .prose h2, .prose h3, .prose h4 {
  color: #fff;
  font-family: var(--font-family);
  font-weight: 800;
  letter-spacing: 0.8px;
  margin-top: 2em;
  margin-bottom: 0.75em;
  line-height: 1.2;
}

.prose h1 { font-size: 2.5rem; letter-spacing: 1.2px; }
.prose h2 { font-size: 2rem; }
.prose h3 { font-size: 1.5rem; font-weight: 700; }
.prose h4 { font-size: 1.25rem; font-weight: 600; }

.prose p {
  margin-bottom: 1.5em;
  color: rgba(255, 255, 255, 0.9);
}

.prose a {
  color: var(--color-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
  transition: color 0.2s;
}

.prose a:hover {
  color: var(--color-primary-container);
}

.prose strong {
  color: #fff;
  font-weight: 700;
}

.prose em {
  font-style: italic;
}

.prose ul, .prose ol {
  margin-bottom: 1.5em;
  padding-left: 1.5em;
  color: rgba(255, 255, 255, 0.9);
}

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

.prose li {
  margin-bottom: 0.5em;
}

.prose blockquote {
  border-left: 3px solid var(--color-primary);
  padding-left: 1.5em;
  margin: 2em 0;
  color: var(--color-on-surface-variant);
  font-style: italic;
}

.prose pre {
  background: var(--color-surface-container-lowest);
  border: 1px solid var(--color-outline-variant);
  border-radius: 0.5rem;
  padding: 1.5em;
  overflow-x: auto;
  margin: 2em 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.prose code {
  font-family: 'SF Mono', 'Fira Code', 'Fira Mono', monospace;
  font-size: 0.875em;
}

.prose :not(pre) > code {
  background: var(--color-surface-container-high);
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  color: var(--color-secondary);
}

.prose img {
  border-radius: 0.75rem;
  margin: 2em 0;
  width: 100%;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--color-outline-variant);
  margin: 3em 0;
}

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

.prose th {
  text-align: left;
  padding: 0.75em 1em;
  border-bottom: 2px solid var(--color-outline-variant);
  color: #fff;
  font-weight: 700;
}

.prose td {
  padding: 0.75em 1em;
  border-bottom: 1px solid var(--color-outline-variant);
  color: rgba(255, 255, 255, 0.9);
}

/* ── Post card hover glow ── */
.post-card:hover .post-card-title {
  text-shadow: 0 0 15px rgba(130, 99, 255, 0.3);
}

/* ── Tag pill ── */
.tag-pill {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-family: var(--font-family);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  transition: all 0.2s;
}

/* ── Selection ── */
::selection {
  background: rgba(130, 99, 255, 0.3);
}
