/* ============================================================
   contact-data.css — Ekran "Dannye kontakta" (sobesednik privatnogo chata)
   Samodostatochnyj polnoekrannyj overlay. Palitra cherez --aya-* s hex-folbekom.
   Temnaya tema — cherez body.dark-theme override. V duhe contact-info.css.
   ============================================================ */

.aya-cd-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: var(--aya-grey-bg, #eef0f2);
  color: var(--text, #1a1d21);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transition: opacity .22s ease;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.aya-cd-overlay.aya-cd-show { opacity: 1; }

body.dark-theme .aya-cd-overlay {
  background: #0d1117;
  color: var(--text, #e6edf3);
}

/* ---------- Shapka (sticky) ---------- */
.aya-cd-header {
  flex: 0 0 auto;
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 12px 10px 8px;
  background: var(--panel, #fff);
  border-bottom: 1px solid var(--border, #e6e8eb);
}
body.dark-theme .aya-cd-header {
  background: var(--panel, #1c2128);
  border-bottom-color: var(--border, #30363d);
}
.aya-cd-back {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  color: var(--text, #1a1d21);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
body.dark-theme .aya-cd-back { color: var(--text, #e6edf3); }
.aya-cd-back:active { background: var(--aya-grey-bg, #eef0f2); }
body.dark-theme .aya-cd-back:active { background: rgba(255, 255, 255, .08); }
.aya-cd-title {
  flex: 1 1 auto;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  color: var(--text, #1a1d21);
}
body.dark-theme .aya-cd-title { color: var(--text, #e6edf3); }
.aya-cd-spacer { flex: 0 0 auto; width: 38px; height: 38px; }

/* ---------- Skroll-kontejner ---------- */
.aya-cd-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 16px calc(env(safe-area-inset-bottom, 0px) + 40px) 16px;
}

/* ---------- Identiti (krupnyj avatar + imya) ---------- */
.aya-cd-identity {
  text-align: center;
  padding: 18px 0 22px;
}
.aya-cd-avatar {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  margin: 0 auto 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--aya-teal, #1a6b82), var(--aya-petrol, #005f6d));
  color: #fff;
  font-size: 44px;
  font-weight: 600;
}
.aya-cd-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aya-cd-name {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text, #1a1d21);
  word-break: break-word;
}
body.dark-theme .aya-cd-name { color: var(--text, #e6edf3); }

/* ---------- Karta-polya ---------- */
.aya-cd-card {
  background: var(--panel, #fff);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 4px;
}
body.dark-theme .aya-cd-card { background: var(--panel, #1c2128); }

.aya-cd-field {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 14px 16px;
  cursor: pointer;
  color: var(--text, #1a1d21);
  font-size: 16px;
  position: relative;
}
body.dark-theme .aya-cd-field { color: var(--text, #e6edf3); }
.aya-cd-field:active { background: var(--aya-grey-bg, #eef0f2); }
body.dark-theme .aya-cd-field:active { background: #252c34; }
.aya-cd-field:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50px;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--border, #eef0f2);
}
body.dark-theme .aya-cd-field:not(:last-child)::after { background: #30363d; }

.aya-cd-field-ic {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: var(--aya-grey2, #52606a);
  display: flex;
  align-items: center;
  justify-content: center;
}
body.dark-theme .aya-cd-field-ic { color: var(--text-secondary, #8b949e); }
.aya-cd-field-ic .ic { width: 22px; height: 22px; }

.aya-cd-field-val {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.aya-cd-field-copy {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--aya-grey, #8a9499);
  display: flex;
  align-items: center;
  justify-content: center;
}
.aya-cd-field-copy .ic { width: 18px; height: 18px; }

/* ---------- Pustoe sostoyanie ---------- */
.aya-cd-empty {
  font-size: 14px;
  color: var(--aya-grey, #8a9499);
  text-align: center;
  padding: 24px 16px;
}

/* ---------- Knopki vnizu ---------- */
.aya-cd-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.aya-cd-btn {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 14px;
  padding: 13px 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  background: var(--panel, #fff);
  color: var(--aya-teal, #1a6b82);
  transition: background .15s ease, opacity .15s ease;
}
body.dark-theme .aya-cd-btn { background: var(--panel, #1c2128); }
.aya-cd-btn:active { opacity: .7; }
.aya-cd-btn .ic { width: 20px; height: 20px; }
.aya-cd-btn--primary {
  background: linear-gradient(160deg, var(--aya-teal, #1a6b82), var(--aya-petrol, #005f6d));
  color: #fff;
}
body.dark-theme .aya-cd-btn--primary {
  background: linear-gradient(160deg, var(--aya-teal, #1a6b82), var(--aya-petrol, #005f6d));
  color: #fff;
}
