/* ── Global ── */
:root {
  --navy:   #122345;
  --sage:   #bebe7b;
  --li:     #0A66C2;
  --li-dk:  #004182;
  --ink:    #1d2433;
  --muted:  #5a6478;
  --line:   rgba(18, 35, 69, .12);
  --card:   #ffffff;
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  font-family: "Montserrat", sans-serif;
  letter-spacing: -0.01em;
}

html, body {
  margin: 0;
  padding: 0;
  background: transparent;
  overflow-x: hidden;
}

#shareWidget {
  max-width: 760px;
  margin: 28px auto;
  padding: 0 14px;
}

/* ── Card ── */
.card {
  background: var(--card);
  border-radius: 18px;
  box-shadow: 0 10px 32px rgba(18, 35, 69, .12);
  overflow: hidden;
  border: 1px solid var(--line);
}

.card__intro {
  padding: 26px 28px 4px;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sage);
  color: var(--navy);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.badge svg { flex-shrink: 0; }

.card__title {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
}

.card__sub {
  margin: 0 auto;
  max-width: 520px;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 500;
  line-height: 1.55;
}
.card__sub strong { color: var(--navy); font-weight: 700; }
.card__sub em { color: var(--navy); font-weight: 600; font-style: italic; }

.card__body {
  padding: 22px 28px 30px;
}

/* ── Preview image ── */
.preview {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f4f6fa;
  box-shadow: 0 6px 18px rgba(18, 35, 69, .08);
  margin-bottom: 22px;
}
.preview img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Action buttons ── */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 11px;
  padding: 12px 20px;
  font-family: "Montserrat", sans-serif;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn svg { flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }

.btn--linkedin {
  background: var(--li);
  color: #fff;
  box-shadow: 0 8px 18px rgba(10, 102, 194, .28);
}
.btn--linkedin:hover { background: var(--li-dk); }

.btn--ghost {
  background: #fff;
  color: var(--navy);
  border: 1.5px solid var(--line);
}
.btn--ghost:hover { border-color: var(--navy); background: #f7f9fc; }

/* ── LinkedIn share modal ── */
.li-modal-overlay {
  position: fixed; inset: 0; background: rgba(18, 35, 69, .5);
  display: flex; align-items: center; justify-content: center;
  z-index: 99999; padding: 16px;
}
.li-modal {
  background: #fff; border-radius: 16px; padding: 24px;
  width: min(500px, 96vw); max-height: 92vh; overflow-y: auto;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .28);
}
.li-modal-header {
  display: flex; align-items: center; gap: 9px;
  font-size: 1.02rem; font-weight: 800; color: var(--navy); margin-bottom: 4px;
}
.li-modal-header svg { flex-shrink: 0; }
.li-modal-steps {
  margin: 12px 0 14px; padding: 0; list-style: none;
  counter-reset: step;
}
.li-modal-steps li {
  position: relative; padding-left: 30px; margin-bottom: 8px;
  font-size: .8rem; color: var(--muted); font-weight: 500; line-height: 1.45;
}
.li-modal-steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -1px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--sage); color: var(--navy);
  font-size: .7rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.li-modal textarea {
  width: 100%; height: 190px; border: 1.5px solid #dde3ec;
  border-radius: 9px; padding: 11px 13px; font-family: "Montserrat", sans-serif;
  font-size: .8rem; line-height: 1.55; color: #222; resize: vertical;
  box-sizing: border-box; outline: none;
}
.li-modal textarea:focus { border-color: var(--li); }
.li-modal-actions {
  display: flex; gap: 8px; justify-content: flex-end; align-items: center;
  margin-top: 16px; flex-wrap: wrap;
}
.li-modal-btngroup {
  display: flex; gap: 8px; align-items: center; flex-wrap: nowrap;
}
.li-modal-close {
  margin-right: auto; padding: 10px 12px; border-radius: 8px;
  font-family: "Montserrat", sans-serif; font-size: .82rem; font-weight: 600;
  cursor: pointer; border: none; background: none; color: #8a93a5;
  white-space: nowrap;
}
.li-modal-copy, .li-modal-open { white-space: nowrap; }
.li-modal-close:hover { color: #444; }
.li-modal-copy {
  padding: 10px 18px; border-radius: 9px; font-family: "Montserrat", sans-serif;
  font-size: .82rem; font-weight: 700; cursor: pointer;
  border: 1.5px solid var(--li); background: #fff; color: var(--li); transition: background .15s;
}
.li-modal-copy:hover { background: #e8f0fb; }
.li-modal-open {
  padding: 10px 18px; border-radius: 9px; font-family: "Montserrat", sans-serif;
  font-size: .82rem; font-weight: 800; cursor: pointer;
  border: none; background: var(--li); color: #fff; transition: background .15s;
  display: flex; align-items: center; gap: 6px;
}
.li-modal-open:hover { background: var(--li-dk); }

/* ── Responsive ── */
@media (max-width: 520px) {
  .card__intro { padding: 22px 18px 2px; }
  .card__body  { padding: 18px 18px 24px; }
  .card__title { font-size: 1.28rem; }
  .btn { width: 100%; justify-content: center; }
}


/* Mobile polish for LinkedIn share modal */
@media (max-width: 520px) {
  .li-modal-overlay {
    align-items: flex-start;
    justify-content: center;
    padding: 10px 10px calc(14px + env(safe-area-inset-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .li-modal {
    width: 100%;
    max-width: 500px;
    max-height: none;
    margin: 0 auto;
    padding: 18px;
    border-radius: 14px;
  }

  .li-modal-header {
    font-size: .98rem;
    line-height: 1.25;
  }

  .li-modal-steps li {
    font-size: .78rem;
    line-height: 1.4;
  }

  .li-modal textarea {
    height: 150px;
    max-height: 32vh;
    font-size: .78rem;
  }

  .li-modal-actions {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 10px;
  }

  .li-modal-btngroup {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .li-modal-close,
  .li-modal-copy,
  .li-modal-open {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    text-align: center;
    margin-right: 0;
    white-space: normal;
  }
}

@media (max-width: 380px) {
  .li-modal {
    padding: 16px;
  }

  .li-modal textarea {
    height: 130px;
  }
}

