/* =========================================================
   Learn with Palla — free resume builder
   Form + live A4 preview + 8 colorful templates.
   Loaded after styles.css on resume.html only.
   ========================================================= */

.rz-hero { padding: 54px 0 10px; text-align: center; }
.rz-hero .lead { margin: 14px auto 0; max-width: 640px; }

/* Hero: copy left, floating template mockups right */
.rz-hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px;
  align-items: center; text-align: left;
}
.rz-hero-copy h1 { margin-top: 18px; }
.rz-hero-copy .lead { margin: 16px 0 0; }
.rz-hero-copy .rz-feats { justify-content: flex-start; }

.rz-hero-art { position: relative; height: 430px; min-width: 0; }
.rz-hero-art::before {
  content: ""; position: absolute; inset: 4% -4% 4% 0;
  background:
    radial-gradient(58% 55% at 62% 36%, rgba(52,211,153,.26), transparent 70%),
    radial-gradient(52% 55% at 28% 72%, rgba(129,140,248,.24), transparent 70%),
    radial-gradient(40% 45% at 78% 78%, rgba(34,211,238,.18), transparent 70%);
  filter: blur(10px);
}
.rz-hero-art .hero-mini {
  position: absolute; width: 200px;
  border-radius: 10px;
  box-shadow: 0 34px 70px -22px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.07);
}
.rz-hero-art .hero-mini.hm1 { left: 2%;  top: 52px; transform: rotate(-8deg); animation: hm-float 7s ease-in-out infinite; }
.rz-hero-art .hero-mini.hm2 { left: 31%; top: 0;    width: 232px; transform: rotate(2deg); z-index: 2; animation: hm-float 6s ease-in-out .8s infinite; }
.rz-hero-art .hero-mini.hm3 { left: 64%; top: 78px; transform: rotate(8deg); animation: hm-float 8s ease-in-out 1.5s infinite; }
@keyframes hm-float { 50% { translate: 0 -11px; } }

/* ---------- Toolbar ---------- */
.rz-toolbar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center;
  margin: 26px 0 18px;
}
.rz-toolbar .btn { --pad: 10px 18px; font-size: .92rem; }

/* ATS toggle */
.rz-ats {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  color: var(--muted); font-size: .86rem; font-weight: 550;
  margin: -4px auto 18px; max-width: 640px; text-align: left;
  cursor: pointer;
}
.rz-ats input { width: 16px; height: 16px; accent-color: var(--primary); flex: none; }

