/* =========================================================
   Casper — stranica za preuzimanje (standardni Casper brending)
   ========================================================= */
.dl-page { background: radial-gradient(1100px 650px at 50% -12%, rgba(108, 200, 240, 0.12), transparent 62%), var(--bg); }
.nav-links a[aria-current="page"] { color: var(--text); background: var(--surface-2); }

.dl-hero { width: min(960px, 100%); margin: 0 auto; padding: 150px 24px 40px; text-align: center; }
.dl-hero h1 { font: 700 clamp(44px, 7vw, 88px)/0.98 var(--display); margin: 10px 0 22px; letter-spacing: -0.04em; text-wrap: balance; }
.dl-hero .lead { font-size: 19px; color: var(--muted); max-width: 600px; margin: 0 auto; }
.dl-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.dl-meta { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; margin: 18px 0 0; font-size: 13px; color: var(--dim); }
.dl-meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--dim); }
.dl-meta span:first-child { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); }
.dl-warn { margin: 22px auto 0; max-width: 560px; padding: 14px 18px; border-radius: 16px; border: 1px solid rgba(255, 196, 84, 0.35); background: rgba(255, 196, 84, 0.07); font-size: 14.5px; color: var(--text); }

.dl-sec { width: min(1040px, 100%); margin: 0 auto; padding: 50px 24px; }

