/* Tutorial Container */
.tutorial-generator-shortcode {
    width: 100%;
    max-width: var(--wp--style--global--content-size, 1200px);
    margin: 0 auto;
    padding: 0 var(--wp--style--root--padding-left, 1rem);
    font-family: var(--wp--preset--font-family--system), -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.tutorial-content {
    background: var(--wp--preset--color--background, #ffffff);
    margin: 2rem 0;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

/* Tutorial Header */
.tutorial-header {
    position: relative;
    background: linear-gradient(to bottom right, #0f172a, #1e293b);
    color: white;
    padding: 3rem 2rem;
    overflow: hidden;
}

.tutorial-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
}

.tutorial-header-content {
    position: relative;
    z-index: 1;
}

.tutorial-title {
    font-size: clamp(1.875rem, 5vw, 2.25rem);
    font-weight: 700;
    color: white;
    margin: 0 0 1rem;
    line-height: 1.2;
}

.tutorial-description {
    font-size: 1.125rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 65ch;
}

.tutorial-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.tutorial-difficulty {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.tutorial-difficulty::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    margin-right: 0.5rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.8);
}

.tutorial-difficulty.beginner {
    background: linear-gradient(to right, #10b981, #059669);
}

.tutorial-difficulty.intermediate {
    background: linear-gradient(to right, #f59e0b, #d97706);
}

.tutorial-difficulty.advanced {
    background: linear-gradient(to right, #ef4444, #dc2626);
}

.tutorial-time {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

/* Tutorial Content */
.tutorial-steps {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 2rem;
    padding: 2rem;
}

.tutorial-navigation {
    border-right: 1px solid #e2e8f0;
    padding-right: 2rem;
}

.step-nav-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
    color: #64748b;
    transition: all 0.2s;
    cursor: pointer;
}

.step-nav-item:hover {
    background: #f8fafc;
    color: #0f172a;
}

.step-nav-item.active {
    background: #eff6ff;
    color: #3b82f6;
    font-weight: 500;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    background: #f1f5f9;
}

.active .step-number {
    background: #3b82f6;
    color: white;
}

.tutorial-step {
    padding: 2rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.step-title {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 1.5rem;
}

.step-title svg {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.75rem;
    color: #3b82f6;
}

.step-content {
    color: #334155;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Code Examples */
.code-example {
    margin: 1.5rem 0;
    background: #1e293b;
    border-radius: 0.5rem;
    overflow: hidden;
}

.code-example-header {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #0f172a;
    border-bottom: 1px solid #334155;
}

.code-example-header svg {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
    color: #94a3b8;
}

.code-example-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #e2e8f0;
}

.code-example pre {
    margin: 0;
    padding: 1.5rem;
    overflow-x: auto;
}

.code-example code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.875rem;
    line-height: 1.7;
    color: #e2e8f0;
}

/* Practice Exercises */
.practice-exercise {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 0.75rem;
}

.practice-exercise-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.practice-exercise-header svg {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
    color: #d97706;
}

.practice-exercise-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #92400e;
}

.practice-exercise-content {
    color: #92400e;
    margin-bottom: 1.5rem;
}

.solution-toggle {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #b45309;
    cursor: pointer;
    transition: all 0.2s;
}

.solution-toggle:hover {
    background: #fde68a;
}

.solution-toggle svg {
    width: 1rem;
    height: 1rem;
    margin-right: 0.375rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tutorial-header {
        padding: 2rem 1.5rem;
    }

    .tutorial-steps {
        grid-template-columns: 1fr;
    }

    .tutorial-navigation {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding-right: 0;
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .tutorial-step {
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .tutorial-generator-shortcode {
        max-width: none;
        padding: 0;
    }

    .tutorial-content {
        box-shadow: none;
    }

    .tutorial-header {
        background: none !important;
        color: black;
        padding: 0 0 2rem;
    }

    .tutorial-title {
        color: black;
    }

    .code-example {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
    }

    .code-example code {
        color: #1e293b;
    }

    .practice-exercise {
        border: 1px solid #e2e8f0;
        break-inside: avoid;
    }
}