/* Template gallery: mini resume previews */
.tpl-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 10px; }
.tpl-card {
  width: 116px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 9px 9px 7px; display: grid; gap: 7px;
  transition: border-color .2s, transform .15s, box-shadow .2s;
}
.tpl-card:hover { transform: translateY(-3px); border-color: var(--border-2); }
.tpl-card.active { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), 0 12px 28px -14px rgba(52,211,153,.5); }
.tpl-name {
  font-family: var(--font-mono); font-size: .68rem; font-weight: 600;
  color: var(--muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tpl-card.active .tpl-name { color: var(--primary); }

.tpl-mini {
  position: relative; display: block;
  aspect-ratio: 3 / 4; border-radius: 6px; overflow: hidden;
  background: #fff;
}
.tpl-mini::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(255,255,255,0) 52%, rgba(255,255,255,.4) 72%, rgba(255,255,255,0) 88%);
  opacity: 0; transition: opacity .35s ease;
}
.tpl-card:hover .tpl-mini::after { opacity: 1; }
.tpl-mini i { position: absolute; display: block; border-radius: 2px; }
/* base (single-column) geometry */
.mm-name { left: 10%; top: 9%;  width: 46%; height: 6.5%; background: #1f2937; }
.mm-acc  { left: 10%; top: 21%; width: 30%; height: 4%;   background: var(--a); }
.mm-l    { left: 10%; width: 80%; height: 3.2%; background: #e5e7eb; }
.mm-l.l1 { top: 31%; } .mm-l.l2 { top: 38%; } .mm-l.l3 { top: 45%; width: 62%; }
.mm-acc2 { left: 10%; top: 56%; width: 30%; height: 4%; background: var(--a); }
.mm-l.l4 { top: 66%; } .mm-l.l5 { top: 73%; width: 70%; }
/* sidebar variants */
.mm-side { top: 0; bottom: 0; width: 32%; background: var(--s); border-radius: 0; }
.mini-side-l .mm-side { left: 0; }
.mini-side-r .mm-side { right: 0; }
.mm-s { width: 18%; height: 2.8%; background: rgba(255,255,255,.55); }
.mini-side-l .mm-s { left: 7%; }
.mini-side-r .mm-s { right: 7%; }
.mm-s.s1 { top: 30%; } .mm-s.s2 { top: 37%; } .mm-s.s3 { top: 44%; }
.mini-side-l .mm-name { left: 42%; width: 42%; }
.mini-side-l .mm-acc, .mini-side-l .mm-acc2 { left: 42%; }
.mini-side-l .mm-l { left: 42%; width: 48%; }
.mini-side-l .mm-l.l3 { width: 36%; } .mini-side-l .mm-l.l5 { width: 42%; }
.mini-side-r .mm-l { width: 52%; }
.mini-side-r .mm-l.l3 { width: 40%; } .mini-side-r .mm-l.l5 { width: 46%; }
/* band variant */
.mm-bandbar { top: 0; left: 0; right: 0; height: 22%; background: var(--s); border-radius: 0; }
.mini-band .mm-name { top: 8%; background: rgba(255,255,255,.92); }
.mini-band .mm-acc { top: 28%; }
.mini-band .mm-l.l1 { top: 38%; } .mini-band .mm-l.l2 { top: 45%; } .mini-band .mm-l.l3 { top: 52%; width: 62%; }
.mini-band .mm-acc2 { top: 62%; }
.mini-band .mm-l.l4 { top: 72%; } .mini-band .mm-l.l5 { top: 79%; width: 70%; }

/* hero feature row + 3-step strip */
.rz-feats {
  display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center;
  margin-top: 18px;
  font-family: var(--font-mono); font-size: .82rem; color: var(--muted);
}
.rz-feats span::before { content: "✓ "; color: var(--primary); font-weight: 700; }
.rz-3steps {
  display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center;
  margin: 26px 0 20px; color: var(--muted); font-size: .9rem; font-weight: 550;
}
.rz-3steps b {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%; margin-right: 8px;
  background: var(--grad); color: #04120c; font-size: .78rem;
}

/* ---------- App layout ---------- */
.rz-app { display: grid; grid-template-columns: 440px minmax(0, 1fr); gap: 26px; align-items: start; padding-bottom: 70px; }

/* ---------- Form ---------- */
.rz-form {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px;
  display: grid; gap: 20px;
}
.rz-form h3 {
  font-size: .85rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--primary); font-family: var(--font-mono);
  border-bottom: 1px solid var(--border); padding-bottom: 8px;
}
.rz-group { display: grid; gap: 10px; }
.rz-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rz-form label { font-size: .82rem; color: var(--muted); font-weight: 600; display: block; margin-bottom: 4px; }
.rz-form .input, .rz-form .textarea { font-size: .92rem; padding: 10px 12px; }
.rz-form .textarea { min-height: 84px; }

.rz-item {
  border: 1px dashed var(--border-2); border-radius: 12px; padding: 14px;
  display: grid; gap: 10px; position: relative;
}
.rz-del {
  position: absolute; top: 8px; right: 8px;
  width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--border-2);
  background: rgba(244,114,182,.08); color: #f7a8cf; font-size: .8rem; line-height: 1;
}
.rz-del:hover { border-color: #f472b6; }
.rz-add {
  border: 1px dashed var(--border-2); background: rgba(52,211,153,.05);
  color: var(--primary); border-radius: 10px; padding: 10px; font-weight: 650; font-size: .88rem;
}
.rz-add:hover { border-color: var(--primary); }

/* ---------- Wizard steps ---------- */
.rz-step { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; min-width: 0; }
.rz-step[hidden] { display: none; }

.rz-stepper { display: flex; flex-wrap: wrap; gap: 6px; }
.rz-schip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--bg-2); color: var(--faint);
  font-size: .74rem; font-weight: 650; font-family: var(--font-mono);
  padding: 5px 11px; transition: border-color .2s, color .2s;
}
.rz-schip:hover { color: var(--text); }
.rz-schip .n {
  width: 16px; height: 16px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-3); color: var(--muted); font-size: .66rem;
}
.rz-schip.active { border-color: var(--primary); color: var(--text); }
.rz-schip.active .n { background: var(--primary); color: #04120c; }
.rz-schip.done { color: var(--primary); }
.rz-schip.done .n { background: rgba(52,211,153,.18); color: var(--primary); }

.rz-tipbox {
  border: 1px solid rgba(52,211,153,.28);
  background: rgba(52,211,153,.06);
  border-radius: 10px; padding: 11px 14px;
  font-size: .82rem; color: var(--muted); line-height: 1.6;
}
.rz-tipbox b { color: var(--primary); }

.rz-stepnav {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  border-top: 1px solid var(--border); padding-top: 16px;
}
.rz-stepinfo { font-size: .76rem; color: var(--faint); }
#stepBack:disabled { opacity: .35; pointer-events: none; }

.rz-ready { text-align: center; display: grid; gap: 12px; padding: 22px 8px 8px; }
.rz-ready[hidden] { display: none; }
.rz-ready-ico {
  width: 58px; height: 58px; margin: 0 auto; border-radius: 50%;
  background: rgba(52,211,153,.14); border: 1px solid var(--primary);
  display: grid; place-items: center; font-size: 1.6rem; color: var(--primary);
}
.rz-ready h3 { font-size: 1.3rem; }
.rz-ready p { font-size: .92rem; max-width: 42ch; margin: 0 auto; }
.rz-ready-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 6px; }

