/* rdap-tool.css – Sprawdź Wiek Domeny */

.rdap-tool-wrap {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 0 48px;
  --accent:       #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: #eff6ff;
  --accent-mid:   #bfdbfe;
  --text:         #0f172a;
  --text-2:       #475569;
  --text-3:       #94a3b8;
  --border:       #e2e8f0;
  --border-2:     #cbd5e1;
  --bg-soft:      #f8fafc;
  --green:        #16a34a;
  --green-bg:     #f0fdf4;
  --orange:       #d97706;
  --orange-bg:    #fffbeb;
  --red:          #dc2626;
  --red-bg:       #fef2f2;
}

/* Header */
.rdap-header { margin-bottom: 28px; }

.rdap-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  border-radius: 100px;
  margin-bottom: 12px;
}
.rdap-badge svg { width: 11px; height: 11px; }

.rdap-tool-wrap h2 {
  font-size: clamp(22px, 4vw, 30px) !important;
  font-weight: 700 !important;
  letter-spacing: -.025em !important;
  color: var(--text) !important;
  line-height: 1.2 !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
  border: none !important;
}
.rdap-tool-wrap h2 em { font-style: normal; color: var(--accent); }
.rdap-header p { font-size: 15px; color: var(--text-2); line-height: 1.6; margin: 0; }

/* Search */
.rdap-search { display: flex; gap: 8px; margin-bottom: 8px; }
.rdap-field { flex: 1; position: relative; }
.rdap-field svg {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--text-3); width: 18px; height: 18px; pointer-events: none;
}
#rdap-input {
  width: 100% !important;
  height: 48px !important;
  padding: 0 14px 0 40px !important;
  border: 1.5px solid var(--border-2) !important;
  border-radius: 8px !important;
  background: #fff !important;
  font-family: inherit !important;
  font-size: 15px !important;
  color: var(--text) !important;
  outline: none !important;
  box-shadow: none !important;
  transition: border-color .18s, box-shadow .18s !important;
  margin: 0 !important;
}
#rdap-input:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12) !important;
}
#rdap-input::placeholder { color: var(--text-3); }

#rdap-btn {
  height: 48px !important;
  padding: 0 20px !important;
  background: var(--accent) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  white-space: nowrap !important;
  transition: background .18s, box-shadow .18s, transform .1s !important;
  box-shadow: 0 2px 6px rgba(37,99,235,.4) !important;
  line-height: 1 !important;
}
#rdap-btn:hover { background: var(--accent-hover) !important; box-shadow: 0 4px 12px rgba(37,99,235,.45) !important; }
#rdap-btn:active { transform: scale(.97) !important; }
#rdap-btn:disabled { background: #93b4f8 !important; cursor: not-allowed !important; box-shadow: none !important; }
#rdap-btn svg { width: 15px; height: 15px; }

.rdap-spinner {
  display: none;
  width: 17px; height: 17px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: rdap-spin .65s linear infinite;
}
@keyframes rdap-spin { to { transform: rotate(360deg); } }

/* Error */
.rdap-error {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: var(--red-bg);
  border: 1px solid #fca5a5;
  border-radius: 8px;
  color: var(--red);
  font-size: 14px;
  margin-top: 10px;
}
.rdap-error.show { display: flex; }
.rdap-error svg { flex-shrink: 0; width: 15px; height: 15px; }

/* Results */
.rdap-results {
  display: none;
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(15,23,42,.06), 0 12px 40px rgba(15,23,42,.1);
  animation: rdap-reveal .3s cubic-bezier(.22,.68,0,1.15) both;
}
@keyframes rdap-reveal {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.rdap-res-top {
  background: linear-gradient(130deg, #1e3a8a 0%, #2563eb 100%);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.rdap-res-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,.15);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.rdap-res-icon svg { width: 22px; height: 22px; color: #fff; }
.rdap-domain-name { font-size: 20px; font-weight: 700; color: #fff; letter-spacing: -.02em; word-break: break-all; }
.rdap-domain-sub  { font-size: 12px; color: rgba(255,255,255,.65); margin-top: 2px; }

.rdap-age-strip {
  background: var(--accent-light);
  border-bottom: 1px solid var(--accent-mid);
  padding: 16px 24px;
  display: flex; align-items: center; gap: 20px;
}
.rdap-age-num  { font-family: 'DM Mono', monospace; font-size: 42px; font-weight: 500; color: var(--accent); line-height: 1; min-width: 54px; text-align: center; }
.rdap-age-label{ font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); opacity: .7; }
.rdap-age-val  { font-size: 16px; font-weight: 600; color: var(--accent); margin-top: 2px; }

.rdap-body { background: #fff; }

.rdap-section-label {
  padding: 14px 24px 6px;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-3);
  border-top: 1px solid var(--border);
}

.rdap-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; gap: 16px;
  border-top: 1px solid var(--border);
}
.rdap-row-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rdap-ico {
  width: 28px; height: 28px; border-radius: 7px; background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.rdap-ico svg { width: 14px; height: 14px; color: var(--text-2); }
.rdap-row-left > span { font-size: 14px; color: var(--text-2); font-weight: 400; }

.rdap-val { font-size: 14px; font-weight: 600; color: var(--text); font-family: 'DM Mono', monospace; text-align: right; }
.rdap-plain { font-family: inherit; font-size: 13px; }
.rdap-warn   { color: var(--orange) !important; }
.rdap-danger { color: var(--red) !important; }

.rdap-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 100px;
  font-size: 12px; font-weight: 600;
}
.rdap-pill::before { content:''; width:6px; height:6px; border-radius:50%; background:currentColor; }
.rdap-pill.ok     { background: var(--green-bg); color: var(--green); }
.rdap-pill.warn   { background: var(--orange-bg); color: var(--orange); }
.rdap-pill.danger { background: var(--red-bg); color: var(--red); }

.rdap-dns-list { padding: 6px 24px 16px 62px; display: flex; flex-direction: column; gap: 4px; }
.rdap-dns-item {
  font-size: 13px; font-family: 'DM Mono', monospace; color: var(--text-2);
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 6px; padding: 5px 10px;
}

.rdap-source-note {
  padding: 10px 24px; font-size: 11.5px; color: var(--text-3);
  background: var(--bg-soft); border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 6px;
}
.rdap-source-note svg { width: 12px; height: 12px; flex-shrink: 0; }

@media (max-width: 480px) {
  .rdap-search { flex-direction: column; }
  #rdap-btn { width: 100% !important; justify-content: center !important; }
  .rdap-age-strip { gap: 12px; }
  .rdap-age-num { font-size: 34px; }
}
