/* 
   TubeLogic Static Page Styles
   Systematic replication of Tailwind CSS utility classes
   Consolidated with documentation-specific styles
*/

:root {
  --background: #0c0c0e;
  --foreground: #f1f1f1;
  --card: #141417;
  --card-foreground: #f1f1f1;
  --popover: #141417;
  --popover-foreground: #f1f1f1;
  --primary: #dc2626;
  --primary-foreground: #ffffff;
  --secondary: #1a1a1d;
  --secondary-foreground: #aaaaaa;
  --muted: #1a1a1d;
  --muted-foreground: #888888;
  --accent: #dc2626;
  --accent-foreground: #ffffff;
  --destructive: #ef4444;
  --destructive-foreground: #f8fafc;
  --border: rgba(255, 255, 255, 0.08);
  --input: rgba(255, 255, 255, 0.08);
  --ring: #dc2626;
  --radius: 0.75rem;
  --sidebar-width: 280px;

  /* Cyberpunk Red Palette */
  --red-600: #dc2626;
  --red-500: #ef4444;
  --red-400: #f87171;
  --red-glow: rgba(220, 38, 38, 0.4);
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Variables already default to dark for this theme */
  }
}

/* ── Base ────────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── Layout ────────────────────────────────────────────────────────────── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }
.grow { flex-grow: 1; }
.shrink-0 { flex-shrink: 0; }

.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

/* ── Spacing ───────────────────────────────────────────────────────────── */
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-0 { margin-bottom: 0px; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-40 { margin-bottom: 10rem; }
.mt-0 { margin-top: 0px; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }

.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-32 { padding-top: 8rem; padding-bottom: 8rem; }
.pt-20 { padding-top: 5rem; }
.pb-32 { padding-bottom: 8rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-12 { padding: 3rem; }
.pl-0 { padding-left: 0; }
.pl-6 { padding-left: 1.5rem; }

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-20 { gap: 5rem; }

.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-12 > * + * { margin-top: 3rem; }
.space-y-16 > * + * { margin-top: 4rem; }

/* ── Sizing ────────────────────────────────────────────────────────────── */
.w-2 { width: 0.5rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-32 { width: 8rem; }
.w-full { width: 100%; }
.h-2 { height: 0.5rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-16 { height: 4rem; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

.w-\[600px\] { width: 600px; }
.h-\[600px\] { height: 600px; }

.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-w-7xl { max-width: 80rem; }
.max-w-none { max-width: none; }

/* ── Colors & Backgrounds ──────────────────────────────────────────────── */
.bg-\[\#0f0f0f\] { background-color: var(--background); }
.bg-\[\#0f0f0f\]\/80 { background-color: rgba(12, 12, 14, 0.8); }
.bg-\[\#0a0a0a\] { background-color: var(--background); }
.bg-\[\#0c0c0e\] { background-color: var(--background); }
.bg-\[\#0c0c0e\]\/80 { background-color: rgba(12, 12, 14, 0.8); }
.bg-\[\#1a1a1a\] { background-color: var(--secondary); }
.bg-\[\#282828\] { background-color: var(--muted); }
.bg-\[\#333\] { background-color: #333; }
.bg-\[\#3f3f3f\] { background-color: #3f3f3f; }
.bg-red-400 { background-color: var(--red-400); }
.bg-red-500 { background-color: var(--red-500); }
.bg-red-600 { background-color: var(--red-600); }
.bg-red-600\/10 { background-color: rgba(220, 38, 38, 0.1); }
.bg-red-600\/20 { background-color: rgba(220, 38, 38, 0.2); }
.bg-red-600\/5 { background-color: rgba(220, 38, 38, 0.05); }
.bg-white { background-color: #ffffff; }

.text-\[\#f1f1f1\] { color: var(--foreground); }
.text-\[\#aaaaaa\] { color: var(--secondary-foreground); }
.text-\[\#e0e0e0\] { color: var(--foreground); }
.text-\[\#444\] { color: #444444; }
.text-\[\#666\] { color: #666666; }
.text-white { color: #ffffff; }
.text-white\/50 { color: rgba(255, 255, 255, 0.5); }
.text-black { color: #000000; }
.text-red-400 { color: var(--red-400); }
.text-red-500 { color: var(--red-500); }
.text-red-600 { color: var(--red-600); }
.text-cyan-400 { color: #22d3ee; }
.text-pink-400 { color: #f472b6; }
.text-purple-400 { color: #c084fc; }
.text-yellow-400 { color: #facc15; }

/* Selection */
.selection\:bg-red-600\/30 *::selection { background-color: rgba(220, 38, 38, 0.3); color: white; }
.selection\:bg-red-600\/30 ::selection { background-color: rgba(220, 38, 38, 0.3); color: white; }

/* Border */
.border { border: 1px solid currentColor; }
.border-b { border-bottom: 1px solid currentColor; }
.border-t { border-top: 1px solid currentColor; }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.border-white\/5 { border-color: rgba(255, 255, 255, 0.05); }
.border-red-600\/20 { border-color: rgba(220, 38, 38, 0.2); }
.border-red-600\/30 { border-color: rgba(220, 38, 38, 0.3); }
.border-\[\#3f3f3f\] { border-color: #3f3f3f; }
.border-\[\#444\] { border-color: #444; }

/* ── Typography ────────────────────────────────────────────────────────── */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-\[10px\] { font-size: 10px; }

.font-sans { font-family: system-ui, -apple-system, sans-serif; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }

.uppercase { text-transform: uppercase; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-tighter { letter-spacing: -0.05em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-\[0\.2em\] { letter-spacing: 0.2em; }
.leading-relaxed { line-height: 1.625; }
.leading-\[0\.9\] { line-height: 0.9; }

/* ── Effects ───────────────────────────────────────────────────────────── */
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }
.rounded-bl-xl { border-bottom-left-radius: 0.75rem; }

.blur { filter: blur(8px); }
.blur-\[120px\] { filter: blur(120px); }
.backdrop-blur-md { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.grayscale { filter: grayscale(100%); }
.opacity-25 { opacity: 0.25; }
.opacity-40 { opacity: 0.4; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.shadow-red-600\/10 { box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.1); }
.shadow-red-600\/20 { box-shadow: 0 10px 15px -3px rgba(220, 38, 38, 0.2); }
.shadow-\[0_0_15px_rgba\(220\,38\,38\,0\.4\)\] { box-shadow: 0 0 15px rgba(220, 38, 38, 0.4); }

.overflow-hidden { overflow: hidden; }
.cursor-not-allowed { cursor: not-allowed; }

/* ── Transitions & Transforms ──────────────────────────────────────────── */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color; transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-duration: 150ms; }
.duration-500 { transition-duration: 500ms; }
.duration-1000 { transition-duration: 1000ms; }

.-translate-x-1\/2 { transform: translateX(-50%); }
.-translate-y-1\/2 { transform: translateY(-50%); }
.left-1\/2 { left: 50%; }
.top-1\/2 { top: 50%; }
.-inset-1 { top: -0.25rem; right: -0.25rem; bottom: -0.25rem; left: -0.25rem; }

@keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }
.animate-ping { animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite; }

/* Hover States */
.hover\:bg-\[\#282828\]:hover { background-color: #282828; }
.hover\:bg-\[\#3f3f3f\]:hover { background-color: #3f3f3f; }
.hover\:bg-gray-200:hover { background-color: #e5e7eb; }
.hover\:bg-red-700:hover { background-color: #b91c1c; }
.hover\:border-white\/10:hover { border-color: rgba(255, 255, 255, 0.1); }
.hover\:grayscale-0:hover { filter: grayscale(0); }
.hover\:text-red-500:hover { color: #ef4444; }
.hover\:text-white:hover { color: #ffffff; }
.hover\:underline:hover { text-decoration: underline; }

/* Group Hover */
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.group:hover .group-hover\:opacity-40 { opacity: 0.4; }
.group:hover .group-hover\:bg-red-600 { background-color: #dc2626; }

/* ── Gradients ─────────────────────────────────────────────────────────── */
.bg-linear-to-r { background-image: linear-gradient(to right, var(--tw-gradient-from), var(--tw-gradient-to, rgba(220, 38, 38, 0))); }
.from-red-600 { --tw-gradient-from: #dc2626; }
.to-red-400 { --tw-gradient-to: #f87171; }

/* ── Media Queries ─────────────────────────────────────────────────────── */
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
}
@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:p-12 { padding: 3rem; }
  .md\:text-2xl { font-size: 1.5rem; }
  .md\:text-7xl { font-size: 4.5rem; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:order-1 { order: 1; }
  .lg\:order-2 { order: 2; }
}

/* ── Documentation & Custom Components ──────────────────────────────────── */
.docs-container { display: flex; max-width: 1400px; margin: 0 auto; padding: 0 1rem; }
.sidebar { width: var(--sidebar-width); position: sticky; top: 64px; height: calc(100vh - 64px); padding: 2rem 1.5rem 2rem 0; overflow-y: auto; border-right: 1px solid rgba(255, 255, 255, 0.05); }
.sidebar-link { display: block; padding: 0.75rem 1rem; border-radius: 0.75rem; color: #aaaaaa; font-size: 0.875rem; font-weight: 500; transition: all 0.2s; margin-bottom: 0.25rem; }
.sidebar-link:hover { background: rgba(255, 255, 255, 0.03); color: white; }
.sidebar-link.active { background: rgba(220, 38, 38, 0.1); color: #ef4444; border-left: 2px solid #ef4444; border-top-left-radius: 0; border-bottom-left-radius: 0; }

.doc-section { display: none; padding-bottom: 5rem; }
.doc-section.active { display: block; animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.content { flex: 1; padding: 3rem 0 3rem 3rem; max-width: 900px; }
.content h1 { font-size: 4rem; font-weight: 300; letter-spacing: -0.04em; margin-bottom: 2rem; color: #ffffff; line-height: 1; }
.content h2 { font-size: 2rem; font-weight: 700; margin-top: 4rem; margin-bottom: 1.5rem; color: #ffffff; display: flex; align-items: center; gap: 1rem; letter-spacing: -0.02em; }
.content h3 { font-size: 1.5rem; font-weight: 600; margin-top: 2.5rem; margin-bottom: 1rem; color: #f1f1f1; }
.content p { color: #aaaaaa; line-height: 1.8; margin-bottom: 1.5rem; font-size: 1.125rem; }
.content ul, .content ol { margin-bottom: 2rem; color: #aaaaaa; padding-left: 1.5rem; }
.content li { margin-bottom: 1rem; line-height: 1.8; }
.content code { background: rgba(220, 38, 38, 0.1); padding: 0.2rem 0.5rem; border-radius: 0.5rem; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 0.9em; color: #ef4444; }
.content pre { background: #08080a; border: 1px solid rgba(255, 255, 255, 0.08); padding: 1.5rem; border-radius: 1.25rem; overflow-x: auto; margin: 1.5rem 0; color: #d1d1d1; font-size: 0.95rem; line-height: 1.6; }

.glass-card { background: rgba(25, 25, 30, 0.4); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 2rem; padding: 2.5rem; margin: 2.5rem 0; transition: border-color 0.3s; }
.glass-card:hover { border-color: rgba(220, 38, 38, 0.2); }

.node-badge { display: inline-flex; align-items: center; padding: 0.4rem 1rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; background: rgba(220, 38, 38, 0.15); color: #ef4444; margin-bottom: 1.5rem; border: 1px solid rgba(220, 38, 38, 0.2); }

.example-query { border-left: 4px solid #ef4444; background: rgba(220, 38, 38, 0.06); padding: 1.5rem 2rem; border-radius: 0 1.25rem 1.25rem 0; margin: 2rem 0; font-style: italic; color: #f1f1f1; font-size: 1.2rem; }
.image-placeholder { aspect-ratio: 16/9; background: linear-gradient(45deg, #0f0f15, #1a1a25); border-radius: 1rem; display: flex; align-items: center; justify-content: center; border: 1px dashed rgba(255, 255, 255, 0.1); color: #444; margin-bottom: 2rem; overflow: hidden; position: relative; }
.image-placeholder::after { content: 'VISUAL PREVIEW'; font-weight: 900; font-size: 2rem; opacity: 0.05; letter-spacing: 0.5em; }
