/* Design System Wiki Styles - Separate from main site */
/* This file contains styles ONLY for the design system wiki page */

/* Design System Wiki Styles - Separate from main site */
/* This file contains styles ONLY for the design system wiki page */

/* Design System Body */
.design-system-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #000000;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Design System Header */
.design-system-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    @media (max-width: 768px) {
        padding: 0 16px;
    }
}

.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    
    &:hover {
        transform: scale(1.05);
    }
}

.logo-text {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #000000;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 0;
    transition: all 0.2s ease;
    
    &:hover {
        background: #333333;
    }
}

.site-nav {
    position: relative;
}

.nav-trigger {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    
    @media (max-width: 768px) {
        display: flex;
    }
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: #000000;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    
    @media (max-width: 768px) {
        position: absolute;
        top: 100%;
        right: 0;
        background: white;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
        min-width: 200px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        border: 1px solid #e0e0e0;
    }
}

.nav-link {
    color: #000000;
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    
    &:hover {
        background: #f8f8f8;
        color: #000000;
    }
    
    @media (max-width: 768px) {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1rem;
    }
}

/* Mobile navigation toggle */
.nav-trigger:checked ~ .nav-menu {
    @media (max-width: 768px) {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.nav-trigger:checked ~ .nav-toggle .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-trigger:checked ~ .nav-toggle .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-trigger:checked ~ .nav-toggle .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Design System Main */
.design-system-main {
    min-height: 60vh;
    padding: 0;
}

/* Design System Container */
.design-system-container {
    display: flex;
    min-height: calc(100vh - 80px);
}

/* Left Sidebar Navigation */
.design-system-sidebar {
    width: 280px;
    background: #f8f8f8;
    border-right: 1px solid #e0e0e0;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    
    @media (max-width: 1024px) {
        width: 240px;
    }
    
    @media (max-width: 768px) {
        position: fixed;
        top: 80px;
        left: 0;
        z-index: 1000;
        transform: translateX(-100%);
        width: 280px;
        height: calc(100vh - 80px);
        
        &.mobile-open {
            transform: translateX(0);
        }
    }
}

.sidebar-nav {
    padding: 2rem 0;
}

.sidebar-section {
    margin-bottom: 2rem;
    
    &:last-child {
        margin-bottom: 0;
    }
}

.sidebar-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 1rem 0;
    padding: 0 1.5rem;
}

.sidebar-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-link {
    display: block;
    padding: 0.5rem 1.5rem;
    color: #666666;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    
    &:hover {
        color: #000000;
        background: rgba(0, 0, 0, 0.05);
        border-left-color: #000000;
    }
    
    &.active {
        color: #000000;
        background: rgba(0, 0, 0, 0.05);
        border-left-color: #000000;
        font-weight: 600;
    }
}

/* Mobile Sidebar Toggle */
.mobile-sidebar-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    background: #000000;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 0;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 2rem;
    transition: background 0.3s ease;
    
    &:hover {
        background: #333333;
    }
    
    @media (max-width: 768px) {
        display: flex;
    }
    
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }
    
    .hamburger-line {
        width: 18px;
        height: 2px;
        background: white;
        border-radius: 1px;
        transition: all 0.3s ease;
    }
}

/* Main Content Area */
.design-system-content {
    flex: 1;
    padding: 2rem 3rem;
    max-width: calc(100% - 280px);
    
    @media (max-width: 1024px) {
        max-width: calc(100% - 240px);
        padding: 2rem;
    }
    
    @media (max-width: 768px) {
        max-width: 100%;
        padding: 1rem;
    }
}

/* Design System Wiki Layout */
.design-system-wiki {
    max-width: none;
    margin: 0;
    padding: 0;
}

