:root {
    --bg-color: #504945;
    --text-color: #ebdbb2;
    --heading-color: #ebdbb2;
    --primary-color: #d5c4a1;
    --secondary-color: #a89984;
    --code-bg: #3c3836;
    --border-color: #7c6f64;
    --sidebar-width: 300px;
    --header-height: 60px;
}

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

body {
    font-family: 'Google Sans', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--heading-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

h2 {
    font-size: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.3rem;
}

h3 {
    font-size: 1.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.app-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.sidebar {
    width: var(--sidebar-width);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    background-color: #3c3836;
    border-right: 1px solid var(--border-color);
    padding: 2rem;
    flex-shrink: 0;
}

.sidebar h2 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    border: none;
    margin-top: 0;
}

.nav-links {
    list-style: none;
}

.nav-links li {
    margin-bottom: 0.5rem;
}

.nav-links a {
    color: var(--text-color);
    display: block;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.nav-links a:hover {
    background-color: var(--code-bg);
    color: var(--primary-color);
    text-decoration: none;
}

.main-content {
    flex: 1;
    padding: 2rem 4rem;
    max-width: 1000px;
    overflow-x: hidden;
}

.hero {
    margin-bottom: 3rem;
    text-align: center;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
}

.hero h1 {
    font-size: 3.5rem;
    background: linear-gradient(90deg, #d5c4a1, #a89984);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    border-bottom: none;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

pre {
    background-color: var(--code-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    position: relative;
}

code {
    font-family: 'JetBrains Mono', "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    font-size: 0.9em;
}

p code,
li code {
    background-color: rgba(60, 56, 54, 0.5);
    padding: 0.2em 0.4em;
    border-radius: 6px;
}

.copy-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: var(--border-color);
    border: none;
    color: var(--text-color);
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.2s;
}

pre:hover .copy-btn {
    opacity: 1;
}

.copy-btn:active {
    background-color: var(--primary-color);
    color: white;
}

#menu-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1000;
    background-color: var(--code-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
}

#menu-toggle svg {
    display: block;
}

.screenshot-gallery {
    margin: 2rem auto;
    max-width: 100%;
    text-align: center;
}

.screenshot-gallery img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

@media (max-width: 900px) {
    .app-container {
        flex-direction: column;
    }

    #menu-toggle {
        display: block;
    }

    .sidebar {
        width: 250px;
        position: fixed;
        top: 0;
        left: -250px;
        bottom: 0;
        height: 100vh;
        z-index: 999;
        transition: left 0.3s ease;
        border-right: 1px solid var(--border-color);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    }

    .sidebar.active {
        left: 0;
    }

    .main-content {
        padding: 4rem 2rem 2rem 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}
