@import "tailwindcss";

html,
body {
    padding: 0;
    margin: 0;
    min-height: 100%;
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    background: transparent;
    color: #f3f4f6;
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
}

::selection {
    background: #a78bfa;
    color: #fff;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    background: #232946;
}

::-webkit-scrollbar-thumb {
    background: #8b5cf6;
    border-radius: 4px;
}

::-webkit-scrollbar-corner {
    background: #232946;
}

a {
    text-decoration: none;
    color: inherit;
}

pre,
code {
    font-family: "Space Grotesk", ui-monospace, "SF Mono", Menlo, monospace;
    font-variant-ligatures: none;
    tab-size: 2;
}

pre {
    margin: 0;
    padding: 1rem;
    overflow-x: auto;
    border-radius: 0.75rem;
    word-break: break-word;
}

code {
    font-size: 0.9em;
    line-height: 1.5;
    word-break: break-word; /* added */
}

/* Syntax highlighting */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: #6b7280;
}

.token.punctuation {
    color: #e5e7eb;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol {
    color: #93c5fd;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin {
    color: #86efac;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
    color: #e879f9;
}

.token.atrule,
.token.attr-value,
.token.keyword {
    color: #93c5fd;
}

.token.function {
    color: #f472b6;
}

.token.regex,
.token.important,
.token.variable {
    color: #fca5a5;
}

.token.important,
.token.bold {
    font-weight: bold;
}

.token.italic {
    font-style: italic;
}

.token.entity {
    cursor: help;
}

/* Code block specific styles */
.code-block {
    position: relative;
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
}

.code-block pre {
    background: transparent;
}

.code-block .language-label {
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    font-size: 0.75rem;
    color: #6b7280;
    user-select: none;
}

.code-block .copy-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #e5e7eb;
    background: rgba(55, 65, 81, 0.5);
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.code-block .copy-button:hover {
    background: rgba(139, 92, 246, 0.5);
    color: #fff;
}

.code-block .copy-button.copied {
    background: rgba(34, 197, 94, 0.5);
    color: #fff;
} 