/* ═══════════════════════════════════════════════════════════
   ClassoNix — Help Center Styles
   Extends blog.css conventions (toolbar, cards, breadcrumb,
   share buttons, preview banner) with tutorial-specific UI.
   Prefix: cn-help-* / cn-tutorial-* / cn-video-* / cn-prevnext-*
═══════════════════════════════════════════════════════════ */

/* ── Hero ─────────────────────────────────────────────── */
.cn-help-hero {
    padding: 140px 0 56px;
    text-align: center;
}
.cn-help-hero .section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #533AFD;
    background: rgba(83, 58, 253, 0.08);
    padding: 7px 16px;
    border-radius: 999px;
    margin-bottom: 18px;
}
.cn-help-hero h1 {
    font-size: clamp(34px, 5vw, 52px);
    font-weight: 800;
    color: #1A1A2E;
    line-height: 1.15;
    margin-bottom: 16px;
}
.cn-help-hero h1 .text-grad {
    background: linear-gradient(120deg, #533AFD, #8B5CF6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.cn-help-hero p {
    font-size: 17px;
    color: #475569;
    max-width: 620px;
    margin: 0 auto;
}

/* ── Tutorial card grid ───────────────────────────────── */
.cn-help-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 48px;
}
@media (max-width: 991px) { .cn-help-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cn-help-grid { grid-template-columns: 1fr; } }

.cn-help-card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
}
.cn-help-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 44px rgba(26, 26, 46, 0.10);
    border-color: #C7D2FE;
}
.cn-help-card-img {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #1A1A2E, #2D2A55);
    position: relative;
}
.cn-help-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.cn-help-card:hover .cn-help-card-img img { transform: scale(1.05); }

/* Play overlay */
.cn-play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(83, 58, 253, 0.92);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    padding-left: 3px;
    box-shadow: 0 8px 24px rgba(26, 26, 46, 0.3);
    transition: transform 0.2s ease, background 0.2s;
}
.cn-help-card:hover .cn-play-badge {
    transform: translate(-50%, -50%) scale(1.08);
    background: #533AFD;
}

/* Duration badge (bottom-right of thumbnail) */
.cn-duration-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(26, 26, 46, 0.85);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
    letter-spacing: 0.03em;
}

.cn-help-card-body {
    padding: 22px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.cn-help-card-title {
    font-size: 18px;
    font-weight: 800;
    color: #1A1A2E;
    line-height: 1.35;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cn-help-card:hover .cn-help-card-title { color: #533AFD; }
.cn-help-card-desc {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.cn-help-card-cta {
    font-size: 13px;
    font-weight: 700;
    color: #533AFD;
    white-space: nowrap;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #F1F5F9;
}
.cn-help-card:hover .cn-help-card-cta i { transform: translateX(3px); }
.cn-help-card-cta i { transition: transform 0.2s; margin-left: 4px; }

/* ═══════════════════════════════════════════════════════════
   SINGLE TUTORIAL PAGE
═══════════════════════════════════════════════════════════ */
.cn-tutorial-wrap { padding: 130px 0 60px; }

.cn-tutorial-desc {
    font-size: 17px;
    color: #475569;
    line-height: 1.6;
    max-width: 680px;
    margin: 0 auto;
}

/* Responsive 16:9 YouTube embed — never overflows mobile viewports */
.cn-video-wrap {
    max-width: 900px;
    margin: 0 auto 48px;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 24px 60px rgba(26, 26, 46, 0.14);
}
.cn-video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Written instructions */
.cn-tutorial-content {
    max-width: 760px;
    margin: 0 auto;
}
.cn-tutorial-content > h2 {
    font-size: 22px;
    font-weight: 800;
    color: #1A1A2E;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #E2E8F0;
}

/* Prev / Next tutorial navigation */
.cn-prevnext {
    max-width: 900px;
    margin: 48px auto 0;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}
.cn-prevnext-link {
    flex: 1;
    max-width: 48%;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 16px 20px;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.cn-prevnext-link:hover {
    border-color: #533AFD;
    box-shadow: 0 10px 28px rgba(83, 58, 253, 0.10);
}
.cn-prevnext-link.next { text-align: right; }
.cn-prevnext-link .pn-label {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94A3B8;
}
.cn-prevnext-link .pn-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #1A1A2E;
    line-height: 1.4;
}
.cn-prevnext-link:hover .pn-title { color: #533AFD; }

@media (max-width: 768px) {
    .cn-help-hero { padding: 120px 0 40px; }
    .cn-tutorial-wrap { padding-top: 110px; }
    .cn-video-wrap { margin-bottom: 32px; border-radius: 14px; }
    .cn-prevnext { flex-direction: column; }
    .cn-prevnext-link { max-width: 100%; }
}