/* Wiki Header */
.wiki-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
    
    .wiki-title {
        font-size: 3rem;
        font-weight: 700;
        color: #000000;
        margin-bottom: 1rem;
        line-height: 1.2;
        
        @media (max-width: 768px) {
            font-size: 2.5rem;
        }
    }
    
    .wiki-subtitle {
        font-size: 1.25rem;
        color: #666666;
        font-weight: 400;
        margin-bottom: 2rem;
    }
    
    .wiki-meta {
        display: flex;
        justify-content: center;
        gap: 2rem;
        font-size: 0.9rem;
        color: #666666;
        
        @media (max-width: 768px) {
            flex-direction: column;
            gap: 0.5rem;
        }
        
        .last-updated {
            font-weight: 500;
        }
        
        .read-time {
            font-weight: 500;
        }
    }
}

/* Table of Contents */
.wiki-toc {
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    padding: 2rem;
    margin-bottom: 3rem;
    
    .toc-title {
        font-size: 1.5rem;
        font-weight: 600;
        color: #000000;
        margin-bottom: 1.5rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        
        &::before {
            content: "📋";
            font-size: 1.25rem;
        }
    }
    
    .toc-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
        
        @media (max-width: 768px) {
            grid-template-columns: 1fr;
        }
    }
    
    .toc-section {
        .toc-section-title {
            font-size: 1rem;
            font-weight: 600;
            color: #000000;
            margin-bottom: 0.5rem;
            text-decoration: none;
            transition: color 0.3s ease;
            
            &:hover {
                color: #333333;
            }
        }
        
        .toc-section-links {
            list-style: none;
            padding: 0;
            margin: 0;
            
            li {
                margin-bottom: 0.25rem;
                
                a {
                    color: #666666;
                    text-decoration: none;
                    font-size: 0.9rem;
                    font-weight: 500;
                    transition: color 0.3s ease;
                    
                    &:hover {
                        color: #000000;
                    }
                }
            }
        }
    }
}

/* Wiki Content Sections */
.wiki-section {
    margin-bottom: 4rem;
    
    .section-header {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-bottom: 2rem;
        padding-bottom: 1rem;
        border-bottom: 2px solid #000000;
        
        .section-icon {
            font-size: 2rem;
        }
        
        .section-title {
            font-size: 2rem;
            font-weight: 700;
            color: #000000;
            margin: 0;
            
            @media (max-width: 768px) {
                font-size: 1.75rem;
            }
        }
    }
    
    .section-content {
        .subsection {
            margin-bottom: 2.5rem;
            
            .subsection-title {
                font-size: 1.5rem;
                font-weight: 600;
                color: #000000;
                margin-bottom: 1rem;
                position: relative;
                
                &::after {
                    content: '';
                    position: absolute;
                    bottom: -5px;
                    left: 0;
                    width: 40px;
                    height: 2px;
                    background: #000000;
                }
            }
        }
    }
}

/* Code Blocks */
.code-example {
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    position: relative;
    
    .code-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid #e0e0e0;
        
        .code-title {
            font-size: 0.9rem;
            font-weight: 600;
            color: #000000;
            margin: 0;
        }
        
        .code-copy {
            background: #000000;
            color: white;
            border: none;
            padding: 0.25rem 0.5rem;
            font-size: 0.8rem;
            cursor: pointer;
            transition: background 0.3s ease;
            
            &:hover {
                background: #333333;
            }
        }
    }
    
    pre {
        margin: 0;
        padding: 0;
        background: none;
        border: none;
        border-radius: 0;
        
        code {
            font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
            font-size: 0.9rem;
            line-height: 1.5;
            color: #000000;
            background: none;
            padding: 0;
            border-radius: 0;
        }
    }
}

/* Color Palette Display */
.color-palette {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
    
    .color-item {
        background: white;
        border: 1px solid #e0e0e0;
        border-radius: 0;
        padding: 1rem;
        text-align: center;
        
        .color-swatch {
            width: 100%;
            height: 60px;
            border-radius: 0;
            margin-bottom: 0.5rem;
            border: 1px solid #e0e0e0;
        }
        
        .color-name {
            font-size: 0.9rem;
            font-weight: 600;
            color: #000000;
            margin-bottom: 0.25rem;
        }
        
        .color-value {
            font-size: 0.8rem;
            color: #666666;
            font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
        }
    }
}

