/* Tutorial Page Styles */

/* Tutorial Header */
.tutorial-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 120px 0 80px;
    color: white;
}

.tutorial-breadcrumb {
    font-size: 0.875rem;
    margin-bottom: 24px;
    opacity: 0.8;
}

.tutorial-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.tutorial-breadcrumb a:hover {
    color: var(--primary-orange);
}

.tutorial-breadcrumb span {
    margin: 0 8px;
    opacity: 0.6;
}

.tutorial h1,
.tutorial .tutorial-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    max-width: 900px;
    color: #1a1a2e;
}

/* Orange/Black alternating words in title - use JS to apply */
.tutorial h1 .word-orange {
    color: var(--primary-orange, #f97316);
}

.tutorial h1 .word-black {
    color: #1a1a2e;
}

.tutorial .subtitle,
.tutorial .description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    line-height: 1.6;
}

.tutorial-meta,
.tutorial .meta {
    display: none; /* Hide date/meta info */
}

.tutorial-meta .platform {
    color: var(--primary-orange);
    font-weight: 600;
}

.tutorial-meta .time,
.tutorial-meta .difficulty {
    color: rgba(255, 255, 255, 0.7);
}

/* Tutorial Content */
.tutorial-content,
.tutorial article {
    padding: 80px 0;
    background: white;
}

.tutorial-body,
.tutorial section {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.7;
    color: #374151;
    padding: 0 20px;
}

.tutorial h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 48px 0 24px;
    line-height: 1.3;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

.tutorial h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 32px 0 16px;
    line-height: 1.4;
}

.tutorial h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 24px 0 12px;
    line-height: 1.4;
}

.tutorial p {
    margin-bottom: 20px;
}

.tutorial ul,
.tutorial ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.tutorial li {
    margin-bottom: 8px;
}

.tutorial strong {
    font-weight: 600;
    color: #1f2937;
}

.tutorial a {
    color: var(--primary-orange);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.tutorial a:hover {
    border-bottom-color: var(--primary-orange);
}

/* Step Numbers */
.step,
.tutorial-step {
    position: relative;
    padding-left: 0;
    margin-bottom: 48px;
}

.step h2::before,
.tutorial h2[id^="step"]::before {
    content: "";
    display: inline-block;
    width: 32px;
    height: 32px;
    background: var(--primary-orange);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-right: 12px;
    vertical-align: middle;
}

/* Prerequisites Box */
.prerequisites,
#prerequisites {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 24px 32px;
    margin: 32px 0;
}

.prerequisites h2,
#prerequisites h2 {
    color: #0369a1;
    margin-top: 0;
    border-bottom: none;
    font-size: 1.5rem;
}

.prerequisites ul {
    margin-bottom: 0;
}

.prerequisites li {
    color: #075985;
}

/* Overview Box */
.overview,
#overview {
    background: #fefce8;
    border: 1px solid #fef08a;
    border-radius: 12px;
    padding: 24px 32px;
    margin: 32px 0;
}

.overview h2,
#overview h2 {
    color: #a16207;
    margin-top: 0;
    border-bottom: none;
    font-size: 1.5rem;
}

/* Code Examples */
.tutorial pre,
.tutorial code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.tutorial pre {
    background: #1a1a2e;
    border-radius: 12px;
    padding: 24px;
    overflow-x: auto;
    margin: 24px 0;
    color: #e2e8f0;
    font-size: 0.875rem;
    line-height: 1.6;
}

.tutorial code {
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #1a1a2e;
}

.tutorial pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

/* Expected Output */
.expected-output {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 16px 0 32px;
}

.expected-output strong {
    display: block;
    color: #059669;
    margin-bottom: 8px;
    font-size: 0.875rem;
}

.expected-output pre {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    margin: 0;
    color: #065f46;
}

/* Verification Section */
.verification,
#verification {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 12px;
    padding: 24px 32px;
    margin: 48px 0;
}

.verification h2,
#verification h2 {
    color: #059669;
    margin-top: 0;
    border-bottom: none;
}

/* Troubleshooting Section */
.troubleshooting,
#troubleshooting {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 24px 32px;
    margin: 48px 0;
}

.troubleshooting h2,
#troubleshooting h2 {
    color: #dc2626;
    margin-top: 0;
    border-bottom: none;
}

.troubleshooting h3,
.troubleshooting h4 {
    color: #b91c1c;
}

/* CTA Section */
.cta-section,
.tutorial .cta-box {
    background: linear-gradient(135deg, var(--primary-orange) 0%, #ff6b35 100%);
    color: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    margin: 48px 0;
}

.cta-section h2,
.cta-section h3 {
    margin: 0 0 16px;
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    border-bottom: none;
}

.cta-section p {
    margin: 0 0 24px;
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-section .btn,
.cta-section a.btn {
    display: inline-block;
    background: white;
    color: var(--primary-orange);
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-section .btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    border-bottom: none;
}

/* Next Steps */
#next-steps {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px 32px;
    margin: 48px 0;
}

#next-steps h2 {
    border-bottom: none;
    margin-top: 0;
}

/* Footer */
.tutorial footer {
    max-width: 800px;
    margin: 48px auto 0;
    padding: 24px 20px;
    border-top: 1px solid #e5e7eb;
    font-size: 0.875rem;
    color: #6b7280;
}

.tutorial footer a {
    color: var(--primary-orange);
}

/* Responsive Design */
@media (max-width: 768px) {
    .tutorial-header {
        padding: 100px 0 60px;
    }

    .tutorial h1,
    .tutorial .tutorial-title {
        font-size: 2.25rem;
    }

    .tutorial-content,
    .tutorial article {
        padding: 60px 0;
    }

    .tutorial-body,
    .tutorial section {
        font-size: 1rem;
    }

    .tutorial h2 {
        font-size: 1.5rem;
    }

    .tutorial h3 {
        font-size: 1.25rem;
    }

    .prerequisites,
    .overview,
    .verification,
    .troubleshooting,
    .cta-section,
    #next-steps {
        padding: 20px 24px;
        margin: 32px 0;
    }

    .cta-section {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .tutorial h1,
    .tutorial .tutorial-title {
        font-size: 1.875rem;
    }

    .tutorial pre {
        font-size: 0.75rem;
        padding: 16px;
    }

    .cta-section h2,
    .cta-section h3 {
        font-size: 1.5rem;
    }
}