.rz-photo-row { display: flex; align-items: center; gap: 12px; }
.rz-photo-thumb {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--border-2); background: var(--bg-2);
}
.rz-note { font-size: .78rem; color: var(--faint); }

/* ---------- Preview ---------- */
.rz-previewCol { position: sticky; top: 86px; }
.rz-previewCol::before {
  content: ""; position: absolute; z-index: -1;
  inset: -36px -36px auto; height: 64%;
  background:
    radial-gradient(55% 45% at 50% 26%, rgba(34,211,238,.14), transparent 70%),
    radial-gradient(45% 45% at 22% 60%, rgba(52,211,153,.12), transparent 70%),
    radial-gradient(45% 45% at 82% 62%, rgba(129,140,248,.13), transparent 70%);
  filter: blur(8px);
}
.rz-previewWrap { overflow: hidden; border-radius: 8px; }
.rz-scale { transform-origin: top left; }
.rz-tip { text-align: center; font-size: .8rem; color: var(--faint); margin-top: 12px; font-family: var(--font-mono); }

/* =========================================================
   The A4 page (796px ≈ 210mm at 96dpi)
   ========================================================= */
.rz-page {
  --acc: #059669;          /* accent */
  --accSoft: #d1fae5;      /* light accent bg */
  --sideBg: #0f172a;       /* sidebar bg */
  --sideTx: #e2e8f0;       /* sidebar text */
  --pgTx: #1f2937;         /* body text */
  --pgMut: #6b7280;        /* muted */
  --headFont: "Inter", Arial, sans-serif;

  width: 796px; min-height: 1123px;
  background: #fff; color: var(--pgTx);
  font-family: "Inter", Arial, sans-serif;
  font-size: 13px; line-height: 1.55;
  box-shadow: 0 24px 60px -24px rgba(0,0,0,.75), 0 34px 90px -34px rgba(34,211,238,.28);
  display: grid;
  print-color-adjust: exact; -webkit-print-color-adjust: exact;
}
.rz-page a { color: var(--acc); text-decoration: none; }

/* header */
.rz-head { display: flex; gap: 22px; align-items: center; padding: 34px 40px 22px; }
.rz-avatar { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; border: 3px solid var(--acc); flex: none; }
.rz-name { font-family: var(--headFont); font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: #111827; line-height: 1.1; }
.rz-role { color: var(--acc); font-weight: 700; font-size: 15px; margin-top: 4px; }
.rz-contacts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 9px; font-size: 12px; color: var(--pgMut); }
.rz-contacts span { white-space: nowrap; }
.rz-contacts b { color: var(--acc); font-weight: 700; margin-right: 4px; }

/* body grid */
.rz-body { display: grid; grid-template-columns: 1fr; }
.rz-main { padding: 4px 40px 40px; min-width: 0; }
.rz-side { padding: 4px 30px 40px; min-width: 0; }

/* sections */
.rz-sec { margin-top: 20px; }
.rz-sec h2 {
  font-family: var(--headFont);
  font-size: 13.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: var(--acc);
  border-bottom: 2px solid var(--acc);
  padding-bottom: 4px; margin-bottom: 10px;
}
.rz-sec p { margin: 0 0 8px; color: var(--pgTx); }

