/* Professional Enterprise Documentation Design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Professional Color Palette */
    --primary-blue: #1e40af;
    --primary-blue-dark: #1e3a8a;
    --primary-blue-light: #3b82f6;
    --secondary-gray: #6b7280;
    --text-primary: #111827;
    --text-secondary: #374151;
    --text-muted: #6b7280;
    --background-primary: #ffffff;
    --background-secondary: #f9fafb;
    --background-tertiary: #f3f4f6;
    --border-light: #e5e7eb;
    --border-medium: #d1d5db;
    --accent-blue: #2563eb;
    --accent-green: #059669;
    --accent-orange: #ea580c;
    --accent-red: #dc2626;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: var(--background-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Monkey Easter Egg - Very Discrete */
.monkey-easter-egg {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 10000;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 8px;
    transition: all 0.3s ease;
    opacity: 0.3;
    border-radius: 50%;
}

.monkey-easter-egg:hover {
    opacity: 0.6;
    transform: scale(1.1);
}

.monkey-easter-egg.clicked {
    opacity: 0.8;
    transform: scale(1.2);
}

.monkey-emoji {
    font-size: 16px;
    display: block;
}

.monkey-text {
    display: none; /* Completely hidden */
}

.monkey-easter-egg .click-counter {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-red);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.monkey-easter-egg.show-counter .click-counter {
    opacity: 1;
}

/* Main Container */
.man-page {
    min-height: 100vh;
    background: var(--background-primary);
}

.terminal-window {
    background: var(--background-primary);
    border-radius: 0;
    box-shadow: none;
    border: none;
}

.terminal-header {
    background: var(--background-primary);
    border-bottom: 1px solid var(--border-light);
    padding: 0;
    display: none; /* Hide terminal header for clean look */
}

.terminal-content {
    height: 100vh;
    overflow-y: auto;
    padding: 0;
    background: var(--background-primary);
}

/* Professional Header */
.doc-header {
    background: var(--background-primary);
    border-bottom: 1px solid var(--border-light);
    padding: 24px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.doc-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.doc-brand {
    flex: 1;
}

.doc-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.02em;
}

.doc-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 4px 0 0 0;
    font-weight: 400;
}

.doc-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-blue);
    background: var(--background-secondary);
}

.nav-link:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

.nav-link.active {
    color: var(--primary-blue);
    background: var(--background-secondary);
    font-weight: 600;
}

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

.feature-card {
    background: var(--background-secondary);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--accent-blue);
    padding: 24px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.feature-card h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-light);
}

.feature-card p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* Option Categories */
.option-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.option-category {
    background: var(--background-secondary);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--accent-green);
    padding: 24px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.option-category h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-light);
}

.option-category ul {
    margin: 0;
    padding-left: 20px;
}

.option-category li {
    margin: 8px 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.option-category code {
    background: var(--primary-blue);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Usage Patterns */
.usage-patterns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.usage-pattern {
    background: var(--background-secondary);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--accent-orange);
    padding: 24px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.usage-pattern h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-light);
}

.usage-pattern .command {
    display: block;
    margin: 12px 0;
    font-size: 1rem;
}

.usage-pattern p {
    color: var(--text-secondary);
    margin: 12px 0 0 0;
    line-height: 1.6;
}

/* VM Examples */
.vm-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.vm-example {
    background: var(--background-secondary);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--accent-blue);
    padding: 24px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.vm-example h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-light);
}

.vm-example .command {
    display: block;
    margin: 12px 0;
    font-size: 1rem;
}

.vm-example p {
    color: var(--text-secondary);
    margin: 12px 0 0 0;
    line-height: 1.6;
}

/* Network Examples */
.network-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.network-example {
    background: var(--background-secondary);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--accent-green);
    padding: 24px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.network-example h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-light);
}

.network-example .command {
    display: block;
    margin: 12px 0;
    font-size: 1rem;
}

.network-example p {
    color: var(--text-secondary);
    margin: 12px 0 0 0;
    line-height: 1.6;
}

/* Storage Examples */
.storage-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.storage-example {
    background: var(--background-secondary);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--accent-orange);
    padding: 24px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.storage-example h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-light);
}

