/*
 * Blog-scoped styles for the video tutorials.
 * Kept in a separate file (linked from Views/Blog/Post.cshtml) so it never
 * overlaps the shared board styles in site.css. Reuses the existing
 * .blog-video / .blog-video-player / .blog-video-caption rules from site.css
 * and only adds layout for the multi-video showcase list.
 */

.blog-video-featured {
    margin: 0 0 8px;
}

/* The reusable _TutorialVideo partial renders <figure class="blog-video tutorial-video">. */
.tutorial-video {
    margin: 8px 0 8px;
}

.tutorial-video-summary {
    margin: 0;
}

/* Showcase list of tutorials on /blog/video-tutorials */
.tutorial-list {
    list-style: none;
    margin: 32px 0 0 !important;
    padding: 0 !important;
    display: grid;
    gap: 40px;
}

.tutorial-item {
    margin: 0 !important;
    padding: 22px;
    border: 1px solid #e4e5eb;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(26, 25, 55, .05);
}

.tutorial-item-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.tutorial-item-head h3 {
    margin: 0 !important;
    font-size: 1.25rem;
    line-height: 1.2;
    color: var(--ink);
}

/* Section grouping: "Anonymous planner" vs "Full planner". */
.tutorial-section {
    margin-top: 40px;
}

.tutorial-section-head {
    padding: 20px 22px;
    margin-bottom: 4px;
    border-radius: 18px;
    border: 1px solid #e7e4f4;
    background: linear-gradient(180deg, #f7f6fe 0%, #fff 100%);
}

.tutorial-section-head h2 {
    margin: 8px 0 6px !important;
    font-size: 1.5rem;
    line-height: 1.15;
    color: var(--ink);
}

.tutorial-section-head p {
    margin: 0 !important;
    max-width: none;
    color: var(--muted);
}

.tutorial-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    background: #e8f5ee;
    color: #1b7a4b;
    border: 1px solid #c9ead8;
}

.tutorial-section-badge--full {
    background: #efe9ff;
    color: #5a3fd4;
    border-color: #ddd2ff;
}

.tutorial-item-num {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #efe9ff;
    color: #5a3fd4;
    border: 1px solid #ddd2ff;
    font-weight: 800;
    font-size: 1rem;
}

.tutorial-item > p {
    margin: 0 0 16px;
    max-width: none;
    color: var(--muted);
}

.tutorial-steps {
    margin: 16px 0 0 !important;
    padding-left: 1.2rem;
    color: var(--muted);
}

.tutorial-steps li {
    margin-bottom: 6px;
    max-width: none;
}

@media (max-width: 640px) {
    .tutorial-item {
        padding: 16px;
    }

    .tutorial-item-head h3 {
        font-size: 1.1rem;
    }

    .tutorial-section-head {
        padding: 16px;
    }

    .tutorial-section-head h2 {
        font-size: 1.3rem;
    }
}
