/* Anime Production Pipeline Documentation Styles */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    display: flex;
    min-height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    margin: 20px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

#navbar {
    width: 300px;
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 0;
    position: fixed;
    height: calc(100vh - 40px);
    overflow-y: auto;
    border-radius: 15px 0 0 15px;
}

#navbar header {
    padding: 30px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 2px solid #3498db;
}

#navbar h1 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #3498db;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

#navbar .subtitle {
    font-size: 0.9em;
    opacity: 0.8;
    font-style: italic;
}

#navbar ul {
    list-style: none;
    padding: 20px 0;
}

#navbar li {
    margin-bottom: 5px;
}

#navbar a {
    display: block;
    color: #ecf0f1;
    text-decoration: none;
    padding: 12px 20px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

#navbar a:hover {
    background: rgba(52, 152, 219, 0.2);
    border-left-color: #3498db;
    padding-left: 25px;
}

#navbar a.active {
    background: rgba(52, 152, 219, 0.3);
    border-left-color: #3498db;
    font-weight: bold;
}

#main-doc {
    margin-left: 300px;
    padding: 40px 50px;
    flex: 1;
    background: white;
}

.main-section {
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-section:nth-child(odd) {
    animation-delay: 0.1s;
}

.main-section:nth-child(even) {
    animation-delay: 0.2s;
}

.main-section header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #3498db;
}

.main-section h2 {
    font-size: 2.2em;
    color: #2c3e50;
    margin-bottom: 10px;
    position: relative;
}

.main-section h2::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 2px;
}

.main-section h3 {
    font-size: 1.5em;
    color: #34495e;
    margin: 25px 0 15px 0;
    padding-left: 15px;
    border-left: 4px solid #3498db;
}

.main-section p {
    margin-bottom: 15px;
    text-align: justify;
    font-size: 1.05em;
    line-height: 1.7;
}

.main-section ul, .main-section ol {
    margin: 20px 0;
    padding-left: 30px;
}

.main-section li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.code-example {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    position: relative;
    overflow-x: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.code-example::before {
    content: 'Code';
    position: absolute;
    top: 5px;
    right: 15px;
    font-size: 0.8em;
    color: #6c757d;
    font-weight: bold;
}

.code-example pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    line-height: 1.4;
}

code {
    background: #f1f3f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #000000;
    font-weight: bold;
}

.highlight {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
    background-size: cover;
    background-position: center 20%;
    background-repeat: no-repeat;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 5px solid #ff6b35;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.highlight.corephases {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('https://wonder-day.com/wp-content/uploads/2021/03/wonder-day-bleach-4.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 5px solid #ff6b35;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.highlight.corephases h3 {
    color: white;
}

.highlight.traditional {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('https://wallpapers.com/images/hd/3840x1080-anime-bleach-ichigo-kurosaki-eebqdl1m45ehwuwi.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 5px solid #ff6b35;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.highlight.modern {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('https://wallpapers.com/images/hd/ichigo-and-zangetsu-bleach-4k-ultra-hd-fanart-ymhbljxwfhxsnm3n.jpg');
    background-size: cover;
    background-position: center 20%;
    background-repeat: no-repeat;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 5px solid #ff6b35;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.highlight.KI {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('https://4kwallpapers.com/images/wallpapers/ichigo-kurosaki-bleach-1280x1280-10512.jpg');
    background-size: 100% auto;
    background-position: center 30%;
    background-repeat: no-repeat;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 5px solid #ff6b35;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.bleach-example {
    background: linear-gradient(135deg, #ff9a00 0%, #ffad33 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 6px 12px rgba(255, 154, 0, 0.3);
}

.bleach-example h4 {
    margin-bottom: 10px;
    font-size: 1.2em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.timeline {
    position: relative;
    padding: 20px 0;
    margin: 30px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #3498db, #2980b9);
}

.timeline-item {
    position: relative;
    padding: 20px 0 20px 70px;
    margin-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 25px;
    width: 17px;
    height: 17px;
    background: #3498db;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.process-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.process-card h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.1em;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        margin: 10px;
    }

    #navbar {
        width: 100%;
        height: auto;
        position: relative;
        border-radius: 15px 15px 0 0;
    }

    #main-doc {
        margin-left: 0;
        padding: 20px;
    }

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

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(52, 152, 219, 0.2);
    z-index: 1000;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2980b9);
    width: 0%;
    transition: width 0.1s ease;
}