/* Claude Code Theme - Orange & Black/White */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Claude Light Theme */
    --primary-orange: #E97633;
    --primary-orange-hover: #d66829;
    --bg-primary: #ffffff;
    --bg-secondary: #f9f9f9;
    --bg-tertiary: #f0f0f0;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --border-color: #e0e0e0;
    --code-bg: #f5f5f5;
    --code-text: #1a1a1a;
    --bg-tertiary-rgb: 240, 240, 240;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] {
    /* Claude Dark Theme */
    --primary-orange: #E97633;
    --primary-orange-hover: #ff8f4d;
    --bg-primary: #1a1a1a;
    --bg-secondary: #242424;
    --bg-tertiary: #2d2d2d;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --text-tertiary: #707070;
    --border-color: #333333;
    --code-bg: #0d0d0d;
    --code-text: #e0e0e0;
    --bg-tertiary-rgb: 45, 45, 45;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --shadow-lg: 0 10px 40px 0 rgba(0, 0, 0, 0.5);
    --glass-bg: rgba(255, 255, 255, 0.005);
    --glass-border: rgba(255, 255, 255, 0.12);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    transition: max-width 0.4s ease;
}

.container.full-width {
    max-width: 100% !important;
}

.full-width-section {
    padding: 0 48px;
    width: 100%;
}

/* Navigation */
.navbar {
    background-color: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: var(--primary-orange);
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
    padding: 8px 16px;
    border-radius: 6px;
}

#hero-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--bg-tertiary);
    color: var(--primary-orange);
}

/* Chapter Selector Dropdown */
.chapter-selector {
    position: relative;
    display: inline-block;
}

.chapter-selector-btn {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.chapter-selector-btn:hover {
    background-color: var(--primary-orange);
    color: white;
    border-color: var(--primary-orange);
}

.chapter-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    min-width: 280px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
}

.chapter-selector:hover .chapter-dropdown {
    display: block;
}

.chapter-dropdown a {
    display: block;
    padding: 10px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
    border-bottom: 1px solid var(--border-color);
}

.chapter-dropdown a:last-child {
    border-bottom: none;
}

.chapter-dropdown a:hover {
    background-color: var(--bg-tertiary);
    color: var(--primary-orange);
    padding-left: 20px;
}

.chapter-dropdown a.current {
    background-color: var(--primary-orange);
    color: white;
    font-weight: 600;
}

/* Theme Toggle */
.theme-toggle {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s;
    margin-left: 12px;
}

.theme-toggle:hover {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
}

/* Hero Section */
.hero {
    background: none;
    color: var(--text-primary);
    padding: 80px 0;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 48px;
    opacity: 0.95;
    font-weight: 400;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.feature {
    text-align: center;
}

.feature-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 8px;
}

.feature p {
    font-size: 16px;
    font-weight: 500;
}

.cta-button {
    display: inline-block;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--primary-orange);
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
}

.cta-button:hover {
    transform: translateY(-2px);
    background: rgba(233, 118, 51, 0.1);
    border-color: var(--primary-orange);
    box-shadow: 0 0 20px rgba(233, 118, 51, 0.3);
}

/* Curriculum Section */
.curriculum {
    padding: 80px 0;
    background: none;
    scroll-margin-top: 70px;
}

.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.chapters-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    margin-top: 48px;
    padding: 0;
}

.chapter-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
}

.chapter-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-orange);
}

.chapter-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-orange);
    opacity: 0.3;
    margin-bottom: 10px;
    font-family: monospace;
}

.chapter-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 600;
}

.chapter-card p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-size: 13px;
}

.chapter-topics {
    list-style: none;
    margin-bottom: 12px;
}

.chapter-topics li {
    padding: 4px 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 18px;
    font-size: 12px;
}

.chapter-topics li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-orange);
    font-weight: bold;
}

.chapter-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.chapter-link:hover {
    gap: 8px;
}

/* Coming Soon Styles */
.chapter-card.coming-soon {
    opacity: 0.8;
    background-color: var(--bg-tertiary);
    cursor: default;
}

.chapter-card.coming-soon:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
    border-color: var(--border-color);
}

.chapter-card.coming-soon .chapter-number {
    color: var(--text-tertiary);
}

.chapter-card.coming-soon h3,
.chapter-card.coming-soon p,
.chapter-card.coming-soon li {
    color: var(--text-secondary);
}

.chapter-card.coming-soon .chapter-topics li::before {
    color: var(--text-tertiary);
}

.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background-color: var(--text-tertiary);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Playground Section */
.playground-section {
    padding: 60px 0;
    background: none;
    scroll-margin-top: 70px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.playground-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 32px;
    transition: all 0.3s ease;
    flex: 1;
    width: 100%;
    max-width: none;
    padding: 0;
}

.playground-container.focused {
    gap: 48px;
}

.playground-container.focused .editor-section {
    border-color: var(--primary-orange);
    box-shadow: 0 0 40px rgba(233, 118, 51, 0.2);
}

/* Obsolete expansion classes removed */

.editor-section,
.output-section {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--glass-border);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.editor-section:focus-within {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 4px rgba(233, 118, 51, 0.1);
}

