/* Vibe Coders - Warp Training Site Styles */

:root {
    --coral: #E85A4F;
    --coral-light: #FFF5F4;
    --dark: #1a1a1a;
    --gray-100: #fafafa;
    --gray-200: #f5f5f5;
    --gray-300: #e5e5e5;
    --gray-400: #d4d4d4;
    --gray-500: #a3a3a3;
    --gray-600: #737373;
    --gray-700: #525252;
    --terminal-bg: #1a1a2e;
    --green: #10b981;
    --yellow: #f59e0b;
    --purple: #8b5cf6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gray-100);
    color: var(--dark);
    line-height: 1.6;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--gray-300);
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
}

.nav-logo .bracket {
    color: var(--coral);
}

.nav-logo .vibe {
    color: var(--coral);
}

.nav-logo .coders {
    color: var(--dark);
}

.nav-links {
    display: flex;
    gap: 0.25rem;
    list-style: none;
}

.nav-links a {
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-links a:hover {
    background: var(--gray-200);
    color: var(--dark);
}

.nav-links a.active {
    background: var(--coral-light);
    color: var(--coral);
}

.nav-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--gray-600);
}

.nav-progress-bar {
    width: 100px;
    height: 6px;
    background: var(--gray-300);
    border-radius: 3px;
    overflow: hidden;
}

.nav-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--coral), #f97316);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Mobile Nav */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    margin: 5px 0;
    transition: 0.3s;
}

/* Hero */
.hero {
    padding: 8rem 2rem 4rem;
    text-align: center;
    background: linear-gradient(180deg, var(--coral-light) 0%, var(--gray-100) 100%);
}

.hero-badge {
    display: inline-block;
    background: white;
    border: 1px solid var(--gray-300);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--dark);
}

.hero h1 .highlight {
    color: var(--coral);
}

.hero p {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 550px;
    margin: 0 auto 2rem;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--dark);
    color: white;
    padding: 1rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.hero-btn.secondary {
    background: white;
    color: var(--dark);
    border: 1px solid var(--gray-300);
}

.hero-btn.secondary:hover {
    border-color: var(--coral);
    color: var(--coral);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.container-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Section Title */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--gray-600);
    font-size: 1.1rem;
}

/* Lesson Card */
.lesson {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid var(--gray-300);
}

.lesson-header {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.lesson-number {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--coral), #f97316);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.lesson-number.completed {
    background: var(--green);
}

.lesson-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.lesson-subtitle {
    color: var(--gray-600);
    font-size: 0.95rem;
}

/* Terminal Demo */
.terminal {
    background: var(--terminal-bg);
    border-radius: 14px;
    padding: 1.5rem;
    margin: 1.25rem 0;
    color: #e0e0e0;
    font-family: 'JetBrains Mono', 'SF Mono', 'Monaco', monospace;
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
}

.terminal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 36px;
    background: #12121a;
    border-bottom: 1px solid #2a2a3a;
}

.terminal-dots {
    position: absolute;
    top: 12px;
    left: 14px;
    display: flex;
    gap: 6px;
}

.terminal-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-dots span:nth-child(1) { background: #ff5f57; }
.terminal-dots span:nth-child(2) { background: #febc2e; }
.terminal-dots span:nth-child(3) { background: #28c840; }

.terminal-title {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: #666;
    font-family: 'Inter', sans-serif;
}

.terminal-content {
    margin-top: 1.75rem;
}

.terminal-line {
    margin: 0.4rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terminal-prompt { color: var(--coral); }
.terminal-cmd { color: #fff; }
.terminal-output { color: #888; padding-left: 1.25rem; }
.terminal-highlight { color: var(--green); }
.terminal-ai { color: var(--purple); }

/* Steps */
.steps {
    display: grid;
    gap: 0.75rem;
    margin: 1.25rem 0;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem;
    background: var(--gray-200);
    border-radius: 12px;
    transition: all 0.2s;
}

.step:hover {
    background: var(--coral-light);
}

.step-icon {
    width: 38px;
    height: 38px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.step h4 {
    font-weight: 600;
    margin-bottom: 0.15rem;
    font-size: 0.95rem;
}

.step p {
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* Shortcuts */
.shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.25rem 0;
}

.shortcut {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.9rem;
    background: var(--gray-200);
    border-radius: 10px;
    border: 1px solid var(--gray-300);
}

.shortcut-label {
    font-size: 0.8rem;
    color: var(--gray-600);
}

kbd {
    background: white;
    border: 1px solid var(--gray-400);
    border-radius: 5px;
    padding: 0.3rem 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    box-shadow: 0 2px 0 var(--gray-400);
}

/* Command Grid */
.command-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.75rem;
    margin: 1.25rem 0;
}

.command-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem 1.1rem;
    background: var(--gray-200);
    border-radius: 10px;
    transition: all 0.2s;
}

.command-card:hover {
    background: var(--coral-light);
    transform: translateX(4px);
}

.command-card code {
    background: var(--terminal-bg);
    color: #e0e0e0;
    padding: 0.4rem 0.65rem;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    white-space: nowrap;
}

.command-card span {
    color: var(--gray-600);
    font-size: 0.85rem;
}

/* Tip Box */
.tip {
    display: flex;
    gap: 0.9rem;
    padding: 1.1rem;
    background: #fffbeb;
    border-radius: 12px;
    border-left: 4px solid var(--yellow);
    margin: 1.25rem 0;
}

.tip-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.tip h4 {
    font-weight: 600;
    color: #b45309;
    margin-bottom: 0.2rem;
    font-size: 0.9rem;
}

.tip p {
    color: #92400e;
    font-size: 0.85rem;
}

/* Button */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--coral), #f97316);
    color: white;
    padding: 0.8rem 1.4rem;
    border-radius: 10px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(232, 90, 79, 0.3);
}

.btn.done {
    background: var(--green);
}

.btn-outline {
    background: white;
    color: var(--dark);
    border: 1px solid var(--gray-300);
}

.btn-outline:hover {
    border-color: var(--coral);
    color: var(--coral);
    box-shadow: none;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.card {
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 16px;
    padding: 1.75rem;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}

.card:hover {
    border-color: var(--coral);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--coral-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card p {
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-top: 1px solid var(--gray-300);
}

.footer-logo {
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.footer-logo .bracket { color: var(--coral); }
.footer-logo .vibe { color: var(--coral); }

footer p {
    color: var(--gray-500);
    font-size: 0.875rem;
}

footer a {
    color: var(--coral);
    text-decoration: none;
}

/* Cheat Sheet Specific */
.cheat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.cheat-section {
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 16px;
    padding: 1.5rem;
}

.cheat-section h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-300);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cheat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.cheat-item:last-child {
    border-bottom: none;
}

.cheat-item span {
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        padding: 0.75rem 1rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--gray-300);
        gap: 0.5rem;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .nav-progress {
        display: none;
    }

    .hero {
        padding: 6rem 1.5rem 3rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .container {
        padding: 2rem 1rem;
    }

    .lesson {
        padding: 1.5rem;
    }

    .lesson-header {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Print Styles */
@media print {
    .nav, .btn, footer {
        display: none;
    }

    .lesson, .cheat-section {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
