/* ============================================
   Tutorial Page Styles
   ============================================ */

.tutorial-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

/* Side Navigation */
.side-nav {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.side-nav h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

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

.side-nav a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem;
    display: block;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.side-nav a:hover,
.side-nav a.active {
    background-color: var(--primary-color);
    color: white;
}

/* Tutorial Content */
.tutorial-content {
    max-width: 900px;
}

.tutorial-content h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tutorial-content h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

.tutorial-content h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.tutorial-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.tutorial-content ul,
.tutorial-content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.tutorial-content li {
    margin-bottom: 0.5rem;
}

/* Code Examples */
.code-example {
    background-color: var(--code-bg);
    border: 1px solid var(--code-border);
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
    padding: 1rem;
    margin: 1.5rem 0;
    position: relative;
}

.code-example-header {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    margin: -1rem -1rem 1rem -1rem;
    border-radius: 4px 4px 0 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.try-it-btn {
    background-color: var(--accent-color);
    color: #000;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    margin-top: 1rem;
    transition: background-color 0.3s;
}

.try-it-btn:hover {
    background-color: #e6a820;
}

/* Navigation Buttons */
.tutorial-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.tutorial-nav a {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.tutorial-nav a:hover {
    background-color: #3a2670;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    color: #666;
    margin: 0 0.5rem;
}

/* Table of Contents */
.table-of-contents {
    background: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.table-of-contents h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

.table-of-contents ul {
    list-style: none;
    margin-left: 0;
}

.table-of-contents li {
    margin-bottom: 0.5rem;
}

.table-of-contents a {
    color: var(--text-color);
    text-decoration: none;
}

.table-of-contents a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 968px) {
    .tutorial-layout {
        grid-template-columns: 1fr;
    }

    .side-nav {
        position: static;
        margin-bottom: 2rem;
    }
}

