/* ============================================================
   ROKI Tutorials — public viewer (embedded in iframe)
   ============================================================ */

html, body { height: 100%; }

.v-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px 18px 40px;
}

/* ---- Search ---- */
.v-search {
    position: relative;
    margin-bottom: 18px;
}
.v-search input {
    width: 100%;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-primary);
    padding: 13px 16px 13px 44px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--background-light);
    outline: none;
}
.v-search input:focus {
    border-color: var(--roki-orange);
    background: var(--background);
    box-shadow: 0 0 0 3px rgba(244, 127, 98, 0.15);
}
.v-search svg {
    position: absolute;
    left: 15px; top: 50%;
    transform: translateY(-50%);
    width: 18px; height: 18px;
    stroke: var(--text-secondary);
}

/* ---- Tabs ---- */
.v-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 18px;
}
.v-tab {
    appearance: none;
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 15px;
    color: var(--text-secondary);
    padding: 10px 14px 13px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.v-tab[aria-selected="true"] {
    color: var(--roki-orange);
    border-bottom-color: var(--roki-orange);
}

/* ---- Lists ---- */
.v-list { display: grid; gap: 10px; }
.v-card {
    display: block;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    background: var(--background);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
    cursor: pointer;
}
.v-card:hover {
    border-color: var(--roki-orange);
    box-shadow: var(--shadow-soft);
}
.v-card-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15.5px;
}
.v-card-meta {
    margin-top: 4px;
    font-size: 13px;
    color: var(--text-secondary);
}
.v-empty {
    color: var(--text-secondary);
    font-size: 14px;
    padding: 28px 4px;
    text-align: center;
}
.v-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    color: #0E7C8B;
    background: var(--roki-aqua-soft);
    border-radius: 999px;
    padding: 3px 10px;
}
.hidden { display: none !important; }

/* ---- Stepper ---- */
.v-op-head { margin-bottom: 16px; }
.v-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    color: var(--text-secondary);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    margin-bottom: 12px;
}
.v-back:hover { color: var(--roki-orange); }
.v-op-title { font-size: 21px; font-weight: 600; line-height: 1.25; }

.v-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0 6px;
}
.v-dots { display: flex; gap: 6px; flex: 1; }
.v-dot {
    height: 6px; flex: 1;
    border-radius: 999px;
    background: var(--border-color);
}
.v-dot.done { background: var(--roki-aqua); }
.v-dot.active { background: var(--roki-orange); }
.v-count { font-size: 12.5px; color: var(--text-secondary); white-space: nowrap; }

.v-step { display: none; }
.v-step.active { display: block; animation: vfade .2s ease; }
@keyframes vfade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.v-step-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 18px;
    margin: 14px 0 8px;
}
.v-step-body {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
}
.v-shot {
    margin-top: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--background-light);
    padding: 10px;
    cursor: zoom-in;
}
.v-shot img { display: block; width: 100%; height: auto; border-radius: 8px; }
.v-shot-hint {
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
}
.v-tip {
    margin-top: 14px;
    background: var(--roki-aqua-soft);
    border: 1px solid #BDEAF0;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 13.5px;
    line-height: 1.5;
}
.v-tip b { color: #0E7C8B; }

/* ---- Nav ---- */
.v-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}
.btn {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 14.5px;
    border-radius: var(--radius-sm);
    padding: 11px 18px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: var(--background);
    color: var(--text-primary);
    transition: background .15s ease, border-color .15s ease, opacity .15s ease;
}
.btn-primary {
    background: var(--roki-orange);
    border-color: var(--roki-orange);
    color: #fff;
    margin-left: auto;
}
.btn-primary:hover { background: var(--roki-orange-hover); border-color: var(--roki-orange-hover); }
.btn[disabled] { opacity: .4; cursor: default; }

/* ---- Zoom modal (bounded by the iframe) ---- */
.v-modal {
    position: fixed; inset: 0;
    background: rgba(17, 24, 39, .82);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 50;
    cursor: zoom-out;
}
.v-modal.open { display: flex; }
.v-modal img {
    max-width: 100%;
    max-height: 100%;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 40px rgba(0,0,0,.4);
}
.v-modal-close {
    position: absolute;
    top: 14px; right: 16px;
    width: 36px; height: 36px;
    border-radius: 999px;
    border: none;
    background: rgba(255,255,255,.92);
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
}
