/* ============================================================================
VERSION : 0.3.0
BUILT   : 2026-11-24 4:50 PM  Arizona (MST)
ARCHITECT : Dr. Vance Vasile
CHANGELOG (newest first):
  0.3.0  2026-11-24 4:50 PM MST - owner: the ytgit look. The shared look (drv/drv_base.css: black and gold, Georgia
         headings, the thin top bar with the line under it) does the page; this file keeps only PicTurn's own screen:
         the step cards, the four choices as boxes (like ytgit's choices), the Sizes ticks, the file rows, the crop box,
         Screen crop, the first page, the boxes and the toast. Same steps and choices as before.
  0.2.4  2026-11-09 Screen crop like a snipping tool; My files tick boxes. 0.2.2 the video box. 0.2.0 the Sizes ticks.
  0.1.0  2026-11-08 first PicTurn look (light, big buttons).
No inline styles anywhere (the page's security rules forbid them).
============================================================================ */
.pt .page { max-width: 820px; }
.foil-text { background: linear-gradient(115deg, #9F7835, #E9CF8F 42%, #A57C35 70%, #D9B872); -webkit-background-clip: text; background-clip: text; color: transparent; }
:focus-visible { outline: 2px solid var(--gold2); outline-offset: 2px; }

/* buttons: the shared ones, a touch taller for fingers */
.pt .btn { min-height: 44px; gap: 8px; cursor: pointer; }
.pt .btn.small { min-height: 34px; }
.pt .btn.small.on { border-color: var(--gold); color: var(--gold2); }
.pt .btn[disabled] { opacity: .45; cursor: default; }
.pt .btn .ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pt .btn .ico.play { fill: currentColor; stroke: none; }
.btnrow, .gorow, .addrow { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.gorow { margin: 16px 0 8px; }
.gorow .btn.gold { padding: 8px 28px; font-size: 15px; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }

/* the step cards */
.pt .card { margin-bottom: 12px; padding: 16px 18px; }
.card.drag { border: 1px dashed var(--gold); background: var(--ink3); }
.step { display: flex; align-items: center; gap: 10px; font-family: Georgia, "Times New Roman", serif; font-size: 19px; color: var(--gold2); margin: 0 0 12px; }
.num { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold2); display: grid; place-items: center; font: 700 13px Arial, sans-serif; flex: none; }
.note { color: var(--muted); font-size: 13.5px; margin: 10px 0 0; line-height: 1.45; }
.err { background: #2E1715; border: 1px solid #8C4A45; color: #F7D9D6; border-radius: 8px; padding: 10px 14px; font-size: 14px; margin: 10px 0; }
.note-box { background: var(--ink2); border: 1px solid var(--line); color: var(--muted); border-radius: 8px; padding: 10px 14px; font-size: 14px; margin: 0 0 12px; }

/* 2 Turn them into: four boxes, the picked one in gold (like ytgit's choices) */
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.chip { min-height: 48px; border: 1px solid var(--line); border-radius: 10px; background: #000; color: var(--text); font: 700 15px Arial, sans-serif; letter-spacing: .5px; cursor: pointer; }
.chip:hover { border-color: var(--gold); }
.chip.on { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); color: var(--gold2); }

/* 3 Sizes */
.sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 14px; }
.pt .tick { font-size: 14.5px; cursor: pointer; }
.pt .tick input { width: 20px; height: 20px; accent-color: #C9A45C; flex: none; margin: 0; }
.tick b { color: var(--text); margin-right: 4px; }
.tick span { color: var(--muted); }
.tick.icons { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
#custom-field { margin: 10px 0 0; max-width: 320px; }

/* the custom width box (the same form layout as the shared pages) */
.field { display: flex; flex-direction: column; gap: 5px; }
.label { font-size: 14px; color: var(--muted); white-space: nowrap; }
.field input { height: 44px; border-radius: 8px; border: 1px solid var(--line); background: #000; color: #fff; padding: 0 12px; font-size: 16px; width: 100%; }
.field input:focus, .fld input:focus { border-color: var(--gold); outline: none; }
.field .help { margin: 0; }

/* file rows (added files and Done) */
.file { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
#list .file:first-child { margin-top: 12px; }
#done-list .file:first-child { border-top: 0; }
.thumb { width: 48px; height: 48px; border-radius: 6px; flex: none; object-fit: cover; background: #000; border: 1px solid var(--line); }
.fname { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.fname small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.file .acts { display: flex; flex-wrap: wrap; gap: 6px; order: 4; flex-basis: 100%; padding-left: 60px; justify-content: flex-start; }
.x { order: 3; background: none; border: 1px solid transparent; border-radius: 8px; color: var(--muted); font-size: 22px; min-width: 40px; min-height: 40px; cursor: pointer; }
.x:hover { border-color: var(--line); color: var(--text); }
#step-done h1 { margin-bottom: 12px; }

/* My files */
.sel-bar { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; }
table.grid th.pick, table.grid td.pick { width: 44px; padding-right: 0; vertical-align: top; }
.pickbox { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: -10px 0 -10px -8px; cursor: pointer; }
.pickbox input { width: 20px; height: 20px; accent-color: #C9A45C; cursor: pointer; }
table.grid td .acts { justify-content: flex-start; margin-top: 8px; }
table.grid td.note { color: var(--muted); }
table.grid td small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }

/* Setup */
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
.nw-l { white-space: nowrap; }

/* first page */
.hero { text-align: center; padding: 34px 0 10px; }
.logo-xl { width: 112px; height: 112px; }
.logo-md { width: 44px; height: 44px; }
.word { font-family: Georgia, "Times New Roman", serif; font-size: 46px; font-weight: 400; color: var(--text); margin: 10px 0 4px; letter-spacing: .5px; }
.tag { font-size: 18px; color: var(--text); margin: 6px 0 0; }
.hero .sub { margin: 6px 0 0; }
.hero-btns { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 28px auto 0; }
.hero-btns .btn { min-width: 170px; }
.by { color: var(--muted); font-size: 13px; margin: 28px 0 0; }
.hero .logo-xl { animation: turn 1.4s ease-out .2s 1 both; }
@keyframes turn { 0% { transform: rotateY(90deg) scale(.8); opacity: 0; } 60% { transform: rotateY(-12deg) scale(1.03); opacity: 1; } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero .logo-xl { animation: none; } }

/* boxes (What is PicTurn?, the video, Delete, Crop) */
.dlg-back { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .7); display: flex; align-items: center; justify-content: center; padding: 16px; }
.dlg { width: 100%; max-width: 480px; background: var(--ink2); color: var(--text); border: 1px solid var(--gold); border-radius: 12px; padding: 18px 20px; max-height: calc(100vh - 32px); overflow: auto; }
.dlg h2 { margin-top: 0; }
.dlg.tall { display: flex; flex-direction: column; height: calc(100vh - 32px); max-height: 820px; overflow: hidden; max-width: 560px; }
.dlg.wide { max-width: 900px; }
.dlg-scroll { flex: 1; overflow: auto; padding-right: 4px; }
.dlg-foot { padding-top: 12px; display: flex; justify-content: flex-end; }
.dlg > .btn { margin-top: 6px; }
.flow { display: flex; justify-content: space-between; align-items: center; margin: 8px 0 14px; }
.fl { width: 30%; text-align: center; font-size: 14px; color: var(--muted); }
.ic { width: 60px; height: 60px; margin: 0 auto 6px; border-radius: 14px; border: 1px solid var(--line); background: #000; display: grid; place-items: center; }
.ico { width: 32px; height: 32px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.arrow { color: var(--gold); font-size: 24px; }
.use { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.use b { display: block; color: var(--text); }
.tag-chip { min-width: 60px; text-align: center; font-size: 12px; font-weight: 700; border-radius: 6px; padding: 4px 8px; border: 1px solid var(--gold); color: var(--gold2); flex: none; }
.help-text { line-height: 1.55; font-size: 15px; }
.help-text h2 { margin-top: 20px; }
.help-text li { margin-bottom: 5px; }
#pt-video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 8px; margin: 8px 0 10px; }

/* crop box */
.crop-wrap { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; background: #000; border-radius: 8px; overflow: hidden; touch-action: none; user-select: none; }
.crop-wrap img { max-width: 100%; max-height: 100%; display: block; pointer-events: none; }
.sel { position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .55); cursor: move; touch-action: none; }
.h { position: absolute; width: 26px; height: 26px; background: #fff; border: 3px solid var(--gold); border-radius: 50%; touch-action: none; }
.h.tl { left: -14px; top: -14px; cursor: nwse-resize; } .h.tr { right: -14px; top: -14px; cursor: nesw-resize; }
.h.bl { left: -14px; bottom: -14px; cursor: nesw-resize; } .h.br { right: -14px; bottom: -14px; cursor: nwse-resize; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }

/* Screen crop: the 3-second count and the frozen screen to drag over */
.snip { position: fixed; inset: 0; z-index: 90; background: #000; cursor: crosshair; touch-action: none; user-select: none; }
.snip canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.snip::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .42); z-index: 1; pointer-events: none; }
.snip.dragging::before { display: none; }
.snip-box { position: absolute; z-index: 2; outline: 2px solid #fff; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .42); pointer-events: none; }
.snip-bar { position: absolute; z-index: 3; top: 14px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 16px; border-radius: 999px; background: rgba(14, 12, 10, .92); border: 1px solid var(--line); color: #fff; white-space: nowrap; cursor: default; }
.snip-bar .btn { min-height: 36px; }
.count { position: fixed; right: 16px; bottom: 16px; z-index: 80; display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 12px; background: var(--ink2); border: 1px solid var(--gold); color: var(--text); max-width: 360px; }
.count b { font: 400 40px Georgia, serif; line-height: 1; color: var(--gold2); }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; background: var(--ink2); color: var(--text); border: 1px solid var(--gold); border-radius: 10px; padding: 12px 16px; max-width: calc(100% - 32px); font-size: 14.5px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }

@media (max-width: 640px) {
  .chips { grid-template-columns: repeat(2, 1fr); }
  .sizes { grid-template-columns: 1fr 1fr; }
  .row3 { grid-template-columns: 1fr; }
  .addrow .btn, .gorow .btn { flex: 1 1 100%; }
  .hero-btns .btn { flex: 1 1 100%; }
  .file .acts { padding-left: 0; }
  .word { font-size: 38px; }
}
@media (max-width: 340px) { .sizes { grid-template-columns: 1fr; } }
