/* ==========================================================================
   video-tutorials.css — styles for video_tutorials.php
   ========================================================================== */

/* ---------- HERO ---------- */
.vt-hero {
    display: flex;
    align-items: center;
    gap: 24px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 55%, #11998e 100%);
    color: #fff;
    border-radius: 20px;
    padding: 30px 32px;
    margin-bottom: 20px;
    box-shadow: 0 12px 34px rgba(26, 26, 46, 0.22);
    flex-wrap: wrap;
}
.vt-hero-logo {
    width: 96px; height: 96px;
    object-fit: contain;
    background: #fff;
    border-radius: 18px;
    padding: 6px;
    flex-shrink: 0;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}
.vt-hero h1 { font-size: 30px; font-weight: 800; margin: 0 0 4px; letter-spacing: -0.5px; }
.vt-hero-tag {
    margin: 0 0 10px;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #7ee8c0;
}
.vt-hero-sub {
    margin: 0 0 12px;
    font-size: 14.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    max-width: 760px;
}
.vt-hero-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.vt-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 4px 13px;
    font-size: 12px;
    font-weight: 500;
}
@media (max-width: 700px) {
    .vt-hero { padding: 22px 20px; gap: 16px; }
    .vt-hero h1 { font-size: 23px; }
    .vt-hero-logo { width: 72px; height: 72px; }
}

