/* =====================================================================
 * Dijital Vesikalık (SUP-0318) — tanıtım sayfası + araç
 * Tema değişkenleri style.css :root'tan gelir (--accent, --ink, --border ...).
 * ===================================================================== */

/* ---------- TANITIM: HERO ---------- */
.vsk-hero {
    background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
    color: var(--hero-ink);
    padding: 56px 0;
}
.vsk-hero-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.vsk-hero h1 { color: var(--hero-ink); font-size: clamp(2rem, 4.5vw, 3rem); margin: 14px 0 12px; }
.vsk-hero p { color: rgba(255,255,255,.86); font-size: 1.05rem; line-height: 1.75; margin: 0 0 22px; max-width: 560px; }
.vsk-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
    background: rgba(255,255,255,.14); font-size: 13px; font-weight: 600; letter-spacing: .02em;
}
.vsk-badge svg { width: 16px; height: 16px; }
.vsk-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.vsk-btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.vsk-btn-light:hover { background: var(--cream); color: var(--ink); }
.vsk-btn-wa { background: #1fa855; border-color: #1fa855; color: #fff; }
.vsk-btn-wa:hover { background: #178a45; border-color: #178a45; color: #fff; }
.vsk-btn-wa svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.vsk-hero-sub { margin: 16px 0 0 !important; font-size: 14px !important; }
.vsk-hero-sub a { color: #fff; text-decoration: underline; }

.vsk-hero-art { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.vsk-sample {
    width: 100%; max-width: 250px; height: auto; border-radius: 10px;
    box-shadow: 0 18px 50px rgba(0,0,0,.35); background: #fff; border: 8px solid #fff;
}
.vsk-sample .g-crown-l { stroke: #e11d48; stroke-width: 2; }
.vsk-sample .g-chin-l  { stroke: #2563eb; stroke-width: 2; }
.vsk-sample .g-eye-l   { stroke: #0d9488; stroke-width: 2; stroke-dasharray: 7 5; }
.vsk-sample .g-mid-l   { stroke: rgba(20,22,28,.25); stroke-width: 1.5; }
.vsk-sample-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.vsk-sample-tags span {
    font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 999px;
    background: rgba(255,255,255,.14); color: #fff;
}

/* ---------- TANITIM: BÖLÜMLER ---------- */
.vsk-landing { padding-top: 32px; padding-bottom: 20px; }
.vsk-section { margin: 0 0 44px; }
.vsk-section-title { font-size: 1.55rem; margin: 0 0 18px; }
.vsk-cat-title { font-size: 1rem; color: var(--ink-soft); margin: 22px 0 10px; text-transform: uppercase; letter-spacing: .05em; }

.vsk-notice {
    display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; margin: 0 0 32px;
    border-radius: var(--radius); background: var(--accent-soft); border: 1px solid rgba(var(--accent-rgb), .25);
    line-height: 1.65; font-size: 15px;
}
.vsk-notice svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--accent); margin-top: 2px; }
.vsk-notice strong { display: block; }
.vsk-notice-expired { background: #fff7ed; border-color: #fed7aa; }
.vsk-notice-expired svg { color: var(--warning); }

.vsk-how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.vsk-how li {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 20px; box-shadow: var(--shadow-sm);
}
.vsk-how strong { display: block; font-size: 1.02rem; margin: 10px 0 6px; }
.vsk-how p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.vsk-how-no {
    display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
    background: var(--accent); color: var(--on-accent); font-weight: 700;
}

.vsk-rental {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 28px; box-shadow: var(--shadow-sm);
}
.vsk-rental p { color: var(--ink-soft); line-height: 1.75; }
.vsk-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.vsk-features li { display: flex; gap: 8px; align-items: center; font-size: 15px; }
.vsk-features svg { width: 18px; height: 18px; color: var(--success); flex-shrink: 0; }
.vsk-rental-cta { display: grid; gap: 10px; }

/* ---------- BELGE KARTLARI (tanıtım + araç) ---------- */
.vsk-doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.vsk-doc {
    display: flex; gap: 14px; align-items: center; text-align: left; width: 100%;
    background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius);
    padding: 14px; font: inherit; color: var(--ink); min-height: 76px;
}
button.vsk-doc { cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .15s; }
button.vsk-doc:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-1px); }
.vsk-doc.is-selected { border-color: var(--accent); background: var(--accent-soft); }
.vsk-doc-shape {
    --r: .83; flex-shrink: 0; height: 46px; width: calc(46px * var(--r));
    border: 2px solid var(--ink-soft); border-radius: 4px; position: relative; background: var(--cream);
}
.vsk-doc-shape::after {
    content: ""; position: absolute; left: 50%; top: 18%; width: 46%; height: 52%;
    transform: translateX(-50%); border-radius: 50% 50% 45% 45%; background: var(--border);
}
.vsk-doc-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.vsk-doc-text strong { font-size: 15px; }
.vsk-doc-text small { color: var(--muted); font-size: 13px; }
.vsk-doc-text em { color: var(--ink-soft); font-size: 12.5px; font-style: normal; line-height: 1.45; }

/* ---------- ARAÇ ---------- */
.vsk-app { padding: 28px 0 40px; }
.vsk-app-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 18px; }
.vsk-app-head h1 { margin: 0 0 4px; font-size: 1.7rem; }
.vsk-app-head p { margin: 0; color: var(--muted); }
.vsk-chip {
    display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px;
    font-size: 13.5px; font-weight: 600; border: 1px solid var(--border); background: var(--surface);
}
.vsk-chip svg { width: 16px; height: 16px; }
.vsk-chip-ok { color: var(--success); border-color: rgba(13,148,136,.35); }
.vsk-chip-warn { color: var(--warning); border-color: #fed7aa; background: #fff7ed; }
.vsk-chip-info { color: var(--info); border-color: rgba(37,99,235,.3); }

.vsk-steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 18px; counter-reset: none; }
.vsk-steps li {
    flex: 1; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--radius-sm);
    background: var(--border-soft); color: var(--muted); font-weight: 600; font-size: 14px; min-width: 0;
}
.vsk-steps li span {
    display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
    background: var(--surface); flex-shrink: 0; font-size: 13px;
}
.vsk-steps li em { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vsk-steps li.is-active { background: var(--accent); color: var(--on-accent); }
.vsk-steps li.is-active span { color: var(--accent); }
.vsk-steps li.is-done { background: var(--accent-soft); color: var(--ink); cursor: pointer; }

.vsk-pane {
    display: none; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm);
}
.vsk-pane.is-active { display: block; }
.vsk-pane-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 16px; }
.vsk-pane-head h2 { margin: 0; font-size: 1.3rem; }
.vsk-search { max-width: 300px; }
.vsk-doc-pill {
    display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft);
    color: var(--ink); font-size: 13px; font-weight: 600;
}
.vsk-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.vsk-tabs button {
    border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 8px 14px;
    font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); cursor: pointer; min-height: 40px;
}
.vsk-tabs button.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.vsk-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 18px; }
.vsk-nav .btn svg { width: 16px; height: 16px; }

