/*
 * This file is part of Thyrs.
 * This work is licensed under CC BY-NC-ND 4.0.
 * License: https://raw.githubusercontent.com/SteffenBlake/Thyrs/refs/heads/main/LICENSE
 */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Page Container */
.page-container {
    display: flex;
    min-height: 100vh;
}

/* Burger Menu (Mobile Only) */
.burger-menu {
    display: none;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    flex-direction: column;
    justify-content: space-around;
    width: 2.5rem;
    height: 2.5rem;
    background: #2563eb;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    padding: 0.5rem;
}

.burger-menu span {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Sidebar Navigation */
.sidebar {
    width: 300px;
    background: #1f2937;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.toc {
    padding: 1.5rem;
}

.toc ul {
    list-style: none;
    padding-left: 0;
}

.toc ul ul {
    padding-left: 1rem;
    margin-top: 0.5rem;
}

.toc li {
    margin: 0.5rem 0;
}

.toc a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.toc a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding-left: 1rem;
}

/* Main Content */
.content {
    flex: 1;
    margin-left: 300px;
    background: white;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Typography */
.content-wrapper h1 {
    font-size: 2.5rem;
    color: #1f2937;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #2563eb;
}

.content-wrapper h2 {
    font-size: 2rem;
    color: #374151;
    margin: 2.5rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.content-wrapper h3 {
    font-size: 1.5rem;
    color: #4b5563;
    margin: 2rem 0 1rem 0;
}

.content-wrapper p {
    margin: 1rem 0;
    line-height: 1.8;
    color: #6b7280;
}

.content-wrapper a {
    color: #2563eb;
    text-decoration: none;
}

.content-wrapper a:hover {
    text-decoration: underline;
}

.content-wrapper code {
    background: #f3f4f6;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.content-wrapper pre {
    background: #1f2937;
    color: #e5e7eb;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1rem 0;
}

.content-wrapper pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.content-wrapper ul, .content-wrapper ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.content-wrapper li {
    margin: 0.5rem 0;
    color: #6b7280;
}

/* Responsive Design */
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .content {
        margin-left: 0;
    }
    
    .content-wrapper {
        padding: 4rem 1.5rem 2rem 1.5rem;
    }
    
    .content-wrapper h1 {
        font-size: 2rem;
    }
    
    .content-wrapper h2 {
        font-size: 1.6rem;
    }
    
    .content-wrapper h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .content-wrapper {
        padding: 4rem 1rem 2rem 1rem;
    }
    
    .content-wrapper h1 {
        font-size: 1.8rem;
    }
    
    .content-wrapper h2 {
        font-size: 1.4rem;
    }
}