.storage-example .command {
    display: block;
    margin: 12px 0;
    font-size: 1rem;
}

.storage-example p {
    color: var(--text-secondary);
    margin: 12px 0 0 0;
    line-height: 1.6;
}

/* Advanced Examples */
.advanced-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.advanced-example {
    background: var(--background-secondary);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--accent-red);
    padding: 24px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.advanced-example h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-light);
}

.advanced-example .command {
    display: block;
    margin: 12px 0;
    font-size: 1rem;
}

.advanced-example p {
    color: var(--text-secondary);
    margin: 12px 0 0 0;
    line-height: 1.6;
}

/* Content Layout */
.man-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px;
    font-size: 16px;
    line-height: 1.7;
}

/* Header Section */
.man-header {
    text-align: left;
    margin-bottom: 64px;
    padding-bottom: 32px;
    border-bottom: 3px solid var(--primary-blue);
}

.man-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.man-section {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.man-date {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Typography */
.man-body h1 {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 700;
    margin: 48px 0 24px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-light);
    letter-spacing: -0.01em;
}

.man-body h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 40px 0 20px 0;
    letter-spacing: -0.01em;
}

.man-body h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 32px 0 16px 0;
}

.man-body h4 {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    margin: 24px 0 12px 0;
}

.man-body p {
    margin: 16px 0;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
}

/* Code and Technical Elements */
code {
    background: var(--background-tertiary);
    color: var(--primary-blue);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 0.9em;
    font-weight: 500;
    border: 1px solid var(--border-light);
}

.synopsis {
    background: var(--background-secondary);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--primary-blue);
    padding: 24px;
    margin: 24px 0;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.synopsis code {
    color: var(--primary-blue);
    font-size: 1.1rem;
    font-weight: 600;
    background: none;
    border: none;
    padding: 0;
}

