/* A Tour of Frisco - Styles */

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

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

.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: #2d2d2d;
    color: #fff;
    padding: 2rem 1.5rem;
    overflow-y: auto;
    position: fixed;
    height: 100vh;
}

.sidebar h1 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #4a9eff;
    font-weight: 600;
}

.sidebar nav ul {
    list-style: none;
}

.sidebar nav li {
    margin-bottom: 0.5rem;
}

.sidebar .section-title {
    color: #888;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.sidebar .nav-link {
    color: #ccc;
    text-decoration: none;
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.sidebar .nav-link.active {
    background: #4a9eff;
    color: #fff;
}

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

.lesson {
    display: none;
}

.lesson.active {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lesson h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #2d2d2d;
    font-weight: 600;
}

.lesson h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #444;
    font-weight: 600;
}

.lesson p {
    margin-bottom: 1rem;
    color: #555;
    font-size: 1.05rem;
}

.lesson ul {
    margin-bottom: 1rem;
    margin-left: 2rem;
}

.lesson li {
    margin-bottom: 0.5rem;
    color: #555;
}

/* Code Blocks */
pre {
    background: #2d2d2d;
    border-radius: 6px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
}

:not(pre) > code {
    background: #e8e8e8;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    color: #d63384;
    font-size: 0.9em;
}

/* Scrollbar */
.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }

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

    .container {
        flex-direction: column;
    }
}
