/* templates-page.css — extends /theme.css card gallery only; keeps Vitrinak green brand */
.tplPage{max-width:1180px;margin:0 auto;padding:48px 20px 40px}
.tplHero{text-align:center;margin-bottom:36px}
.tplHero h1{font-size:clamp(32px,5vw,52px);margin:14px 0 10px;color:var(--ink)}
.tplHero p{color:var(--muted);line-height:1.9;max-width:640px;margin:0 auto;font-size:16px}
.tplFilters{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:22px 0 8px}
.tplFilters button{border:1px solid var(--line);background:#fff;border-radius:999px;padding:8px 14px;font-size:12px;color:var(--ink);font-weight:700}
.tplFilters button.active,.tplFilters button:hover{background:var(--g);color:#fff;border-color:var(--g)}
.tplCat{margin:42px 0 18px}
.tplCat h2{font-size:24px;margin:0 0 14px;color:var(--g)}
.tplGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.tplCard{background:var(--card);border:1px solid var(--line);border-radius:20px;overflow:hidden;box-shadow:0 12px 34px rgba(23,63,43,.06);display:flex;flex-direction:column}
.tplCover{aspect-ratio:16/11;overflow:hidden;background:#e8e2d6}
.tplCover img{width:100%;height:100%;object-fit:cover;display:block}
.tplBody{padding:16px;display:flex;flex-direction:column;gap:8px;flex:1}
.tplTag{align-self:flex-start;font-size:11px;font-weight:800;color:var(--g);background:#e9f1ec;border-radius:999px;padding:4px 10px}
.tplBody h3{margin:0;font-size:18px}
.tplBody p{margin:0;color:var(--muted);font-size:13px;line-height:1.8;flex:1}
.tplActions{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.tplActions .btn{flex:1;text-align:center;font-size:13px;font-weight:700}
.tplActions .ghost{background:#fff}
.adminTableWrap{overflow:auto}
.adminTable{width:100%;border-collapse:collapse;font-size:13px}
.adminTable th,.adminTable td{border-bottom:1px solid var(--line);padding:10px 8px;text-align:right;vertical-align:top}
.adminTable th{color:var(--muted);font-weight:700;font-size:12px}
.adminDelCell{display:flex;flex-direction:column;gap:6px;min-width:140px}
.adminMeta{margin-bottom:12px;color:var(--muted)}
.projectActions{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.muted{color:var(--muted)}
.createPage{max-width:920px;margin:0 auto;padding:40px 20px 80px}
.createPage .page-head{text-align:center;margin-bottom:28px}
.createPage .page-head h1{font-size:clamp(28px,4vw,42px);margin:0 0 10px}
.createPage .page-head p{color:var(--muted);line-height:1.9}
.createPage .steps{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-bottom:24px}
.createPage .step-pill{display:flex;align-items:center;gap:8px;padding:8px 14px;border-radius:999px;font-size:13px;font-weight:700;background:#fff;border:1px solid var(--line);color:var(--muted)}
.createPage .step-pill .n{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:#eee;font-size:12px}
.createPage .step-pill.active{border-color:var(--g);color:var(--ink);background:#e9f1ec}
.createPage .step-pill.active .n{background:var(--g);color:#fff}
.createPage .step-pill.done{border-color:#c8dccf;color:var(--g2)}
.createPage .panel{background:var(--card);border:1px solid var(--line);border-radius:22px;padding:22px;box-shadow:var(--shadow);margin-bottom:18px}
.createPage .hint{color:var(--muted);font-size:14px;line-height:1.8;margin:0 0 16px}
.createPage .chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.createPage .chip{border:1px solid var(--line);background:#fff;border-radius:999px;padding:8px 14px;font-size:13px;font-weight:700;cursor:pointer}
.createPage .chip.selected,.createPage .chip:hover{border-color:var(--g);background:#e9f1ec;color:var(--g)}
.createPage .field-label{display:block;font-size:13px;font-weight:700;margin-bottom:6px;color:var(--muted)}
.createPage textarea{width:100%;min-height:110px;border:1px solid var(--line);border-radius:14px;padding:12px;resize:vertical;outline:0;background:#fff;font:inherit}
.createPage textarea:focus{border-color:var(--g)}
.createPage .panel-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;align-items:center;margin-top:18px}
.createPage .recs{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}
.createPage .rec{border:1px solid var(--line);border-radius:16px;overflow:hidden;display:flex;flex-direction:column;background:#fff}
.createPage .rec img{aspect-ratio:16/11;width:100%;object-fit:cover}
.createPage .rec-body{padding:14px;display:flex;flex-direction:column;gap:6px;flex:1}
.createPage .rec .tag{align-self:flex-start;font-size:11px;font-weight:800;color:var(--g);background:#e9f1ec;padding:3px 8px;border-radius:999px}
.createPage .rec h3{margin:0;font-size:16px}
.createPage .rec p{color:var(--muted);font-size:13px;line-height:1.7;flex:1;margin:0}
.createPage .rec-actions{display:flex;flex-direction:column;gap:6px;margin-top:6px}
.createPage .rec-actions a,.createPage .rec-actions button{text-align:center;border-radius:12px;padding:9px 12px;font-weight:700;font-size:13px;border:0;cursor:pointer;text-decoration:none}
.createPage .rec-actions .pick{background:var(--g);color:#fff}
.createPage .rec-actions .view{background:#fff;border:1px solid var(--line)!important;color:var(--ink)}
.createPage .confirm-box{background:#edf4ef;border:1px solid #c9dfd0;border-radius:16px;padding:16px;margin:14px 0}
.createPage .confirm-box .slug{font-size:13px;color:var(--g);font-weight:700;margin-bottom:10px}
.createPage .sections{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.createPage .sections span{background:#fff;border:1px solid var(--line);border-radius:999px;padding:5px 10px;font-size:12px;font-weight:700}
.createPage .cta-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.createPage .err{color:#9a3d35;font-size:13px;margin-top:8px;display:none}
.createPage .btn-soft{background:#f4e8d0;color:#795a27;border-radius:12px;padding:11px 16px;font-weight:700;display:inline-flex}
.createPage .btn-ghost,.createPage .btn-primary{/* map old names */ }
.createPage .btn.btn-primary,.createPage a.btn-primary{background:var(--g);color:#fff;border-radius:12px;padding:11px 16px;font-weight:700;display:inline-flex;align-items:center}
.createPage .btn.btn-ghost,.createPage a.btn-ghost{background:#fff;border:1px solid var(--line);border-radius:12px;padding:11px 16px;font-weight:700;display:inline-flex;align-items:center;color:var(--ink)}
.tplCat>h2{display:flex;align-items:center;justify-content:space-between;gap:14px}.catCount{font-size:12px;font-weight:900;color:var(--g);background:#edf4ef;border:1px solid #d3e2d8;border-radius:999px;padding:7px 11px;white-space:nowrap}.motionCat{padding:0;border:0;background:transparent;box-shadow:none}.templateFolder{position:relative;border:1px solid #d6c9af;border-radius:28px;background:linear-gradient(145deg,#fffaf0,#f3eee3);box-shadow:0 24px 70px rgba(23,63,43,.08);overflow:visible}.templateFolder:before{content:"";position:absolute;top:-14px;right:34px;width:170px;height:28px;border:1px solid #d6c9af;border-bottom:0;border-radius:14px 14px 0 0;background:#fffaf0}.templateFolder>summary{position:relative;z-index:1;display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:16px;padding:26px 28px;cursor:pointer;list-style:none}.templateFolder>summary::-webkit-details-marker{display:none}.folderMark{position:relative;width:46px;height:35px;border-radius:8px;background:#173f2b;box-shadow:inset 0 -7px 0 rgba(255,255,255,.08)}.folderMark:before{content:"";position:absolute;right:4px;top:-8px;width:23px;height:10px;border-radius:5px 5px 0 0;background:#173f2b}.folderTitle{display:grid;gap:3px}.folderTitle b{font-size:clamp(22px,3vw,32px)}.folderTitle small{color:var(--muted);font-size:12px}.folderCount{padding:8px 13px;border-radius:999px;background:#173f2b;color:#fff;font-size:12px;white-space:nowrap}.folderChevron{font-size:28px;line-height:1;transition:transform .25s ease}.templateFolder[open] .folderChevron{transform:rotate(180deg)}.templateFolderBody{padding:0 28px 30px;border-top:1px solid rgba(23,63,43,.1)}.motionIntro{color:var(--muted);line-height:1.9;margin:22px 0 16px}.motionJobFilters{display:flex;gap:8px;overflow-x:auto;padding:2px 0 18px;scrollbar-width:thin}.motionJobFilters button{border:1px solid #d8cdb8;background:rgba(255,255,255,.7);color:#33443a;border-radius:999px;padding:9px 13px;white-space:nowrap;cursor:pointer;font:inherit;font-size:12px;font-weight:800}.motionJobFilters button b{display:inline-grid;place-items:center;min-width:22px;height:22px;margin-right:4px;border-radius:50%;background:#eee7d8;color:#173f2b}.motionJobFilters button.active{background:#173f2b;color:#fff;border-color:#173f2b}.motionJobFilters button.active b{background:#fff;color:#173f2b}.motionGroups{display:grid;gap:34px}.motionJobGroup{padding-top:24px;border-top:1px solid rgba(23,63,43,.12)}.motionJobGroup:first-child{padding-top:0;border-top:0}.motionJobHead{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:16px}.motionJobHead span{font-size:10px;font-weight:900;letter-spacing:.08em;color:#7b826e}.motionJobHead h3{font-size:clamp(20px,2.4vw,28px);margin:3px 0 0}.motionJobHead>strong{font-size:12px;color:#173f2b;background:#e4eee7;border-radius:999px;padding:7px 10px;white-space:nowrap}.motionCard{border-color:#d8cdb8}.motionCard .tplCover{position:relative;overflow:hidden;background:#d8dfd7}.motionCard .tplCover img{transform-origin:center;animation:motionCoverPan calc(7.5s + var(--motion-index,0)*.18s) ease-in-out infinite alternate;will-change:transform,filter}.motionCard:nth-child(even) .tplCover img{animation-direction:alternate-reverse}.motionCard .tplCover:after{content:"";position:absolute;inset:-45% -75%;background:linear-gradient(105deg,transparent 40%,rgba(255,255,255,.34) 50%,transparent 60%);animation:motionSheen 5.8s ease-in-out infinite;pointer-events:none}.motionBadge{position:absolute;top:12px;right:12px;display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border-radius:999px;background:rgba(23,29,25,.9);backdrop-filter:blur(8px);color:#fff;font-size:10px;font-weight:900;box-shadow:0 8px 22px #0003}.motionBadge i{width:7px;height:7px;border-radius:50%;background:#77f0a8;box-shadow:0 0 0 0 rgba(119,240,168,.6);animation:motionPulse 1.8s ease-out infinite}.motionCard:hover .tplCover img{animation-play-state:paused;transform:scale(1.09)}@keyframes motionCoverPan{0%{transform:scale(1.06) translate3d(-1.8%,0,0);filter:saturate(.9)}50%{transform:scale(1.13) translate3d(1.4%,-1.5%,0);filter:saturate(1.08)}100%{transform:scale(1.08) translate3d(0,1.4%,0);filter:saturate(.96)}}@keyframes motionSheen{0%,20%{transform:translateX(-40%);opacity:0}38%{opacity:.8}58%,100%{transform:translateX(55%);opacity:0}}@keyframes motionPulse{0%{box-shadow:0 0 0 0 rgba(119,240,168,.7)}70%{box-shadow:0 0 0 7px rgba(119,240,168,0)}100%{box-shadow:0 0 0 0 rgba(119,240,168,0)}}
@media(max-width:900px){.tplGrid{grid-template-columns:1fr 1fr}.templateFolder>summary{grid-template-columns:auto 1fr auto}.folderChevron{display:none}}
@media(max-width:580px){.templateFolder:before{right:22px;width:120px}.templateFolder>summary{padding:22px 18px;gap:11px}.folderMark{width:38px;height:30px}.folderTitle small{display:none}.folderCount{padding:7px 9px}.templateFolderBody{padding:0 16px 22px}.motionJobHead{align-items:center}.tplGrid{grid-template-columns:1fr}.tplPage{padding:28px 14px 60px}.tplActions{display:grid;grid-template-columns:1fr}}\n@media(prefers-reduced-motion:reduce){.motionCard .tplCover img,.motionCard .tplCover:after,.motionBadge i{animation:none!important}}