/* Option Lists */
.option-list {
    margin: 24px 0;
    background: var(--background-secondary);
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.option-list dt {
    color: var(--text-primary);
    font-weight: 600;
    margin: 16px 0 8px 0;
    font-size: 1.1rem;
}

.option-list dt code {
    background: var(--primary-blue);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

.option-list dd {
    margin-left: 0;
    margin-bottom: 20px;
    color: var(--text-secondary);
    padding-left: 16px;
    border-left: 3px solid var(--border-light);
}

/* Configuration Sections */
.config-path {
    background: var(--background-secondary);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--accent-green);
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.config-path code {
    color: var(--accent-green);
    font-weight: 600;
    background: none;
    border: none;
    padding: 0;
    font-size: 1rem;
}

.config-explanation {
    background: var(--background-secondary);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--accent-blue);
    padding: 24px;
    margin: 24px 0;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.config-explanation p {
    margin: 12px 0;
    color: var(--text-primary);
    font-weight: 500;
}

.config-explanation ul {
    margin: 16px 0;
    padding-left: 24px;
}

.config-explanation li {
    margin: 8px 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.config-file-example {
    background: var(--text-primary);
    border: 1px solid var(--border-medium);
    padding: 24px;
    margin: 24px 0;
    border-radius: 8px;
    overflow-x: auto;
    box-shadow: var(--shadow-md);
}

.config-file-example pre {
    color: #e5e7eb;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    white-space: pre;
}

.config-file-example code {
    color: #e5e7eb;
    background: none;
    padding: 0;
    border: none;
    font-family: inherit;
}

.config-details {
    background: var(--background-secondary);
    border: 1px solid var(--border-light);
    padding: 32px;
    margin: 32px 0;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.config-details h4 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 24px 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-light);
}

.config-details h4:first-child {
    margin-top: 0;
}

.config-details p {
    margin: 12px 0;
    color: var(--text-secondary);
}

.config-details code {
    background: var(--background-tertiary);
    color: var(--primary-blue);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    display: inline-block;
    margin: 4px 0;
    font-weight: 500;
}

.config-details ul {
    margin: 16px 0;
    padding-left: 24px;
}

.config-details li {
    margin: 8px 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.config-details strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Path Lists */
.path-list {
    margin: 24px 0;
    background: var(--background-secondary);
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.path-list dt {
    color: var(--text-primary);
    font-weight: 600;
    margin: 16px 0 8px 0;
    font-size: 1.1rem;
}

.path-list dd {
    margin-left: 0;
    margin-bottom: 16px;
    color: var(--text-secondary);
    padding-left: 16px;
    border-left: 3px solid var(--border-light);
}

.path-list ul {
    margin-left: 16px;
}

.path-list li {
    margin: 8px 0;
    color: var(--text-secondary);
}

.path-explanation {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 4px;
    display: block;
    line-height: 1.5;
}

/* Examples */
.example {
    background: var(--background-secondary);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--accent-orange);
    padding: 24px;
    margin: 24px 0;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.example p {
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 500;
}

.command {
    color: var(--primary-blue);
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-weight: 600;
    background: var(--background-tertiary);
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-block;
    margin: 8px 0;
    border: 1px solid var(--border-light);
    font-size: 0.95rem;
}

/* Command Examples */
.command-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.cmd-group {
    background: var(--background-secondary);
    border: 1px solid var(--border-light);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.cmd-group h3 {
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-light);
    font-size: 1.25rem;
}

.cmd-group code {
    display: block;
    color: var(--primary-blue);
    margin: 12px 0;
    padding: 12px 16px;
    background: var(--background-tertiary);
    border-radius: 6px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    border: 1px solid var(--border-light);
    font-size: 0.9rem;
    font-weight: 500;
}

/* File Lists */
.file-list {
    margin: 24px 0;
    background: var(--background-secondary);
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.file-list dt {
    color: var(--text-primary);
    font-weight: 600;
    margin: 16px 0 8px 0;
    font-size: 1.1rem;
}

.file-list dt code {
    background: var(--primary-blue);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

.file-list dd {
    margin-left: 0;
    margin-bottom: 16px;
    color: var(--text-secondary);
    padding-left: 16px;
    border-left: 3px solid var(--border-light);
}

/* Footer */
.man-footer {
    margin-top: 64px;
    padding-top: 32px;
    border-top: 3px solid var(--primary-blue);
    text-align: center;
    color: var(--text-muted);
}

.footer-line {
    margin: 8px 0;
    font-size: 0.9rem;
}

/* Lists */
ul, ol {
    margin: 16px 0;
    padding-left: 24px;
}

li {
    margin: 8px 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Scrollbar Styling */
.terminal-content::-webkit-scrollbar {
    width: 8px;
}

.terminal-content::-webkit-scrollbar-track {
    background: var(--background-secondary);
}

.terminal-content::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: 4px;
}

.terminal-content::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-gray);
}

/* Responsive Design */
@media (max-width: 768px) {
    .man-content {
        padding: 24px 16px;
        font-size: 15px;
    }
    
    .man-title {
        font-size: 2.5rem;
    }
    
    .command-examples {
        grid-template-columns: 1fr;
    }
    
    .monkey-easter-egg {
        top: 16px;
        right: 16px;
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .monkey-emoji {
        font-size: 18px;
    }
    
    .doc-header-content {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .doc-nav {
        gap: 16px;
        flex-wrap: wrap;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .doc-nav {
        gap: 8px;
    }
    
    .nav-link {
        font-size: 0.85rem;
        padding: 4px 8px;
    }
}

/* Original Site Hidden */
.original-site {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: var(--background-primary);
    overflow-y: auto;
}

.original-site.show {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Professional Hover Effects - Subtle and Readable */
.option-list dt:hover {
    color: var(--text-primary);
    background: var(--background-tertiary);
    transition: all 0.2s ease;
    border-radius: 4px;
    padding: 4px 8px;
    margin: -4px -8px;
}

.cmd-group code:hover {
    background: var(--background-tertiary);
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    transition: all 0.2s ease;
}

.config-details h4:hover {
    color: var(--text-primary);
    background: var(--background-tertiary);
    transition: all 0.2s ease;
    border-radius: 4px;
    padding: 4px 8px;
    margin: -4px -8px;
}

/* Focus States for Accessibility */
code:focus,
.command:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .monkey-easter-egg {
        display: none;
    }
    
    .man-content {
        max-width: none;
        padding: 0;
    }
    
    .terminal-content {
        height: auto;
        overflow: visible;
    }
}