.rz-entry { margin-bottom: 13px; }
.rz-entry-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.rz-entry-top b { font-size: 13.5px; color: #111827; }
.rz-when { font-size: 11.5px; color: var(--pgMut); white-space: nowrap; }
.rz-org { font-size: 12.5px; color: var(--acc); font-weight: 600; }
.rz-entry ul { margin: 6px 0 0; padding-left: 17px; }
.rz-entry li { margin-bottom: 3px; }
.rz-entry li::marker { color: var(--acc); }

.rz-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rz-chip {
  background: var(--accSoft); color: #111827;
  border-radius: 6px; padding: 3px 9px; font-size: 11.5px; font-weight: 600;
}
.rz-list { margin: 0; padding-left: 17px; }
.rz-list li { margin-bottom: 4px; }
.rz-list li::marker { color: var(--acc); }

/* ---------- Layout: sidebar left / right ---------- */
.lay-side-l .rz-body { grid-template-columns: 250px 1fr; }
.lay-side-r .rz-body { grid-template-columns: 1fr 250px; }
.lay-side-r .rz-side { order: 2; }
.lay-side-l .rz-side, .lay-side-r .rz-side { background: var(--sideBg); color: var(--sideTx); padding-top: 20px; }
.lay-side-l .rz-side .rz-sec h2, .lay-side-r .rz-side .rz-sec h2 { color: #fff; border-bottom-color: var(--acc); }
.lay-side-l .rz-side, .lay-side-r .rz-side { font-size: 12.3px; }
.lay-side-l .rz-side .rz-sec p, .lay-side-r .rz-side .rz-sec p,
.lay-side-l .rz-side .rz-list li, .lay-side-r .rz-side .rz-list li,
.lay-side-l .rz-side .rz-entry, .lay-side-r .rz-side .rz-entry { color: var(--sideTx); }
.lay-side-l .rz-side .rz-entry-top b, .lay-side-r .rz-side .rz-entry-top b { color: #fff; }
.lay-side-l .rz-side .rz-when, .lay-side-r .rz-side .rz-when { color: rgba(255,255,255,.65); }
.lay-side-l .rz-side .rz-chip, .lay-side-r .rz-side .rz-chip { background: rgba(255,255,255,.14); color: #fff; }
.lay-side-l .rz-side .rz-org, .lay-side-r .rz-side .rz-org { color: var(--accSoft); }

/* ---------- Layout: color band header ---------- */
.lay-band .rz-head { background: var(--sideBg); color: #fff; padding: 36px 40px 26px; }
.lay-band .rz-name { color: #fff; }
.lay-band .rz-role { color: var(--accSoft); }
.lay-band .rz-contacts { color: rgba(255,255,255,.82); }
.lay-band .rz-contacts b { color: var(--accSoft); }
.lay-band .rz-avatar { border-color: rgba(255,255,255,.7); }

/* ---------- Templates ---------- */
.tpl-emerald { --acc:#059669; --accSoft:#d1fae5; --sideBg:#0f172a; }
.tpl-ocean   { --acc:#2563eb; --accSoft:#dbeafe; --sideBg:#1e3a8a; }
.tpl-crimson { --acc:#dc2626; --accSoft:#fee2e2; --sideBg:#450a0a; --headFont: Georgia, "Times New Roman", serif; }
.tpl-violet  { --acc:#7c3aed; --accSoft:#ede9fe; --sideBg:#2e1065; }
.tpl-ink     { --acc:#111827; --accSoft:#e5e7eb; --sideBg:#111827; }
.tpl-sunset  { --acc:#ea580c; --accSoft:#ffedd5; --sideBg:#431407; }
.tpl-teal    { --acc:#0d9488; --accSoft:#ccfbf1; --sideBg:#134e4a; }
.tpl-gold    { --acc:#b45309; --accSoft:#fef3c7; --sideBg:#292524; --headFont: Georgia, "Times New Roman", serif; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .rz-app { grid-template-columns: 1fr; }
  .rz-previewCol { position: static; }
  .rz-hero-grid { grid-template-columns: 1fr; text-align: center; gap: 26px; }
  .rz-hero-copy .lead { margin-inline: auto; }
  .rz-hero-copy .rz-feats { justify-content: center; }
  .rz-hero-art { height: 320px; max-width: 560px; margin: 0 auto; width: 100%; }
  .rz-hero-art .hero-mini { width: 152px; }
  .rz-hero-art .hero-mini.hm2 { width: 176px; }
}
@media (max-width: 520px) {
  .rz-hero-art { height: 250px; }
  .rz-hero-art .hero-mini { width: 118px; }
  .rz-hero-art .hero-mini.hm2 { width: 138px; }
  .rz-hero-art .hero-mini.hm3 { left: 60%; }
}

/* ---------- Print: only the resume, at real A4 size ---------- */
@media print {
  .site-header, .rz-hero, .tpl-row, .rz-toolbar, .rz-ats, .rz-form, .rz-tip,
  .site-footer, .wa-float { display: none !important; }
  body { background: #fff !important; }
  body::before, body::after { display: none !important; }
  .rz-app { display: block; padding: 0; }
  .rz-previewWrap { overflow: visible; border-radius: 0; }
  .rz-scale { transform: none !important; width: auto !important; height: auto !important; }
  .rz-page { width: 210mm; min-height: auto; box-shadow: none; margin: 0; }
  @page { size: A4; margin: 0; }
}
