/* PenguinCAM Documentation Styles */

:root {
    --primary: #154733;
    --primary-dark: #D99F12;
    --secondary: #2C3E50;
    --bg: #1a1d23;
    --bg-light: #242830;
    --surface: #2a2e38;
    --surface-hover: #343842;
    --text: #e8e9ed;
    --text-dim: #a0a3ab;
    --border: #3a3e48;
    --accent: #3b82f6;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
    width: 260px;
    background: var(--bg-light);
    border-right: 1px solid var(--border);
    padding: 2rem 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar .logo {
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0 1.5rem 2rem;
    color: var(--text);
}

.sidebar .accent {
    color: var(--primary);
}

.nav-section {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
    padding: 0.5rem 1.5rem;
    margin-top: 1rem;
    font-weight: 600;
}

.sidebar a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-dim);
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.sidebar a:hover {
    color: var(--text);
    background: var(--surface);
}

.sidebar a.active {
    color: var(--primary);
    background: var(--surface);
    border-left-color: var(--primary);
}

.nav-divider {
    height: 1px;
    background: var(--border);
    margin: 1rem 1.5rem;
}

.nav-external {
    margin-top: 0.5rem;
    opacity: 0.7;
}

/* Main Content */
.content {
    margin-left: 260px;
    padding: 3rem 4rem;
    max-width: 1200px;
    flex: 1;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

h2 {
    font-size: 1.75rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: var(--text);
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.5rem;
}

h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

p {
    margin-bottom: 1rem;
    color: var(--text-dim);
}

.lead {
    font-size: 1.125rem;
    color: var(--text);
    margin-bottom: 2rem;
}

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

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

code {
    background: var(--surface);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--primary);
}

pre {
    background: var(--surface);
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1rem 0;
    border: 1px solid var(--border);
}

pre code {
    background: none;
    padding: 0;
    color: var(--text);
}

ul, ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
    color: var(--text-dim);
}

strong {
    color: var(--text);
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.feature-card:hover {
    background: var(--surface-hover);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.feature-card h3 {
    margin-top: 0;
    color: var(--text);
}

.feature-card p {
    color: var(--text-dim);
    margin-bottom: 0;
}

/* Step List */
.step-list {
    margin: 2rem 0;
}

.step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--surface);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.step-content h3 {
    margin-top: 0;
    color: var(--text);
}

.step-content p {
    margin-bottom: 0;
}

/* Info Boxes */
.info-box {
    background: rgba(59, 130, 246, 0.1);
    border-left: 3px solid var(--accent);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 4px;
    display: flex;
    gap: 1rem;
}

.warning-box {
    background: rgba(251, 181, 21, 0.1);
    border-left: 3px solid var(--primary);
}

.info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--surface);
    border-radius: 6px;
    overflow: hidden;
}

th, td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: var(--bg-light);
    color: var(--text);
    font-weight: 600;
}

td {
    color: var(--text-dim);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background: var(--surface-hover);
}

/* Footer */
footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 0.9rem;
}

footer p {
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .content {
        margin-left: 0;
        padding: 2rem 1.5rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}
