/* archetypic.dev - Neomorphic Developer Documentation */

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

body {
    background-color: #ECEAE4;
    color: #2C2C2C;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.75;
}

/* Neomorphic classes */
.neo-raised {
    background: #ECEAE4;
    box-shadow: 6px 6px 12px #C8C4BE, -6px -6px 12px #FFFFFF;
    border-radius: 12px;
}

.neo-inset {
    background: #E2DFD8;
    box-shadow: inset 4px 4px 8px #C8C4BE, inset -4px -4px 8px #FFFFFF;
    border-radius: 8px;
}

.neo-raised:hover {
    box-shadow: 8px 8px 16px #C8C4BE, -8px -8px 16px #FFFFFF;
}

/* Layout */
#neo-surface {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
#sidebar {
    width: 280px;
    min-height: 100vh;
    background: #E8E4DE;
    position: fixed;
    left: 0;
    top: 0;
    padding: 40px 20px;
    z-index: 50;
    overflow: hidden;
}

.sidebar-dot-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(200,196,190,0.2) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.sidebar-nav {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 80px;
}

.nav-pill {
    display: block;
    padding: 12px 20px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: #7A7570;
    text-decoration: none;
    border-radius: 20px;
    background: #E8E4DE;
    box-shadow: 4px 4px 8px #C8C4BE, -4px -4px 8px #FFFFFF;
    transition: all 0.2s ease;
}

.nav-pill:hover {
    transform: translate(-1px, -1px);
    box-shadow: 5px 5px 10px #C8C4BE, -5px -5px 10px #FFFFFF;
}

.nav-pill.active {
    color: #2AACB0;
    box-shadow: inset 4px 4px 8px #C8C4BE, inset -4px -4px 8px #FFFFFF;
}

/* Content Area */
#content-area {
    margin-left: 280px;
    max-width: 720px;
    padding: 60px 40px 120px;
    flex: 1;
}

/* Hero */
#hero {
    margin-bottom: 80px;
}

.hero-box {
    padding: 48px;
    text-align: center;
    margin-bottom: 24px;
    opacity: 0;
    transition: opacity 0.6s ease, box-shadow 0.6s ease-out;
}

.hero-box.visible {
    opacity: 1;
}

.page-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: -0.01em;
    color: #2C2C2C;
}

/* Terminal Prompt */
.terminal-prompt {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
}

.prompt-cursor {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    color: #2AACB0;
    animation: cursorPulse 1.5s ease-in-out infinite;
}

@keyframes cursorPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.prompt-text,
.prompt-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: #7A7570;
}

/* Content Sections */
.content-section {
    margin-bottom: 80px;
    opacity: 0.6;
    filter: blur(2px);
    transition: opacity 0.5s ease, filter 0.5s ease;
}

.content-section.in-view {
    opacity: 1;
    filter: blur(0);
}

.section-prompt {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    letter-spacing: 0.01em;
    margin-bottom: 16px;
    color: #2C2C2C;
}

.content-section p {
    margin-bottom: 1.2em;
}

/* Code Blocks */
.code-block {
    margin: 24px 0;
    padding: 0;
    overflow: hidden;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    border-bottom: 1px solid rgba(200,196,190,0.3);
}

.code-filename {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #7A7570;
}

.copy-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    color: #7A7570;
    padding: 0;
    border-radius: 6px;
    background: #E2DFD8;
    box-shadow: 2px 2px 4px #C8C4BE, -2px -2px 4px #FFFFFF;
    transition: all 0.2s ease;
}

.copy-btn:active {
    box-shadow: inset 2px 2px 4px #C8C4BE, inset -2px -2px 4px #FFFFFF;
}

.copy-btn.copied {
    color: #2AACB0;
}

pre {
    padding: 16px;
    overflow-x: auto;
}

code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #2C2C2C;
}

/* Diagrams */
.diagram-container {
    margin: 24px 0;
    display: flex;
    justify-content: center;
}

.pattern-diagram {
    max-width: 100%;
}

.diagram-arrow {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 0.8s ease;
}

.content-section.in-view .diagram-arrow {
    stroke-dashoffset: 0;
}

/* Gradient accent */
.content-section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(42,172,176,0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* Footer */
#footer {
    margin-left: 280px;
    padding: 24px 40px;
    margin-top: 0;
}

.footer-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #7A7570;
}

/* Responsive */
@media (max-width: 900px) {
    #sidebar {
        display: none;
    }
    #content-area,
    #footer {
        margin-left: 0;
    }
    #content-area {
        padding: 40px 20px 80px;
    }
}
