/* What Is My IP program — styles scoped to the myip window. */

.window--myip {
  --accent: #2f6cb0;
  --accent-soft: rgba(47, 108, 176, 0.12);
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  max-width: 600px;
}

.window--myip .window-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
}

.myip-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 0 6px;
}

.myip-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.myip-address {
  position: relative;
  font-family: var(--font-mono);
  font-size: clamp(1.3rem, 5vw, 2.1rem);
  font-weight: 600;
  color: var(--ink);
  background: var(--accent-soft);
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  max-width: 100%;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.myip-address:hover {
  background: rgba(47, 108, 176, 0.2);
}

.myip-type {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  min-height: 1em;
}

.myip-error {
  font-size: 0.85rem;
  color: #c0392b;
  text-align: center;
}

.myip-facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 18px;
  border-top: 1px solid #ececee;
  padding-top: 16px;
}

.myip-facts:empty {
  display: none;
}

.myip-facts dt {
  font-size: 0.85rem;
  color: var(--muted);
  align-self: center;
}

.myip-facts dd {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--ink);
  text-align: right;
  overflow-wrap: anywhere;
  cursor: pointer;
  border-radius: 6px;
  padding: 2px 6px;
}

.myip-facts dd:hover {
  background: #f2f3f5;
}

.myip-facts dd.is-copied::after,
.myip-address.is-copied::after {
  content: 'copied!';
  position: absolute;
  right: 6px;
  top: -1.3em;
  font-size: 0.7rem;
  font-family: var(--font-ui);
  font-weight: 400;
  color: #fff;
  background: var(--ink);
  border-radius: 5px;
  padding: 2px 7px;
}

.myip-hint {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 480px) {
  .window--myip .window-body {
    padding: 20px 16px;
  }

  .myip-facts dd {
    font-size: 0.85rem;
  }
}