.editor-header,
.output-header {
    background: rgba(var(--bg-tertiary-rgb), 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-primary);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 15px;
    border-bottom: 1px solid var(--border-color);
    letter-spacing: 0.3px;
}

.run-button {
    background: linear-gradient(135deg, var(--primary-orange) 0%, #d66829 100%);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(233, 118, 51, 0.3);
}

.run-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 118, 51, 0.4);
    filter: brightness(1.1);
}

.run-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.code-editor {
    width: 100%;
    height: 600px;
    transition: all 0.3s ease;
    padding: 24px;
    font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Monaco, monospace;
    font-size: 14px;
    line-height: 1.7;
    border: none;
    background-color: var(--code-bg);
    color: var(--code-text);
    resize: none;
    outline: none;
}

.output-display {
    height: 600px;
    transition: all 0.3s ease;
    padding: 24px;
    background-color: #000;
    color: #e0e0e0;
    font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Monaco, monospace;
    font-size: 14px;
    line-height: 1.7;
    overflow-y: auto;
    border: none;
}

.playground-container.expanded .output-display {
    height: 650px;
}

.loading-indicator {
    text-align: center;
    padding: 32px;
    margin-top: 32px;
}

.spinner {
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-orange);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: none;
    scroll-margin-top: 70px;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 0;
}

.about-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 32px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--glass-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 320px;
}

.about-card:hover {
    border-color: var(--primary-orange);
    box-shadow: var(--shadow-md);
}

.about-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 600;
}

.about-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* Footer */
.footer {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    text-align: center;
    padding: 32px 0;
    border-top: 1px solid var(--border-color);
}

.footer p {
    font-size: 14px;
    margin: 4px 0;
}

.footer a {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 500;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .playground-container {
        grid-template-columns: 1fr;
    }

    .nav-links {
        flex-wrap: wrap;
    }

    .chapters-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 16px;
    }

    .section-title {
        font-size: 28px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-orange);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-orange-hover);
}

/* Selection */
::selection {
    background-color: var(--primary-orange);
    color: white;
}

/* Contributors Thank You Notification - Right Side */
.contributors-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    right: 20px;
    bottom: 20px;
    max-width: 380px;
    width: calc(100% - 40px);
    pointer-events: none;
}

.contributors-modal.show {
    display: block;
    animation: slideInRight 0.5s ease-out forwards;
}

.contributors-modal.hide {
    animation: slideOutRight 0.5s ease-in forwards;
}

.contributors-modal-content {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    text-align: left;
    border: 2px solid var(--primary-orange);
    position: relative;
    pointer-events: auto;
}

.contributors-modal h2 {
    color: var(--primary-orange);
    font-size: 20px;
    margin-bottom: 8px;
    font-weight: 700;
}

.contributors-modal .subtitle {
    color: var(--text-secondary);
    font-size: 12px;
    margin-bottom: 16px;
    font-style: italic;
}

.contributors-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.contributor-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 12px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.contributor-card:hover {
    border-color: var(--primary-orange);
    background: var(--bg-primary);
}

.contributor-icon {
    font-size: 16px;
}

.contributor-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.contributor-role {
    display: none;
}

.contributors-modal .message {
    color: var(--text-primary);
    font-size: 13px;
    line-height: 1.5;
    margin: 12px 0 0 0;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    border-left: 3px solid var(--primary-orange);
}

.contributors-modal .start-learning-btn {
    display: none;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

@media (max-width: 480px) {
    .contributors-modal {
        right: 10px;
        bottom: 10px;
        max-width: calc(100% - 20px);
    }

    .contributors-modal-content {
        padding: 16px;
    }

    .contributors-modal h2 {
        font-size: 18px;
    }

    .contributors-modal .message {
        font-size: 12px;
    }
}

/* Contributors Thank You Section at Bottom */
.contributors-section {
    padding: 60px 0;
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.contributors-section .section-title {
    margin-bottom: 8px;
}

.contributors-section .section-subtitle {
    margin-bottom: 36px;
}

.contributors-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 36px;
}

.contributor-card-large {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.contributor-card-large:hover {
    border-color: var(--primary-orange);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(233, 118, 51, 0.15);
}

.contributor-card-large .contributor-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.contributor-card-large .contributor-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.contributor-card-large .contributor-role {
    font-size: 14px;
    color: var(--text-secondary);
    display: block;
}

/* Curriculum Sidebar Navigation */
.page-with-sidebar {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.curriculum-sidebar {
    position: sticky;
    top: 80px;
    height: fit-content;
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.curriculum-sidebar h3 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-orange);
}

.curriculum-nav {
    list-style: none;
}

.curriculum-nav li {
    margin-bottom: 4px;
}

.curriculum-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
}

.curriculum-nav a:hover {
    background: var(--bg-tertiary);
    color: var(--primary-orange);
}

.curriculum-nav .chapter-num {
    background: var(--primary-orange);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    min-width: 32px;
    text-align: center;
}

.main-content-area {
    min-width: 0;
}

@media (max-width: 968px) {
    .page-with-sidebar {
        grid-template-columns: 1fr;
    }

    .curriculum-sidebar {
        position: relative;
        top: 0;
    }
}