:root {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --primary-color: #6c5ce7;
    --secondary-color: #a29bfe;
    --accent-color: #fd79a8;
    --card-bg: #1e1e1e;
    --border-color: #333;
    --code-bg: #1a1a2e;
    --header-gradient-start: #6c5ce7;
    --header-gradient-end: #a29bfe;
    --function-bg: #252525;
    --console-bg: #1a1a1a;
    --hook-bg: #2a2a3a;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--header-gradient-start) 0%, var(--header-gradient-end) 100%);
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding: 15px;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.nav a {
    text-decoration: none;
    color: var(--secondary-color);
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
    background: rgba(108, 92, 231, 0.1);
}

.nav a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.content {
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.section {
    padding: 30px;
    border-bottom: 1px solid var(--border-color);
}

.section:last-child {
    border-bottom: none;
}

.section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.section-description {
    color: #aaa;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.function, .command, .hook {
    margin-bottom: 25px;
    padding: 2px;
    background: var(--function-bg);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.2s ease;
}

.function:hover, .command:hover, .hook:hover {
    transform: translateX(5px);
}

.function h3, .command h3, .hook h3 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-family: "Fira Code", "Consolas", monospace;
}

pre {
    margin: 0;
    overflow-x: auto;
    border-radius: 6px;
    margin-bottom: 15px;
}

pre code {
    display: block;
    padding: 16px;
    background: var(--code-bg) !important;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
    font-family: "Fira Code", "Consolas", monospace;
}

.console-example {
    margin-top: 15px;
    padding: 15px;
    background: var(--console-bg);
    border-radius: 6px;
}

.console-example h4 {
    margin-bottom: 10px;
    color: var(--accent-color);
}

.hook {
    background: var(--hook-bg);
    border-left-color: var(--accent-color);
}

.command {
    border-left-color: #4CAF50;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .header h1 {
        font-size: 2rem;
    }

    .nav {
        flex-direction: column;
    }

    .section {
        padding: 20px;
    }

    .function, .command, .hook {
        padding: 15px;
    }
}

/* Prism overrides */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: #6A9955;
}

.token.punctuation {
    color: #d4d4d4;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
    color: #b5cea8;
}

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

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

.token.atrule,
.token.attr-value,
.token.keyword {
    color: #569cd6;
}

.token.function,
.token.class-name {
    color: #dcdcaa;
}

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