/* ==========================================================================
   tailwind-compat.css — static replacement for the Tailwind CDN
   Covers only the utility classes actually used in index.html.
   Matches the custom color palette defined in the former tailwind.config.
   ========================================================================== */

/* ---------- Minimal Preflight (reset Tailwind used to apply) ---------- */
button {
    background-color: transparent;
    background-image: none;
    border: 0;
    color: inherit;
    font: inherit;
    padding: 0;
    cursor: pointer;
}
a { color: inherit; text-decoration: inherit; }

/* ---------- Color tokens ---------- */
:root {
    --tw-primary: #d2bbff;
    --tw-on-primary: #3f008e;
    --tw-on-primary-container: #ede0ff;
    --tw-primary-container: #7c3aed;
    --tw-on-background: #dae2fd;
    --tw-background: #0b1326;
    --tw-surface: #0b1326;
    --tw-on-surface-variant: #ccc3d8;
    --tw-surface-container: #171f33;
    --tw-surface-container-low: #131b2e;
    --tw-surface-container-lowest: #060e20;
    --tw-surface-container-high: #222a3d;
    --tw-surface-container-highest: #2d3449;
    --tw-tertiary: #4cd6ff;
    --tw-tertiary-container: #00708a;
    --tw-outline: #958da1;
    --tw-outline-variant: #4a4455;
}

/* ---------- Display ---------- */
.hidden { display: none; }
.block { display: block; }
.inline { display: inline; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

/* ---------- Position ---------- */
.static { position: static; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.top-6 { top: 1.5rem; }
.right-0 { right: 0; }
.right-6 { right: 1.5rem; }
.right-8 { right: 2rem; }
.bottom-0 { bottom: 0; }
.bottom-8 { bottom: 2rem; }
.left-0 { left: 0; }

.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.z-60 { z-index: 60; }

/* ---------- Flexbox / Grid ---------- */
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }

.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }

.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

