/* Relectric Studio — Server-Side App Styles */

:root {
    --relectric-bg: #0a0a0a;
    --relectric-surface: #141414;
    --relectric-surface-2: #1a1a1a;
    --relectric-border: #262626;
    --relectric-border-hover: #3a3a3a;
    --relectric-text: #e4e4e7;
    --relectric-text-muted: #a1a1aa;
    --relectric-accent: #10b981;
    --relectric-accent-hover: #059669;
    --relectric-accent-glow: rgba(16, 185, 129, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--relectric-bg);
    color: var(--relectric-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

p {
    color: var(--relectric-text-muted);
}

/* Code */
pre {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.875rem;
    line-height: 1.75;
}

code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

/* Syntax Highlighting */
.keyword { color: #c084fc; }
.class-name { color: #60a5fa; }
.function { color: #a78bfa; }
.string { color: #34d399; }
.comment { color: #6b7280; font-style: italic; }
.decorator { color: #fbbf24; }
.number { color: #f472b6; }

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--relectric-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--relectric-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--relectric-border-hover);
}

/* Focus States */
*:focus-visible {
    outline: 2px solid var(--relectric-accent);
    outline-offset: 2px;
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Additional styles not covered by Tailwind CDN */
nav a {
    font-size: 0.875rem;
}

button:hover, a.button:hover {
    transform: translateY(-1px);
}

button:active, a.button:active {
    transform: translateY(0);
}

/* Docs sidebar active state */
aside a.active {
    color: var(--relectric-accent);
    font-weight: 500;
}