/* ---------- HOW TO USE ---------- */
.vt-howto {
    background: #fff;
    border: 1px solid #eef0f6;
    border-radius: 18px;
    padding: 24px 26px 20px;
    margin-bottom: 20px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.05);
}
.vt-howto-title {
    font-size: 18px;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.vt-howto-title i { color: #11998e; }
.vt-howto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
}
.vt-howto-item { display: flex; gap: 12px; align-items: flex-start; }
.vt-howto-num {
    flex-shrink: 0;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #11998e, #38ef7d);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}
.vt-howto-item strong { display: block; font-size: 13.8px; color: #23273a; margin-bottom: 3px; }
.vt-howto-item p { margin: 0; font-size: 13px; color: #6b7280; line-height: 1.6; }

.vt-callout {
    display: flex;
    gap: 13px;
    background: #f3f5ff;
    border-left: 4px solid #667eea;
    border-radius: 10px;
    padding: 13px 16px;
    margin-top: 16px;
    font-size: 13.3px;
    color: #3f4457;
    line-height: 1.65;
}
.vt-callout i { color: #667eea; font-size: 16px; margin-top: 2px; flex-shrink: 0; }
.vt-callout code {
    background: #e8ebfa;
    border-radius: 5px;
    padding: 1px 6px;
    font-size: 12.2px;
    color: #3a3f63;
    word-break: break-all;
}
.vt-callout-print { background: #f4fcf7; border-left-color: #28a745; }
.vt-callout-print i { color: #28a745; }
.vt-callout-print a { color: #1c7c3c; font-weight: 600; }
.vt-callout kbd {
    background: #23273a;
    color: #fff;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 11.5px;
}

/* ---------- WORKSPACE ---------- */
.vt-workspace {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 20px;
    align-items: start;
    margin-bottom: 22px;
}
@media (max-width: 1000px) { .vt-workspace { grid-template-columns: 1fr; } }

/* Playlist */
.vt-playlist {
    background: #fff;
    border: 1px solid #eef0f6;
    border-radius: 18px;
    padding: 16px 14px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 14px;
    max-height: calc(100vh - 30px);
    overflow-y: auto;
}
@media (max-width: 1000px) { .vt-playlist { position: static; max-height: none; } }
.vt-playlist-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 2px 6px 12px;
    border-bottom: 1px solid #f0f1f6;
    margin-bottom: 8px;
}
.vt-playlist-head h2 { font-size: 14.5px; font-weight: 800; color: #1a1a2e; margin: 0; display: flex; align-items: center; gap: 8px; }
.vt-playlist-head h2 i { color: #11998e; }
.vt-playlist-count { font-size: 11.5px; color: #8b92a4; font-weight: 600; white-space: nowrap; }
.vt-playlist-list { list-style: none; margin: 0; padding: 0; }
.vt-playlist-item {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 11px;
    padding: 9px 10px;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.18s ease, border-color 0.18s ease;
}
.vt-playlist-item:hover { background: #f7f8ff; }
.vt-playlist-item.active { background: #eef1fe; border-color: #c7cdf7; }
.vt-playlist-num {
    flex-shrink: 0;
    width: 22px; height: 22px;
    border-radius: 7px;
    background: #eef0f8;
    color: #5b6172;
    font-size: 11.5px;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    margin-top: 1px;
}
.vt-playlist-item.active .vt-playlist-num { background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; }
.vt-playlist-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.vt-playlist-title { font-size: 12.9px; font-weight: 600; color: #33384d; line-height: 1.35; }
.vt-playlist-item.active .vt-playlist-title { color: #1a1a2e; font-weight: 700; }
.vt-playlist-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.vt-min { font-size: 10.8px; color: #8b92a4; display: inline-flex; align-items: center; gap: 4px; }
.vt-pending {
    font-size: 10.5px;
    font-weight: 700;
    color: #b06a12;
    background: rgba(242, 153, 74, 0.15);
    border-radius: 20px;
    padding: 1px 8px;
}
.vt-watched { color: #28a745; font-size: 13px; opacity: 0; transition: opacity 0.2s; margin-top: 3px; flex-shrink: 0; }
.vt-playlist-item.watched .vt-watched { opacity: 1; }

/* Level badges */
.vt-level {
    display: inline-block;
    font-size: 10.3px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 20px;
    padding: 2px 9px;
    white-space: nowrap;
}
.vt-level-basics   { background: rgba(17, 153, 142, 0.13); color: #0f7c73; }
.vt-level-everyday { background: rgba(102, 126, 234, 0.14); color: #4a5bd0; }
.vt-level-advanced { background: rgba(220, 53, 69, 0.12); color: #c62b41; }

/* ---------- MAIN / TUTORIAL ---------- */
.vt-main { min-width: 0; }
.vt-tutorial { display: none; }
.vt-tutorial.active { display: block; animation: vtFade 0.28s ease both; }
@keyframes vtFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.vt-stage {
    background: #0d1117;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 18px;
    box-shadow: 0 10px 30px rgba(13, 17, 23, 0.28);
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vt-video { width: 100%; height: 100%; display: block; background: #000; }
.vt-stage-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.82);
    padding: 30px 26px;
    max-width: 560px;
}
.vt-stage-empty i {
    font-size: 46px;
    color: #38ef7d;
    margin-bottom: 14px;
    display: block;
}
.vt-stage-empty h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; color: #fff; }
.vt-stage-empty p { font-size: 13.5px; margin: 0 0 10px; line-height: 1.6; color: rgba(255, 255, 255, 0.72); }
.vt-stage-empty-file { font-size: 12px !important; }
.vt-stage-empty-file code {
    background: rgba(255, 255, 255, 0.12);
    color: #7ee8c0;
    border-radius: 5px;
    padding: 2px 7px;
    word-break: break-all;
}

.vt-tutorial-head {
    background: #fff;
    border: 1px solid #eef0f6;
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 16px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.05);
}
.vt-tutorial-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.vt-tutorial-title-row h2 { font-size: 20px; font-weight: 800; color: #1a1a2e; margin: 0; }
.vt-tutorial-badges { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vt-tutorial-summary { margin: 10px 0 8px; font-size: 14px; color: #4b5162; line-height: 1.65; }
.vt-tutorial-audience { margin: 0; font-size: 12.8px; color: #6b7280; }
.vt-tutorial-audience i { color: #667eea; margin-right: 5px; }

.vt-learn, .vt-steps, .vt-notes {
    background: #fff;
    border: 1px solid #eef0f6;
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 16px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.05);
}
.vt-learn h3, .vt-steps h3, .vt-notes h3 {
    font-size: 15px;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 13px;
    display: flex;
    align-items: center;
    gap: 9px;
}
.vt-learn h3 i { color: #11998e; }
.vt-steps h3 i { color: #667eea; }
.vt-notes h3 i { color: #f2994a; }

.vt-learn ul { margin: 0; padding-left: 20px; }
.vt-learn li { font-size: 13.6px; color: #4b5162; line-height: 1.65; margin-bottom: 6px; }

.vt-steps ol { margin: 0; padding-left: 22px; counter-reset: vtstep; list-style: none; }
.vt-steps ol > li {
    position: relative;
    font-size: 13.9px;
    color: #4b5162;
    line-height: 1.7;
    margin-bottom: 11px;
    padding-left: 4px;
}
.vt-steps ol > li::before {
    counter-increment: vtstep;
    content: counter(vtstep);
    position: absolute;
    left: -22px;
    top: 1px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: #eef1fe;
    color: #4a5bd0;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vt-steps code, .vt-learn code {
    background: #f0f1f8;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 12.2px;
    color: #3a3f63;
}
.vt-steps kbd {
    background: #23273a;
    color: #fff;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 11.5px;
}

.vt-notes { background: #fffaf2; border-color: #f7e6cd; }
.vt-notes p {
    font-size: 13.3px;
    color: #6b5a3e;
    line-height: 1.65;
    margin: 0 0 9px;
    padding-left: 16px;
    position: relative;
}
.vt-notes p:last-child { margin-bottom: 0; }
.vt-notes p::before {
    content: '\f0da';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #f2994a;
    font-size: 11px;
    top: 3px;
}

/* Tutorial navigation */
.vt-tutorial-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.vt-nav-btn {
    background: #fff;
    border: 1px solid #e3e4ee;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #4b5162;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    max-width: 100%;
}
.vt-nav-btn:hover { border-color: #c7cdf7; background: #f7f8ff; color: #1a1a2e; }
.vt-nav-next { background: linear-gradient(135deg, #667eea, #764ba2); border-color: transparent; color: #fff; }
.vt-nav-next:hover { color: #fff; background: linear-gradient(135deg, #5a6fe0, #6a4298); }

/* ---------- WRITTEN GUIDES ---------- */
.vt-written {
    background: #fff;
    border: 1px solid #eef0f6;
    border-radius: 18px;
    padding: 24px 26px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.05);
}
.vt-written-title {
    font-size: 19px;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.vt-written-title i { color: #11998e; }
.vt-written-sub { font-size: 13.4px; color: #6b7280; line-height: 1.65; margin: 0 0 18px; max-width: 760px; }

.vt-accordion .accordion-item { border: 1px solid #eef0f6; border-radius: 12px !important; margin-bottom: 8px; overflow: hidden; }
.vt-accordion .accordion-button {
    font-size: 14px;
    font-weight: 700;
    color: #23273a;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px 16px;
}
.vt-accordion .accordion-button:not(.collapsed) { background: #f7f8ff; color: #1a1a2e; box-shadow: none; }
.vt-accordion .accordion-button:focus { box-shadow: none; border-color: transparent; }
.vt-acc-num {
    flex-shrink: 0;
    width: 24px; height: 24px;
    border-radius: 7px;
    background: #eef0f8;
    color: #5b6172;
    font-size: 12px;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}
.vt-accordion .accordion-button:not(.collapsed) .vt-acc-num { background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; }
.vt-acc-title { flex: 1; text-align: left; }
.vt-accordion .accordion-body { padding: 4px 20px 18px; }
.vt-acc-summary { font-size: 13.2px; color: #6b7280; margin: 0 0 12px; line-height: 1.6; }
.vt-acc-steps { margin: 0; padding-left: 22px; }
.vt-acc-steps li { font-size: 13.5px; color: #4b5162; line-height: 1.7; margin-bottom: 8px; }
.vt-acc-note {
    font-size: 12.6px;
    color: #7a6a4e;
    background: #fffaf2;
    border-radius: 8px;
    padding: 8px 12px;
    margin: 8px 0 0;
    line-height: 1.6;
}
.vt-acc-note i { color: #f2994a; margin-right: 6px; }

/* ---------- SUPPORT ---------- */
.vt-support {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 2fr;
    gap: 20px;
    align-items: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #232a4d 100%);
    border-radius: 18px;
    padding: 26px;
    color: #fff;
    margin-top: 20px;
}
@media (max-width: 820px) { .vt-support { grid-template-columns: 1fr; } }
.vt-support h3 { font-size: 17px; font-weight: 800; margin: 0 0 6px; display: flex; align-items: center; gap: 10px; }
.vt-support h3 i { color: #7ee8c0; }
.vt-support p { font-size: 13.3px; color: rgba(255, 255, 255, 0.78); margin: 0; line-height: 1.65; }
.vt-support p a { color: #7ee8c0; font-weight: 600; }
.vt-support-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 9px; }
.vt-support-item { display: flex; gap: 6px; min-width: 0; }
.vt-support-link {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 11px;
    padding: 10px 13px;
    text-decoration: none;
    color: #fff;
    font-size: 12.9px;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease;
    word-break: break-word;
}
.vt-support-link:hover { background: rgba(255, 255, 255, 0.15); transform: translateY(-2px); color: #fff; }
.vt-support-link i { font-size: 14px; color: #7ee8c0; width: 16px; text-align: center; flex-shrink: 0; }
.vt-support-link span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.vt-support-link small {
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.5);
}
.vt-support-copy {
    flex-shrink: 0;
    width: 42px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    background: rgba(255, 255, 255, 0.07);
    color: #7ee8c0;
    border-radius: 11px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.vt-support-copy:hover { background: rgba(255, 255, 255, 0.18); color: #fff; transform: translateY(-2px); }
.vt-support-copy.copied { background: rgba(56, 239, 125, 0.22); border-color: rgba(56, 239, 125, 0.4); color: #38ef7d; }

/* ---------- PRINT ---------- */
@media print {
    .public-topbar, .vt-playlist, .vt-stage, .vt-hero-logo, .vt-tutorial-nav, .vt-howto { display: none !important; }
    .vt-workspace { display: block; }
    .vt-tutorial { display: block !important; page-break-inside: avoid; }
    .vt-accordion .accordion-collapse { display: block !important; height: auto !important; }
    .vt-hero { background: #fff !important; color: #000 !important; box-shadow: none; padding: 0 0 12px; }
    .vt-hero h1, .vt-hero-sub { color: #000 !important; }
    .vt-written, .vt-tutorial-head, .vt-learn, .vt-steps, .vt-notes { box-shadow: none; border: none; padding: 0 0 14px; }
    .vt-support { background: #fff !important; color: #000 !important; }
    .vt-support p, .vt-support p a { color: #000 !important; }
}