.self-start { align-self: flex-start; }
.self-center { align-self: center; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.col-span-1 { grid-column: span 1 / span 1; }
.col-span-2 { grid-column: span 2 / span 2; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-3\.5 { gap: 0.875rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* ---------- Spacing: padding ---------- */
.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-3\.5 { padding: 0.875rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-12 { padding: 3rem; }

.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }

.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }

/* ---------- Spacing: margin ---------- */
.m-0 { margin: 0; }
.m-auto { margin: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }

.mt-0 { margin-top: 0; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.mb-0\.5 { margin-bottom: 0.125rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-7 { margin-bottom: 1.75rem; }
.mb-8 { margin-bottom: 2rem; }

.ml-2 { margin-left: 0.5rem; }
.ml-4 { margin-left: 1rem; }
.ml-6 { margin-left: 1.5rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-4 { margin-right: 1rem; }

/* Space-between (Tailwind's space-y / space-x) */
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }
.space-y-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 2rem; }

/* ---------- Sizes ---------- */
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-2 { width: 0.5rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-16 { width: 4rem; }

.h-full { height: 100%; }
.h-auto { height: auto; }
.h-2 { height: 0.5rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }

.min-h-0 { min-height: 0; }
.min-w-0 { min-width: 0; }

.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }

.max-h-\[90vh\] { max-height: 90vh; }

/* ---------- Typography ---------- */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }

.font-light   { font-weight: 300; }
.font-normal  { font-weight: 400; }
.font-medium  { font-weight: 500; }
.font-semibold{ font-weight: 600; }
.font-bold    { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.font-headline { font-family: 'Space Grotesk', sans-serif; }
.font-body     { font-family: 'Inter', sans-serif; }
.font-label    { font-family: 'Inter', sans-serif; }

.leading-none    { line-height: 1; }
.leading-tight   { line-height: 1.25; }
.leading-snug    { line-height: 1.375; }
.leading-normal  { line-height: 1.5; }
.leading-relaxed { line-height: 1.625; }
.leading-loose   { line-height: 2; }

.tracking-tight  { letter-spacing: -0.025em; }
.tracking-normal { letter-spacing: 0; }
.tracking-wide   { letter-spacing: 0.025em; }
.tracking-wider  { letter-spacing: 0.05em; }
.opacity-75 { opacity: 0.75; }
.animate-ping {
    animation: tw-ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes tw-ping {
    75%, 100% { transform: scale(2); opacity: 0; }
}
.tracking-widest { letter-spacing: 0.1em; }

.uppercase  { text-transform: uppercase; }
.lowercase  { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }

.text-left   { text-align: left; }
.text-center { text-align: center; }
.text-right  { text-align: right; }

.break-words { overflow-wrap: break-word; }

.list-disc { list-style-type: disc; }
.list-none { list-style-type: none; }

.underline { text-decoration: underline; }
.no-underline { text-decoration: none; }

/* ---------- Colors: text ---------- */
.text-white   { color: #ffffff; }
.text-\[\#4ade80\] { color: #4ade80; }
.text-\[\#22c55e\] { color: #22c55e; }
.text-\[\#d2bbff\] { color: #d2bbff; }
.hover\:text-\[\#4ade80\]:hover { color: #4ade80; }
.bg-\[\#22c55e\] { background-color: #22c55e; }
.bg-\[\#4ade80\] { background-color: #4ade80; }
.border-\[\#22c55e\]\/20 { border-color: rgba(34,197,94,0.2); }
.text-black   { color: #000000; }
.text-on-background    { color: var(--tw-on-background); }
.text-on-surface-variant { color: var(--tw-on-surface-variant); }
.text-on-primary       { color: var(--tw-on-primary); }
.text-primary          { color: var(--tw-primary); }
.text-tertiary         { color: var(--tw-tertiary); }
.text-slate-400        { color: #94a3b8; }
.text-slate-500        { color: #64748b; }

.text-on-background\/80 { color: rgba(218, 226, 253, 0.8); }

/* ---------- Colors: background ---------- */
.bg-background              { background-color: var(--tw-background); }
.bg-surface                 { background-color: var(--tw-surface); }
.bg-surface-container       { background-color: var(--tw-surface-container); }
.bg-surface-container-low   { background-color: var(--tw-surface-container-low); }
.bg-surface-container-lowest{ background-color: var(--tw-surface-container-lowest); }
.bg-surface-container-high  { background-color: var(--tw-surface-container-high); }
.bg-surface-container-highest { background-color: var(--tw-surface-container-highest); }
.bg-primary                 { background-color: var(--tw-primary); }
.bg-primary-container       { background-color: var(--tw-primary-container); }
.bg-tertiary                { background-color: var(--tw-tertiary); }

.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-from), var(--tw-gradient-to)); }
.from-primary           { --tw-gradient-from: var(--tw-primary); }
.to-primary-container   { --tw-gradient-to: var(--tw-primary-container); }

/* ---------- Borders ---------- */
.border   { border-width: 1px; border-style: solid; }
.border-0 { border-width: 0; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }

.border-outline-variant\/10 { border-color: rgba(74, 68, 85, 0.1); }
.border-outline-variant\/15 { border-color: rgba(74, 68, 85, 0.15); }
.border-outline-variant\/20 { border-color: rgba(74, 68, 85, 0.2); }
.border-outline-variant\/30 { border-color: rgba(74, 68, 85, 0.3); }

.rounded    { border-radius: 0.125rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.25rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-\[2rem\] { border-radius: 2rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-\[2rem\] { border-radius: 2rem; }
.rounded-full { border-radius: 9999px; }

/* ---------- Effects ---------- */
.shadow    { box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1); }
.shadow-md { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); }
.shadow-primary\/40 { box-shadow: 0 25px 50px -12px rgba(210, 187, 255, 0.4); }

.opacity-0   { opacity: 0; }
.opacity-50  { opacity: 0.5; }
.opacity-70  { opacity: 0.7; }
.opacity-100 { opacity: 1; }

/* ---------- Overflow ---------- */
.overflow-hidden   { overflow: hidden; }
.overflow-visible  { overflow: visible; }
.overflow-auto     { overflow: auto; }
.overflow-y-auto   { overflow-y: auto; }
.overflow-x-hidden { overflow-x: hidden; }

/* ---------- Transitions ---------- */
.transition        { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 200ms; }
.hover\:scale-\[1\.02\]:hover { transform: scale(1.02); }
.active\:scale-\[0\.98\]:active { transform: scale(0.98); }
.hover\:bg-white\/10:hover { background-color: rgba(255,255,255,0.1); }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-opacity   { transition-property: opacity; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

.duration-150 { transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }

/* ---------- Cursor ---------- */
.cursor-pointer  { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

/* ---------- User select ---------- */
.select-none { user-select: none; }

/* ---------- Hover states ---------- */
.hover\:text-white:hover       { color: #ffffff; }
.hover\:text-on-background:hover { color: var(--tw-on-background); }
.hover\:underline:hover        { text-decoration: underline; }
.hover\:scale-105:hover        { transform: scale(1.05); }
.hover\:scale-110:hover        { transform: scale(1.10); }
.hover\:opacity-80:hover       { opacity: 0.8; }
.hover\:bg-surface-container:hover { background-color: var(--tw-surface-container); }

/* ---------- Active / focus ---------- */
.active\:scale-95:active  { transform: scale(0.95); }
.focus\:outline-none:focus { outline: none; }

/* ---------- Selection ---------- */
.selection\:bg-primary::selection        { background-color: var(--tw-primary); }
.selection\:text-on-primary::selection   { color: var(--tw-on-primary); }

/* ---------- Responsive: sm (640px+) ---------- */
@media (min-width: 640px) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:flex-row    { flex-direction: row; }
}

/* ---------- Responsive: md (768px+) ---------- */
@media (min-width: 768px) {
    .md\:p-8  { padding: 2rem; }
    .md\:p-12 { padding: 3rem; }
    .md\:px-8 { padding-left: 2rem; padding-right: 2rem; }
    .md\:py-8 { padding-top: 2rem; padding-bottom: 2rem; }

    .md\:text-2xl { font-size: 1.5rem;  line-height: 2rem; }
    .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
    .md\:text-4xl { font-size: 2.25rem;  line-height: 2.5rem; }
    .md\:text-5xl { font-size: 3rem;     line-height: 1; }

    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:col-span-2  { grid-column: span 2 / span 2; }

    .md\:flex-row { flex-direction: row; }
    .md\:gap-8    { gap: 2rem; }
}

/* ---------- Responsive: lg (1024px+) ---------- */
@media (min-width: 1024px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:flex-row    { flex-direction: row; }
}
