/* ResumeShine Resources — additions for the data-driven article library.
   Loaded AFTER resources.css on resources.html, article.html and admin.html. */

/* ---------- Labeled image placeholders (art not yet created) ---------- */
.img-ph {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; width: 100%; height: 100%; min-height: 120px; text-align: center; padding: 14px;
  background:
    repeating-linear-gradient(-45deg, rgba(255,122,24,.05) 0 10px, rgba(245,0,112,.045) 10px 20px),
    linear-gradient(160deg, #FFF6EF, #FFF0F4);
  border: 1.5px dashed rgba(244,63,46,.38); border-radius: 14px;
  color: #C2410C;
}
.img-ph svg { opacity: .8; margin-bottom: 2px; }
.img-ph .ph-kind { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #BE3E12; }
.img-ph .ph-file {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px; font-weight: 600; color: #9A3412;
  background: rgba(255,255,255,.75); border: 1px solid rgba(244,63,46,.22);
  border-radius: 999px; padding: 3px 10px; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.img-ph .ph-dims { font-size: 11px; font-weight: 700; color: rgba(154,52,18,.75); }

.poster .img-ph { aspect-ratio: 16 / 9; border-radius: 18px; min-height: 220px; }
.a-thumb .img-ph { position: absolute; inset: 0; min-height: 0; border-radius: 0; border: none; gap: 3px; }
.a-thumb .img-ph .ph-file { font-size: 10px; padding: 2px 8px; }
.a-thumb .img-ph svg { width: 22px; height: 22px; }

/* ---------- Comparison table module ---------- */
.cmp-table { width: 100%; margin: 20px 0; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.cmp-table th {
  text-align: left; padding: 11px 14px; font-size: 11.5px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; color: #BE3E12;
  background: linear-gradient(160deg, #FFF4EC, #FFEFF3);
  border-bottom: 1px solid rgba(255,122,24,.25);
}
.cmp-table th:first-child { border-radius: 12px 0 0 0; }
.cmp-table th:last-child { border-radius: 0 12px 0 0; }
.cmp-table td { padding: 11px 14px; line-height: 1.55; color: var(--ink-2); border-bottom: 1px solid rgba(17,18,23,.07); background: #fff; vertical-align: top; }
.cmp-table tr:last-child td:first-child { border-radius: 0 0 0 12px; }
.cmp-table tr:last-child td:last-child { border-radius: 0 0 12px 0; }
.cmp-table tr td:first-child { font-weight: 700; color: var(--ink); }
.cmp-table-wrap { overflow-x: auto; margin: 20px 0; border-radius: 12px; box-shadow: 0 1px 0 rgba(17,18,23,.06), 0 12px 28px -24px rgba(31,17,10,.35); }
.cmp-table-wrap .cmp-table { margin: 0; }

/* ---------- Checklist card module ---------- */
.check-card {
  margin: 20px 0; background: #fff; border: 1px solid rgba(17,18,23,.08);
  border-radius: 16px; padding: 18px 20px;
  box-shadow: 0 12px 28px -24px rgba(31,17,10,.35);
}
.check-card .cc-h { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #BE3E12; }
.check-card ul { margin: 0 !important; padding: 0 !important; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.check-card ul li { position: relative; padding-left: 26px !important; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.check-card ul li::before {
  content: "" !important; position: absolute; left: 0 !important; top: 2px !important;
  width: 16px !important; height: 16px !important; border-radius: 50% !important;
  background: var(--grad-icon) !important;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 15' fill='none'%3E%3Ccircle cx='7.5' cy='7.5' r='6.4' stroke='black' stroke-width='1.6'/%3E%3Cpath d='M4.8 7.7l1.9 1.9 3.6-4' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 15' fill='none'%3E%3Ccircle cx='7.5' cy='7.5' r='6.4' stroke='black' stroke-width='1.6'/%3E%3Cpath d='M4.8 7.7l1.9 1.9 3.6-4' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Copyable template block (script-box upgrade) ---------- */
.script-box { position: relative; }
.script-box .sb-copy {
  position: absolute; top: 10px; right: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 30px; padding: 4px 11px; border-radius: 999px;
  border: 1px solid rgba(17,18,23,.12); background: #fff; cursor: pointer;
  font-family: inherit; font-size: 11.5px; font-weight: 800; color: var(--ink-3);
  transition: color .2s, border-color .2s, box-shadow .2s;
}
.script-box .sb-copy:hover { color: var(--accent-text); border-color: rgba(245,0,112,.4); box-shadow: 0 6px 14px -8px rgba(245,0,112,.5); }
.script-box .sb-copy:focus-visible { outline: 3px solid rgba(245,0,112,.35); outline-offset: 2px; }
.script-box .sb-copy.done { color: #1F8A5B; border-color: rgba(31,138,91,.4); }

/* ---------- Hub grid: "view all" reveal + placeholder-aware cards ---------- */
.article-grid .a-card { animation: none; }
.hub-count-note { margin: 14px 0 0; font-size: 13px; font-weight: 600; color: var(--ink-4); }

/* ---------- Article page: not-found notice ---------- */
.art-missing {
  margin: 60px auto; max-width: 460px; text-align: center;
  background: #fff; border: 1px solid rgba(17,18,23,.08); border-radius: 20px; padding: 40px 32px;
  box-shadow: 0 24px 48px -32px rgba(31,17,10,.4);
}
.art-missing h1 { margin: 12px 0 8px; font-size: 22px; font-weight: 800; }
.art-missing p { margin: 0 0 18px; font-size: 14px; line-height: 1.6; color: var(--ink-3); }

@media (max-width: 720px) {
  .cmp-table { font-size: 12.5px; }
  .cmp-table th, .cmp-table td { padding: 9px 10px; }
}

/* Hub: collapsed grid shows the first 8 cards until expanded */
.article-grid.collapsed .a-card:nth-child(n+9) { display: none !important; }

/* ============ Salary Worth Calculator ============ */
.salary-calc {
  margin: 26px 0 8px; padding: 26px 26px 22px; border-radius: 22px;
  background: linear-gradient(160deg, #FFF7EF 0%, #FFEFE2 48%, #FFE9EF 100%);
  border: 1px solid rgba(255,122,24,.22);
  box-shadow: 0 24px 54px -38px rgba(190,62,18,.5), inset 0 1px 0 rgba(255,255,255,.8);
  position: relative; overflow: hidden;
}
.salary-calc::before {
  content: ""; position: absolute; top: -70px; right: -60px; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,122,24,.16), rgba(245,0,112,.08) 55%, transparent 72%);
  pointer-events: none;
}
.sc-head { position: relative; }
.sc-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  background: linear-gradient(100deg, #FF7A18, #FF3D2E 55%, #F50070); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
}

/* .art-body p override protection: calculator paragraphs style themselves */
.salary-calc p { margin: 0; font-size: inherit; line-height: inherit; color: inherit; }
.salary-calc .script-box p { font-size: 14.5px; line-height: 1.7; color: #3A3F49; margin: 0 0 10px; }
.salary-calc .script-box p:last-child { margin-bottom: 0; }
.salary-calc .script-box .sb-label { font-size: 11px; color: var(--accent-text); margin: 0 0 8px; letter-spacing: .07em; }
.salary-calc .sc-title { margin: 12px 0 0; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: #111217; }
.salary-calc .sc-sub { margin: 6px 0 0; font-size: 13.5px; line-height: 1.65; color: #565D68; max-width: 62ch; }
.sc-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-top: 20px; position: relative; }
.sc-field { display: flex; flex-direction: column; gap: 7px; font-size: 12px; font-weight: 800; color: #565D68; }
.sc-field em { font-weight: 600; color: #98A0AC; font-style: normal; }
.sc-wide { grid-column: 1 / -1; }
.sc-field input[type="text"], .sc-field select {
  min-height: 46px; padding: 0 14px; border-radius: 13px; border: 1px solid rgba(17,18,23,.14);
  background: #fff; font-family: inherit; font-size: 14px; font-weight: 600; color: #111217; width: 100%; box-sizing: border-box;
}
.sc-field input:focus-visible, .sc-field select:focus-visible { outline: 3px solid rgba(245,0,112,.3); outline-offset: 1px; }
.sc-range output { float: right; font-size: 12.5px; font-weight: 800; color: #D8005F; }
.sc-range span { display: block; }
.sc-field input[type="range"] { width: 100%; accent-color: #F50070; height: 32px; }
.sc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sc-chips button {
  min-height: 38px; padding: 0 15px; border-radius: 999px; border: 1px solid rgba(17,18,23,.15);
  background: #fff; cursor: pointer; font-family: inherit; font-size: 12.5px; font-weight: 700; color: #2A2D35;
  transition: all .15s ease;
}
.sc-chips button:hover { border-color: rgba(245,0,112,.45); }
.sc-chips button.on {
  background: linear-gradient(100deg, #FF7A18, #FF3D2E 55%, #F50070); color: #fff; border-color: transparent;
  box-shadow: 0 8px 18px -10px rgba(245,0,112,.6);
}
.sc-more { border: 1px dashed rgba(17,18,23,.18); border-radius: 14px; padding: 12px 16px; background: rgba(255,255,255,.55); }
.sc-more summary { cursor: pointer; font-size: 13px; font-weight: 800; color: #565D68; }
.sc-more summary em { font-weight: 600; color: #98A0AC; font-style: normal; }
.sc-form-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-top: 14px; }
.sc-go {
  grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px; border: none; cursor: pointer;
  font-family: inherit; font-size: 15.5px; font-weight: 800; color: #fff;
  background: linear-gradient(100deg, #FF7A18, #FF3D2E 55%, #F50070);
  box-shadow: 0 16px 30px -14px rgba(245,0,112,.6);
  transition: transform .15s ease, box-shadow .15s ease;
}
.sc-go:hover { transform: translateY(-1px); box-shadow: 0 20px 36px -14px rgba(245,0,112,.65); }
.sc-result { margin-top: 22px; }
.sc-result.show { animation: scReveal .45s ease both; }
@keyframes scReveal { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.sc-range-card {
  background: #111217; border-radius: 18px; padding: 22px 24px; color: #fff; position: relative; overflow: hidden;
}
.sc-range-card::after {
  content: ""; position: absolute; top: -40px; right: -30px; width: 170px; height: 170px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,122,24,.35), rgba(245,0,112,.18) 55%, transparent 75%); pointer-events: none;
}
.sc-range-card .sc-r-label { margin: 0; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.65); }
.sc-range-card .sc-r-big {
  margin: 8px 0 0; font-size: clamp(28px, 4.5vw, 40px); font-weight: 800; letter-spacing: -0.02em;
  background: linear-gradient(100deg, #FFB37A, #FF7A6B 45%, #FF7AB8); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sc-r-bar { position: relative; height: 10px; border-radius: 999px; background: rgba(255,255,255,.14); margin: 18px 0 26px; }
.sc-r-fill { position: absolute; inset: 0; border-radius: 999px; background: linear-gradient(90deg, #FF7A18, #FF3D2E 55%, #F50070); opacity: .85; }
.sc-r-dot { position: absolute; top: 50%; left: 64%; transform: translate(-50%, -50%); }
.sc-r-dot i { display: block; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid #FF3D2E; box-sizing: border-box; box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.sc-r-dot b { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.75); white-space: nowrap; }
.sc-r-chips { display: flex; flex-wrap: wrap; gap: 8px; position: relative; }
.sc-r-chip {
  display: inline-flex; align-items: center; padding: 7px 13px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
  font-size: 12px; font-weight: 700; color: rgba(255,255,255,.85);
}
.sc-r-chip b { font-weight: 800; color: #fff; }
.sc-r-chip.strong { background: linear-gradient(100deg, rgba(255,122,24,.3), rgba(245,0,112,.3)); border-color: rgba(255,140,90,.45); }
.sc-r-chip.conf.high { border-color: rgba(80,220,150,.5); color: #7DEBB4; }
.sc-r-chip.conf.medium { border-color: rgba(255,190,90,.5); color: #FFD79A; }
.sc-r-chip.conf.low { border-color: rgba(255,120,120,.5); color: #FFB3B3; }
.salary-calc .sc-why { font-size: 14px; line-height: 1.7; color: #3A3F49; margin: 16px 0 0; }
.sc-factors { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.sc-f-col { border-radius: 16px; padding: 16px 18px; background: #fff; border: 1px solid rgba(17,18,23,.08); }
.sc-f-col.up { border-color: rgba(31,138,91,.25); background: linear-gradient(180deg, #F2FBF6, #fff); }
.sc-f-col.down { border-color: rgba(210,55,43,.22); background: linear-gradient(180deg, #FFF6F5, #fff); }
.sc-f-h { display: flex; align-items: center; gap: 7px; margin: 0 0 8px; font-size: 12.5px; font-weight: 800; }
.sc-f-col.up .sc-f-h { color: #1F8A5B; }
.sc-f-col.down .sc-f-h { color: #C0392B; }
.sc-f-col ul { margin: 0; padding: 0 0 0 18px; }
.sc-f-col li { font-size: 13px; line-height: 1.6; color: #3A3F49; margin: 4px 0; }
.salary-calc .sc-disclaimer { margin: 16px 0 0; font-size: 11.5px; line-height: 1.6; color: #98A0AC; position: relative; }
.salary-calc .script-box { margin-top: 16px; }
@media (max-width: 700px) {
  .salary-calc { padding: 20px 16px 18px; }
  .sc-form, .sc-form-inner, .sc-factors { grid-template-columns: 1fr; }
  .sc-go { width: 100%; justify-content: center; }
}