/* ---------- Koraci ---------- */
.dl-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; position: relative; }
.dl-step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 34px; align-items: center; padding: 34px; border-radius: 28px; border: 1px solid var(--border); background: var(--surface); }
.dl-step:nth-child(even) .dl-art { order: -1; }
.dl-txt { min-width: 0; }
.dl-n { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; font: 700 18px var(--display); color: #05070a; background: linear-gradient(180deg, #fff, #dff3fc); box-shadow: 0 10px 30px -10px rgba(108, 200, 240, 0.8); margin-bottom: 18px; }
.dl-step h2 { font: 700 clamp(24px, 3vw, 32px)/1.1 var(--display); letter-spacing: -0.025em; margin: 0 0 12px; text-wrap: balance; }
.dl-step p { color: var(--muted); margin: 0 0 12px; }
.dl-step p b { color: var(--text); }
.dl-tip { font-size: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(108, 200, 240, 0.06); border: 1px solid rgba(108, 200, 240, 0.18); }
.dl-tip a, .dl-more a { color: var(--sky); }
.dl-page code { font: 500 0.88em ui-monospace, SFMono-Regular, Menlo, monospace; padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); color: var(--ice); }
.dl-copy { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 8px 8px 8px 16px; border-radius: 14px; border: 1px solid var(--border-2); background: rgba(0, 0, 0, 0.35); }
.dl-copy code { flex: 1; min-width: 0; background: none; padding: 0; font-size: 15px; overflow: hidden; text-overflow: ellipsis; }
.dl-copybtn { border: 0; border-radius: 10px; padding: 9px 14px; font: 600 13px var(--font); cursor: pointer; color: #05070a; background: linear-gradient(180deg, #fff, #dff3fc); }
.dl-copybtn.ok { background: #4ade80; }

/* ---------- Ilustracije (CSS makete) ---------- */
.dl-art { min-width: 0; display: grid; place-items: center; min-height: 230px; padding: 22px; border-radius: 20px; background: radial-gradient(80% 90% at 50% 0%, rgba(108, 200, 240, 0.12), transparent 70%), var(--bg-2); border: 1px solid var(--border); overflow: hidden; }
.m-win { width: 100%; max-width: 400px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border-2); background: #111317; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
.m-bar { display: flex; align-items: center; gap: 6px; padding: 9px 10px; background: #1a1d22; border-bottom: 1px solid var(--border); }
.m-bar > i { width: 9px; height: 9px; border-radius: 50%; background: #3a3f47; flex: none; }
.m-url { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; margin-left: 6px; padding: 6px 12px; border-radius: 999px; background: #0c0d10; font: 500 12px ui-monospace, Menlo, monospace; color: var(--text); white-space: nowrap; overflow: hidden; }
.m-url svg { color: var(--dim); flex: none; }
.m-body { padding: 16px; min-height: 120px; }
.m-center { display: grid; place-items: center; }
.m-right { display: flex; justify-content: flex-end; align-items: flex-start; }
.m-key { font: 600 12px var(--font); padding: 7px 12px; border-radius: 8px; border: 1px solid var(--border-2); border-bottom-width: 3px; color: var(--muted); }
.m-caret { display: inline-block; width: 1.5px; height: 14px; background: var(--sky); animation: mBlink 1s steps(1) infinite; }
@keyframes mBlink { 50% { opacity: 0; } }
.m-typed, .m-typed2 { display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom; }
.dl-step.in .m-typed { animation: mType 1.6s steps(19) 0.4s both; }
.dl-step.in .m-typed2 { animation: mType 1.4s steps(14) 0.5s both; }
@keyframes mType { from { width: 0; } }

.m-files { display: flex; align-items: center; gap: 18px; color: var(--sky); }
.m-file { display: grid; justify-items: center; gap: 10px; }
.m-file small { font: 500 12.5px ui-monospace, Menlo, monospace; color: var(--text); }
.m-zip { width: 74px; height: 90px; border-radius: 10px; position: relative; background: linear-gradient(180deg, #2a2f37, #1b1e24); border: 1px solid var(--border-2); display: grid; place-items: end center; padding-bottom: 12px; }
.m-zip::before { content: ""; position: absolute; top: 0; left: 50%; width: 8px; height: 46px; transform: translateX(-50%); background: repeating-linear-gradient(180deg, #8b93a1 0 4px, transparent 4px 8px); }
.m-zip span { font: 700 11px var(--display); letter-spacing: 0.1em; color: var(--muted); }
.m-folder { width: 96px; height: 74px; position: relative; border-radius: 8px 12px 12px 12px; background: linear-gradient(180deg, #8ad7f7, #3aa8dc); display: grid; place-items: center; box-shadow: 0 20px 40px -18px rgba(108, 200, 240, 0.8); margin-top: 16px; }
.m-folder::before { content: ""; position: absolute; left: 0; top: -10px; width: 40px; height: 14px; border-radius: 6px 6px 0 0; background: #5ec0ea; }
.m-folder img { width: 34px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35)); }
.dl-step.in .m-folder { animation: mPop 0.7s var(--ease) 0.5s both; }
@keyframes mPop { from { transform: scale(0.6); opacity: 0; } }

.m-exthead { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.m-dev { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); padding: 4px 6px 4px 10px; border-radius: 999px; box-shadow: 0 0 0 2px rgba(108, 200, 240, 0.55); }
.m-toggle { width: 30px; height: 16px; border-radius: 999px; background: #3a3f47; position: relative; flex: none; transition: background 0.4s; }
.m-toggle i { position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform 0.4s var(--ease); }
.m-toggle.on, .dl-step.in .m-dev .m-toggle { background: var(--sky-deep); }
.m-toggle.on i, .dl-step.in .m-dev .m-toggle i { transform: translateX(14px); }
.dl-step.in .m-dev .m-toggle, .dl-step.in .m-dev .m-toggle i { transition-delay: 0.6s; }
.m-devbar { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0; }
.m-devbar span { font-size: 11.5px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border-2); color: var(--muted); }
.m-devbar .m-load { color: #05070a; border-color: transparent; background: linear-gradient(180deg, #fff, #dff3fc); font-weight: 600; box-shadow: 0 0 0 3px rgba(108, 200, 240, 0.35); }
.dl-step.in .m-load { animation: mPulse 1.8s ease-in-out 1.1s infinite; }
@keyframes mPulse { 50% { box-shadow: 0 0 0 7px rgba(108, 200, 240, 0.12); } }
.m-extcard { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #181b20; border: 1px solid var(--border); }
.m-extcard img { width: 28px; }
.m-extcard div { flex: 1; line-height: 1.2; }
.m-extcard b { display: block; font-size: 13px; }
.m-extcard small { font-size: 11px; color: var(--dim); }

.m-tb { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); flex: none; }
.m-tb img { width: 16px; }
.m-puzzle { background: rgba(108, 200, 240, 0.18); color: var(--ice); box-shadow: 0 0 0 2px rgba(108, 200, 240, 0.5); }
.m-pinned { opacity: 0; transform: scale(0.4); transition: all 0.5s var(--ease) 1.2s; }
.dl-step.in .m-pinned { opacity: 1; transform: none; }
.m-menu { width: 200px; padding: 10px; border-radius: 12px; background: #1d2026; border: 1px solid var(--border-2); box-shadow: 0 20px 40px -20px #000; }
.m-menu small { display: block; font-size: 11px; color: var(--dim); margin: 0 0 6px 4px; }
.m-mrow { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.05); font-size: 13px; }
.m-mrow img { width: 18px; }
.m-mrow span { flex: 1; }
.m-pin { color: var(--dim); transition: color 0.3s 1s; }
.dl-step.in .m-pin { color: var(--sky); }

.m-pop { width: 100%; max-width: 270px; padding: 16px; border-radius: 16px; background: #111317; border: 1px solid var(--border-2); box-shadow: 0 30px 60px -30px #000; }
.m-pophead { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.m-pophead img { width: 24px; }
.m-pophead b { flex: 1; font: 700 15px var(--display); }
.m-pop label { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 6px; }
.m-input { display: flex; align-items: center; gap: 2px; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--sky); background: #0c0d10; box-shadow: 0 0 0 3px rgba(108, 200, 240, 0.18); font: 500 12.5px ui-monospace, Menlo, monospace; }
.m-bal { display: flex; justify-content: space-between; margin: 12px 0; font-size: 12.5px; color: var(--muted); opacity: 0; transition: opacity 0.5s 2s; }
.m-bal b { font: 700 14px var(--display); color: #4ade80; }
.dl-step.in .m-bal { opacity: 1; }
.m-popbtn { text-align: center; padding: 9px; border-radius: 999px; font: 600 13px var(--font); color: #05070a; background: linear-gradient(180deg, #fff, #dff3fc); }

/* ---------- Kraj + dodatno ---------- */
.dl-done { margin-top: 18px; text-align: center; padding: 50px 28px; border-radius: 28px; border: 1px solid rgba(108, 200, 240, 0.3); background: radial-gradient(70% 100% at 50% 0%, rgba(108, 200, 240, 0.14), transparent 70%), var(--bg-2); }
.dl-done-ic img { width: 64px; margin: 0 auto 16px; filter: drop-shadow(0 10px 30px rgba(108, 200, 240, 0.5)); animation: float 6s ease-in-out infinite; }
.dl-done h2 { font: 700 clamp(28px, 4vw, 44px)/1.08 var(--display); letter-spacing: -0.03em; margin: 0 0 12px; text-wrap: balance; }
.dl-done p { color: var(--muted); max-width: 560px; margin: 0 auto; }
.dl-done p b { color: var(--text); }
@keyframes float { 50% { transform: translateY(-8px); } }

.dl-more { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-top: 10px; padding-bottom: 90px; }
.dl-col { min-width: 0; padding: 30px; border-radius: 24px; border: 1px solid var(--border); background: var(--surface); }
.dl-col h3 { font: 700 21px var(--display); letter-spacing: -0.02em; margin: 0 0 14px; }
.dl-mini { margin: 0; padding-left: 20px; color: var(--muted); display: grid; gap: 8px; }
.dl-mini b { color: var(--text); }
.dl-note { font-size: 13.5px; color: var(--dim); margin: 14px 0 0; }
.dl-col details { padding: 0 18px; margin-bottom: 8px; }
.dl-col summary { padding: 14px 0; font-size: 15px; font-weight: 600; }
.dl-col summary::after { font-size: 20px; }
.dl-col details p { font-size: 14.5px; margin: 0 0 14px; }

@media (max-width: 860px) {
  .dl-step { grid-template-columns: 1fr; gap: 22px; padding: 24px; }
  .dl-step:nth-child(even) .dl-art { order: 0; }
  .dl-more { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .dl-hero { padding: 116px 16px 24px; }
  .dl-hero .lead { font-size: 17px; }
  .dl-cta .btn { width: 100%; }
  .dl-sec { padding: 30px 16px; }
  .dl-step { padding: 20px; border-radius: 22px; }
  .dl-art { min-height: 190px; padding: 16px; }
  .dl-col { padding: 22px; }
  .dl-done { padding: 36px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .dl-page *, .dl-page *::before { animation: none !important; transition: none !important; }
}