/* Yükleme */
.vsk-upload-wrap { display: grid; gap: 14px; }
.vsk-drop {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 6px; min-height: 220px; padding: 24px; text-align: center; cursor: pointer;
    border: 2px dashed var(--border); border-radius: var(--radius); background: var(--cream);
    transition: border-color .2s, background .2s;
}
.vsk-drop:hover, .vsk-drop.is-over { border-color: var(--accent); background: var(--accent-soft); }
.vsk-drop input, .vsk-camera-btn input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.vsk-drop-icon svg { width: 42px; height: 42px; color: var(--accent); }
.vsk-drop small { color: var(--muted); }
.vsk-camera-btn { position: relative; justify-self: start; }
.vsk-tips { margin: 0; padding-left: 20px; color: var(--ink-soft); line-height: 1.85; font-size: 14px; }

/* Düzenleyici */
.vsk-editor { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.vsk-stage-col { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.vsk-stage {
    position: relative; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none;
    background: repeating-conic-gradient(#eef0f3 0% 25%, #fff 0% 50%) 0 0 / 18px 18px;
    box-shadow: 0 0 0 1px var(--border), var(--shadow); border-radius: 4px; overflow: hidden; max-width: 100%;
}
.vsk-stage:active { cursor: grabbing; }
.vsk-stage:focus-visible { outline: 3px solid rgba(var(--accent-rgb), .4); outline-offset: 3px; }
.vsk-stage canvas { position: absolute; inset: 0; display: block; }
.vsk-guides { pointer-events: none; }
.vsk-hint { font-size: 13px; color: var(--muted); margin: 12px 0 0; max-width: 440px; line-height: 1.6; text-align: center; }
.vsk-hint .g-crown { color: #e11d48; }
.vsk-hint .g-chin { color: #2563eb; }
.vsk-hint .g-eye { color: #0d9488; }

.vsk-controls { display: grid; gap: 14px; }
.vsk-ctl { display: grid; gap: 6px; }
.vsk-ctl label { font-weight: 600; font-size: 14px; display: flex; justify-content: space-between; gap: 8px; }
.vsk-ctl output { color: var(--muted); font-weight: 500; }
.vsk-ctl input[type=range] { width: 100%; accent-color: var(--accent); min-height: 28px; }
.vsk-ctl-bg { padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--cream); }
.vsk-ctl-bg small { font-size: 12px; line-height: 1.5; }
.vsk-check { display: flex !important; justify-content: flex-start !important; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; cursor: pointer; }
.vsk-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.vsk-btn-row { display: flex; flex-wrap: wrap; gap: 6px; }
.vsk-btn-row .btn { min-height: 40px; }
.vsk-mini { display: grid; gap: 6px; justify-items: start; font-size: 13px; color: var(--muted); font-weight: 600; }
.vsk-mini canvas { box-shadow: 0 0 0 1px var(--border); border-radius: 3px; background: #fff; }

/* Kontrol / indirme */
.vsk-final { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: start; }
.vsk-final-photo { display: grid; gap: 8px; justify-items: center; }
.vsk-final-photo canvas { box-shadow: 0 0 0 1px var(--border), var(--shadow); border-radius: 3px; background: #fff; max-width: 100%; height: auto; }
.vsk-final-photo small, .vsk-sheet-wrap small { color: var(--muted); font-size: 12.5px; text-align: center; }
.vsk-final-side { display: grid; gap: 14px; max-width: 460px; }
.vsk-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.vsk-checklist li { padding: 8px 10px 8px 34px; border-radius: var(--radius-sm); position: relative; background: var(--border-soft); line-height: 1.45; }
.vsk-checklist li::before { position: absolute; left: 11px; top: 8px; font-weight: 700; }
.vsk-checklist li.is-ok { background: #ecfdf5; } .vsk-checklist li.is-ok::before { content: "✓"; color: var(--success); }
.vsk-checklist li.is-warn { background: #fff7ed; } .vsk-checklist li.is-warn::before { content: "!"; color: var(--warning); }
.vsk-checklist li.is-bad { background: #fef2f2; } .vsk-checklist li.is-bad::before { content: "✕"; color: var(--danger); }
.vsk-checklist li.is-info::before { content: "•"; color: var(--muted); }
.vsk-sheet-wrap { display: grid; gap: 6px; justify-items: center; padding: 14px; background: var(--cream); border-radius: var(--radius-sm); }
.vsk-sheet-wrap canvas { box-shadow: 0 2px 10px rgba(0,0,0,.12); max-width: 100%; height: auto; }
.vsk-result { display: grid; gap: 8px; }
#vskMake.is-loading { opacity: .7; pointer-events: none; }

/* ---------- MOBİL ---------- */
@media (max-width: 991px) {
    .vsk-hero-inner { grid-template-columns: 1fr; }
    .vsk-hero-art { order: -1; }
    .vsk-sample { max-width: 180px; }
    .vsk-how { grid-template-columns: repeat(2, 1fr); }
    .vsk-rental { grid-template-columns: 1fr; }
    .vsk-editor { grid-template-columns: 1fr; }
    .vsk-final { grid-template-columns: 1fr; justify-items: center; }
    .vsk-final-side { max-width: none; width: 100%; }
}
@media (max-width: 560px) {
    .vsk-hero { padding: 34px 0; }
    .vsk-cta .btn { width: 100%; justify-content: center; }
    .vsk-how { grid-template-columns: 1fr; }
    .vsk-pane { padding: 16px; border-radius: var(--radius); }
    .vsk-search { max-width: none; width: 100%; }
    .vsk-steps li { justify-content: center; padding: 8px 4px; }
    .vsk-steps li em { display: none; }
    .vsk-steps li.is-active { flex: 2.4; }
    .vsk-steps li.is-active em { display: inline; }
    .vsk-doc-grid { grid-template-columns: 1fr; }
    .vsk-rental { padding: 20px; }
    .vsk-nav .btn { flex: 1 1 auto; justify-content: center; }
}
