/* Kitatool Save page. Builds on style.css (colours, cards, chips, tab bar). */

.save-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.save-bg i { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(90px); opacity: .35; animation: drift 26s ease-in-out infinite alternate; }
.save-bg i:nth-child(1) { background: var(--violet); left: -25vmax; top: -30vmax; }
.save-bg i:nth-child(2) { background: var(--cyan); right: -30vmax; top: 10vh; opacity: .22; animation-duration: 32s; }
.save-bg i:nth-child(3) { background: var(--pink); left: 10vw; bottom: -45vmax; opacity: .2; animation-duration: 38s; }
@keyframes drift { to { transform: translate(6vmax, 5vmax) scale(1.08); } }

.small { font-size: 13px; line-height: 1.5; }

.paste-card { margin-top: 10px; }
.paste-row { display: flex; gap: 8px; }
.paste-row input {
  flex: 1; min-width: 0; font: inherit; font-size: 15px; color: #fff; background: rgba(255, 255, 255, .06);
  border: 1px solid var(--edge); border-radius: 16px; padding: 14px 16px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.paste-row input:focus { border-color: color-mix(in srgb, var(--cyan) 60%, transparent); box-shadow: 0 0 0 4px rgba(0, 229, 255, .12); }
.paste-row input::placeholder { color: #5d6275; }
.paste-btn { padding: 0 16px; border-radius: 16px; font-size: 14px; font-weight: 600; color: var(--cyan); background: rgba(0, 229, 255, .1); border: 1px solid rgba(0, 229, 255, .3); }

.save-go {
  width: 100%; margin-top: 12px; padding: 15px; border-radius: 18px; font-size: 16px; font-weight: 700; letter-spacing: .3px;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--pink)); background-size: 200% 100%;
  color: #06070B; box-shadow: 0 10px 40px -10px rgba(177, 92, 255, .8); transition: transform .15s, background-position .6s;
}
.save-go:hover { background-position: 100% 0; }
.save-go:active { transform: scale(.98); }
.save-go:disabled { opacity: .6; }

.platforms { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.platforms span { font-size: 12px; font-weight: 600; color: var(--dim); padding: 5px 10px; border-radius: 999px; border: 1px solid var(--edge); transition: .25s; }
.platforms span.on { color: #06070B; background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 20px -4px var(--cyan); }

.status { display: flex; align-items: center; gap: 14px; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .12); border-top-color: var(--cyan); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.result { animation: pop .35s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.res-head { display: flex; gap: 14px; align-items: flex-start; }
.res-thumb { width: 92px; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: rgba(255, 255, 255, .06); flex: none; }
.res-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.res-meta { min-width: 0; }
.res-author { font-size: 17px; font-weight: 700; margin-top: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res-title { margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

.items { display: grid; gap: 8px; margin-top: 16px; }
.item {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid var(--edge); transition: .2s;
}
.item:hover { border-color: color-mix(in srgb, var(--c) 50%, transparent); }
.item .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); overflow: hidden; }
.item .ic img { width: 100%; height: 100%; object-fit: cover; }
.item .ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.item .tx { flex: 1; min-width: 0; }
.item .tx b { display: block; font-size: 15px; }
.item .tx small { color: var(--dim); font-size: 12px; }
.item .dl { font-size: 13px; font-weight: 700; color: var(--c); }
.item .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--c); box-shadow: 0 0 12px var(--c); transition: width .2s; }
.item.done .dl::before { content: '✓ '; }

.how ol { padding-left: 20px; display: grid; gap: 8px; font-size: 14px; line-height: 1.5; color: #d9dbe4; }

