/* ACTIRADAR prelansare · blocul de share și fereastra „Ce este ACTIRADAR?”
   Fișier separat, ca să nu depindă de style.css (contorul rămâne neatins). */

/* ---------- Adu-ți și prietenii ---------- */
.share { border: 1px solid var(--line, #27403A); border-radius: 16px; padding: 18px 20px; background: var(--surface, #14241F); max-width: 560px; }
.share h2 { margin: 0 0 6px; font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.share p { margin: 0; font-size: 15px; color: var(--muted, #A3B7B0); }
/* Imaginea care apare la distribuire (aceeași cu og:image), ca oamenii să știe ce trimit și s-o poată posta */
.share-card { margin: 14px 0 0; }
.share-card img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line, #27403A); }
.share-card figcaption { margin-top: 8px; font-size: 13px; color: var(--muted, #A3B7B0); }
.share-card a { color: var(--fg, #EEF3F0); font-weight: 600; text-underline-offset: 3px; }
.share-card a:hover { color: var(--accent, #FF8A50); }
.share .share-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.share .sh {
  -webkit-appearance: none; appearance: none;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px; margin: 0;
  border-radius: 999px; border: 1px solid var(--line, #27403A);
  background: rgba(255, 255, 255, 0.03); color: var(--fg, #EEF3F0);
  font: 600 15px/1 var(--body); text-decoration: none; cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.share .sh svg { flex: 0 0 auto; color: currentColor; }
.share .sh:hover { border-color: var(--accent, #FF8A50); background: rgba(255, 138, 80, 0.08); color: var(--fg, #EEF3F0); }
.share .sh-main { background: var(--accent, #FF8A50); border-color: var(--accent, #FF8A50); color: var(--accent-ink, #1A0E07); }
.share .sh-main:hover { background: #FFA071; color: var(--accent-ink, #1A0E07); }
.share .sh[hidden] { display: none; }
.share .share-msg { margin: 10px 0 0; font-size: 14px; color: var(--good, #6FE0BE); }
.share .share-msg:empty { display: none; }
.signup.done ~ .share { border-color: rgba(255, 138, 80, 0.55); box-shadow: 0 0 0 4px rgba(255, 138, 80, 0.08); }

/* ---------- Butonul de sub radar ---------- */
.radar-wrap { flex-direction: column; align-items: center; gap: 18px; }
.despre-btn {
  -webkit-appearance: none; appearance: none;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1px solid rgba(255, 138, 80, 0.45);
  background: rgba(255, 138, 80, 0.08); color: var(--fg, #EEF3F0);
  font: 600 15px/1 var(--body); cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .15s;
}
.despre-btn svg { color: var(--accent, #FF8A50); }
.despre-btn:hover { background: rgba(255, 138, 80, 0.16); border-color: var(--accent, #FF8A50); }
.despre-btn:active { transform: translateY(1px); }
.despre-btn[hidden] { display: none; }

/* ---------- Fereastra ---------- */
html.cu-dialog { overflow: hidden; }
dialog.despre {
  width: min(560px, calc(100vw - 32px));
  max-height: min(86dvh, 760px);
  margin: auto; padding: 0;
  border: 1px solid rgba(255, 138, 80, 0.28); border-radius: 22px;
  background: linear-gradient(180deg, #172A24 0%, #12221D 100%);
  color: var(--fg, #EEF3F0);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  overflow: hidden;
}
dialog.despre::backdrop { background: rgba(5, 12, 10, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog.despre[open] { animation: despre-in .28s cubic-bezier(.2, .8, .2, 1); }
dialog.despre[open]::backdrop { animation: despre-fade .28s ease; }
@keyframes despre-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes despre-fade { from { opacity: 0; } to { opacity: 1; } }

.despre-in { position: relative; max-height: inherit; overflow-y: auto; overscroll-behavior: contain; padding: 26px 26px 24px; }
.despre-x {
  -webkit-appearance: none; appearance: none;
  position: sticky; top: 0; float: right; margin: -10px -10px 0 12px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line, #27403A); background: #1B302A; color: var(--fg, #EEF3F0); cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.despre-x:hover { background: #24403A; border-color: var(--accent, #FF8A50); }
.despre-marca { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--accent, #FF8A50); }
.despre-marca span { font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .08em; color: var(--fg, #EEF3F0); }
.despre h2 { margin: 0 0 12px; font-family: var(--display); font-size: clamp(24px, 4.6vw, 30px); line-height: 1.1; letter-spacing: -0.015em; }
.despre h3 { margin: 22px 0 10px; font-family: var(--display); font-size: 17px; color: var(--accent, #FF8A50); letter-spacing: .01em; }
.despre p { margin: 0 0 12px; font-size: 16px; line-height: 1.6; color: #D2DED9; }
.despre-pasi { list-style: none; counter-reset: pas; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.despre-pasi li { counter-increment: pas; position: relative; padding: 12px 14px 12px 52px; border-radius: 14px; background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.05); font-size: 15.5px; line-height: 1.5; color: var(--fg, #EEF3F0); }
.despre-pasi li::before {
  content: counter(pas); position: absolute; left: 12px; top: 11px;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent, #FF8A50); color: var(--accent-ink, #1A0E07);
  font: 700 14px/1 var(--display);
}
.despre-cta {
  display: flex; align-items: center; justify-content: center;
  min-height: 52px; margin-top: 8px; border-radius: 14px;
  background: var(--accent, #FF8A50); color: var(--accent-ink, #1A0E07) !important;
  font: 700 16px/1 var(--display); text-decoration: none;
}
.despre-cta:hover { background: #FFA071; }

/* pe telefon: foaie care urcă de jos, cu prinderea pentru deget */
@media (max-width: 600px) {
  dialog.despre {
    width: 100vw; max-width: 100vw; max-height: 88dvh;
    margin: auto 0 0; border-radius: 22px 22px 0 0; border-bottom: 0;
  }
  dialog.despre[open] { animation: despre-sus .32s cubic-bezier(.2, .8, .2, 1); }
  .despre-in { padding: 22px 20px calc(22px + env(safe-area-inset-bottom, 0px)); }
  .despre-in::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.18); margin: -8px auto 14px; }
  @keyframes despre-sus { from { transform: translateY(100%); } to { transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  dialog.despre[open], dialog.despre[open]::backdrop { animation: none; }
}