/* Component Examples */
.component-example {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    padding: 2rem;
    margin: 1.5rem 0;
    
    .example-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid #e0e0e0;
        
        .example-title {
            font-size: 1rem;
            font-weight: 600;
            color: #000000;
            margin: 0;
        }
        
        .example-toggle {
            background: transparent;
            border: 1px solid #e0e0e0;
            color: #666666;
            padding: 0.25rem 0.5rem;
            font-size: 0.8rem;
            cursor: pointer;
            transition: all 0.3s ease;
            
            &:hover {
                background: #f8f8f8;
                color: #000000;
            }
        }
    }
    
    .example-preview {
        margin-bottom: 1rem;
    }
    
    .example-code {
        display: none;
        
        &.show {
            display: block;
        }
    }
}

/* Principles Grid */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    
    .principle-card {
        background: white;
        border: 1px solid #e0e0e0;
        border-radius: 0;
        padding: 2rem;
        transition: all 0.3s ease;
        
        &:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }
        
        .principle-icon {
            font-size: 2rem;
            margin-bottom: 1rem;
        }
        
        .principle-title {
            font-size: 1.25rem;
            font-weight: 600;
            color: #000000;
            margin-bottom: 1rem;
        }
        
        .principle-description {
            color: #666666;
            line-height: 1.6;
        }
    }
}

/* Checklist Styles */
.checklist {
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    padding: 2rem;
    margin: 1.5rem 0;
    
    .checklist-title {
        font-size: 1.25rem;
        font-weight: 600;
        color: #000000;
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        
        &::before {
            content: "✅";
            font-size: 1.25rem;
        }
    }
    
    .checklist-items {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
        
        .checklist-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem;
            background: white;
            border: 1px solid #e0e0e0;
            border-radius: 0;
            
            input[type="checkbox"] {
                width: 16px;
                height: 16px;
                accent-color: #000000;
            }
            
            label {
                font-size: 0.9rem;
                color: #000000;
                cursor: pointer;
                margin: 0;
            }
        }
    }
}

/* Navigation Breadcrumbs */
.wiki-breadcrumb {
    margin: 1rem 0 2rem 0;
    padding: 0 1rem;
    
    .breadcrumb-list {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        list-style: none;
        margin: 0;
        padding: 0;
        font-size: 0.9rem;
        color: #666666;
        
        .breadcrumb-item {
            display: flex;
            align-items: center;
            
            &:not(:last-child)::after {
                content: '›';
                margin-left: 0.5rem;
                color: #666666;
            }
            
            a {
                color: #666666;
                text-decoration: none;
                transition: color 0.3s ease;
                
                &:hover {
                    color: #000000;
                }
            }
            
            &.breadcrumb-current {
                color: #000000;
                font-weight: 500;
            }
        }
    }
}

/* Wiki Footer */
.wiki-footer {
    background: #f8f8f8;
    border-top: 1px solid #e0e0e0;
    padding: 2rem;
    margin-top: 4rem;
    text-align: center;
    
    p {
        color: #666666;
        font-style: italic;
        margin: 0;
    }
}


/* Responsive Design */
@media (max-width: 768px) {
    .design-system-wiki {
        padding: 0 1rem;
    }
    
    .wiki-header .wiki-title {
        font-size: 2.5rem;
    }
    
    .wiki-section .section-header .section-title {
        font-size: 1.75rem;
    }
    
    .toc-grid {
        grid-template-columns: 1fr;
    }
    
    .principles-grid {
        grid-template-columns: 1fr;
    }
    
    .checklist-items {
        grid-template-columns: 1fr;
    }
}
