/* ==========================================================================
   FatDig standalone tools — shared styles (modern brand)
   Layered on top of /fdu/fdu.css (which provides the topbar, footer, tokens).
   ========================================================================== */

.fd-tool {
    max-width: 880px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}

/* ---------- Hero / search ---------- */
.fd-tool-hero {
    text-align: center;
    padding: 1rem 0 2rem;
    border-bottom: 1px solid var(--fd-line, #e3e8f0);
    margin-bottom: 2rem;
}
.fd-tool-hero__eyebrow {
    display: inline-block;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--fd-blue, #3169bb);
    margin-bottom: 0.6rem;
}
.fd-tool-hero__title {
    font-family: 'Open Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(1.7rem, 3.5vw, 2.5rem);
    color: var(--fd-ink, #1a2233);
    line-height: 1.15;
    margin: 0 0 0.75rem;
    letter-spacing: -0.015em;
}
.fd-tool-hero__desc {
    color: var(--fd-ink-soft, #51607a);
    font-size: 1.08rem;
    max-width: 60ch;
    margin: 0 auto 1.75rem;
    line-height: 1.5;
}
.fd-tool-form {
    display: flex;
    gap: 0.6rem;
    max-width: 520px;
    margin: 0 auto;
}
.fd-tool-form__input {
    flex: 1;
    font: inherit;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border: 2px solid var(--fd-line, #e3e8f0);
    border-radius: 10px;
    background: #fff;
    color: var(--fd-ink, #1a2233);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.fd-tool-form__input:focus {
    outline: none;
    border-color: var(--fd-blue, #3169bb);
    box-shadow: 0 0 0 4px rgba(49,105,187,0.14);
}
.fd-tool-form__btn {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    background: var(--fd-blue, #3169bb);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s ease;
}
.fd-tool-form__btn:hover { background: var(--fd-blue-dark, #234c8a); }
.fd-tool-form__btn:disabled { opacity: 0.6; cursor: wait; }

.fd-tool__searching {
    text-align: center;
    color: var(--fd-ink-soft);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* "Searching: domain" label above results */
.fd-tool__target {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--fd-ink-soft);
    margin: 0 0 1.5rem;
}
.fd-tool__target strong { color: var(--fd-ink); }

/* ---------- Status pills ---------- */
.fd-pill {
    display: inline-block;
    font-family: 'Open Sans', sans-serif;
    font-weight: 800;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 11px;
    border-radius: 999px;
    vertical-align: middle;
}
.fd-pill--ok      { background: #dcfce7; color: #166534; }
.fd-pill--warn    { background: #fef3c7; color: #92400e; }
.fd-pill--missing { background: #e5e7eb; color: #374151; }
.fd-pill--invalid { background: #fee2e2; color: #991b1b; }

/* ---------- Result cards ---------- */
.fd-tool-card {
    background: #fff;
    border: 1px solid var(--fd-line, #e3e8f0);
    border-radius: 14px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.25rem;
}
.fd-tool-card__head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.fd-tool-card__title {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--fd-ink, #1a2233);
    margin: 0;
}
.fd-tool-card__record {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.88rem;
    background: #fafbfc;
    border: 1px solid var(--fd-line);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    color: var(--fd-ink);
    word-break: break-all;
    line-height: 1.5;
    margin: 0 0 1rem;
}
.fd-tool-kv {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
    margin: 0 0 1rem;
}
.fd-tool-kv__item {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
}
.fd-tool-kv__label {
    color: var(--fd-ink-soft);
    font-weight: 600;
    margin-right: 0.4rem;
}
.fd-tool-kv__value {
    color: var(--fd-ink);
    font-weight: 700;
}
.fd-tool-card__note {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--fd-ink-soft);
    margin: 0.5rem 0 0;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-left: 3px solid var(--fd-line);
    border-radius: 6px;
}
.fd-tool-card__note--warn { background: #fffbeb; border-left-color: #d97706; color: #78350f; }
.fd-tool-card__note--ok   { background: #f0fdf4; border-left-color: #16a34a; color: #166534; }

/* Copy button */
.fd-tool-copy {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    background: var(--fd-blue-50, #eaf1fb);
    color: var(--fd-blue-dark, #234c8a);
    border: none;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 0.5rem;
}
.fd-tool-copy:hover { background: var(--fd-blue, #3169bb); color: #fff; }

/* DKIM selector list */
.fd-tool-selectors { list-style: none; padding: 0; margin: 0; }
.fd-tool-selectors li {
    background: #fafbfc;
    border: 1px solid var(--fd-line);
    border-radius: 8px;
    padding: 0.6rem 0.85rem;
    margin-bottom: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    word-break: break-all;
}
.fd-tool-selectors li:last-child { margin-bottom: 0; }
.fd-tool-selectors strong { color: var(--fd-blue-dark); }

/* CAA / generic entry list */
.fd-tool-entries { list-style: none; padding: 0; margin: 0; }
.fd-tool-entries li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--fd-line);
}
.fd-tool-entries li:last-child { border-bottom: none; }
.fd-tool-entries .tag {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--fd-blue-50);
    color: var(--fd-blue-dark);
    padding: 2px 8px;
    border-radius: 4px;
}
.fd-tool-entries code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--fd-ink);
}

/* ---------- Tech-stack chips (mirror of dig page) ---------- */
.fd-tech-group { margin-bottom: 1.5rem; }
.fd-tech-group:last-child { margin-bottom: 0; }
.fd-tech-group__label {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--fd-ink-soft);
    margin-bottom: 0.6rem;
}
.fd-tech-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.fd-tech-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid var(--fd-line);
    border-radius: 999px;
    padding: 4px 12px 4px 4px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85rem;
    color: var(--fd-ink);
    cursor: help;
}
.fd-tech-chip--med { opacity: 0.92; }
.fd-tech-chip--low { opacity: 0.75; border-style: dashed; }
.fd-tech-chip__avatar {
    width: 24px; height: 24px;
    border-radius: 50%;
    color: #fff;
    font-weight: 800;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}
.fd-tech-chip__name { font-weight: 600; }
.fd-tech-chip__ver {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--fd-ink-soft);
    background: var(--fd-line);
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 0.2rem;
}

/* ---------- Secrets ---------- */
.fd-secrets-clean {
    display: flex; gap: 1rem; align-items: center;
    background: #f0fdf4; border: 1px solid #86efac;
    border-radius: 10px; padding: 1.25rem 1.5rem;
}
.fd-secrets-clean strong { color: #166534; }
.fd-secrets-banner {
    background: #fef2f2; border: 1px solid #fca5a5; border-left: 4px solid #dc2626;
    border-radius: 10px; padding: 1rem 1.25rem;
    display: flex; gap: 0.85rem; align-items: flex-start;
    margin-bottom: 1rem; font-size: 0.92rem; line-height: 1.55; color: var(--fd-ink);
}
.fd-secrets-banner strong { color: #991b1b; }
.fd-secrets-list { list-style: none; padding: 0; margin: 0; }
.fd-secret {
    background: #fff; border: 1px solid var(--fd-line);
    border-left: 4px solid var(--fd-line); border-radius: 8px;
    padding: 0.85rem 1rem; margin-bottom: 0.6rem;
}
.fd-secret:last-child { margin-bottom: 0; }
.fd-secret--critical { border-left-color: #dc2626; background: #fef2f2; }
.fd-secret--high     { border-left-color: #ea580c; background: #fff7ed; }
.fd-secret--medium   { border-left-color: #d97706; background: #fffbeb; }
.fd-secret--low      { border-left-color: #ca8a04; background: #fefce8; }
.fd-secret__head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-bottom: 0.35rem; }
.fd-secret__kind { font-family: 'Open Sans', sans-serif; font-weight: 700; font-size: 0.92rem; color: var(--fd-ink); }
.fd-secret__value {
    font-family: 'JetBrains Mono', monospace; font-size: 0.82rem;
    background: rgba(0,0,0,0.06); padding: 2px 8px; border-radius: 4px; color: var(--fd-ink);
}
.fd-secret__len { font-family: 'Open Sans', sans-serif; font-size: 0.75rem; color: var(--fd-ink-soft); }
.fd-secret__ctx {
    font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: var(--fd-ink-soft);
    background: rgba(255,255,255,0.7); padding: 0.45rem 0.7rem; border-radius: 6px;
    margin-top: 0.4rem; word-break: break-all; line-height: 1.5;
}
.fd-sev-badge {
    display: inline-block; font-family: 'Open Sans', sans-serif; font-weight: 800;
    font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase;
    padding: 3px 9px; border-radius: 999px;
}
.fd-sev-critical { background: #dc2626; color: #fff; }
.fd-sev-high     { background: #ea580c; color: #fff; }
.fd-sev-medium   { background: #d97706; color: #fff; }
.fd-sev-low      { background: #ca8a04; color: #fff; }

/* Cross-link to advanced dig under results */
.fd-tool-upsell {
    margin-top: 2rem;
    background: linear-gradient(135deg, var(--fd-blue, #3169bb), var(--fd-blue-dark, #234c8a));
    color: #fff;
    border-radius: 14px;
    padding: 1.5rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.fd-tool-upsell__text { margin: 0; font-size: 0.98rem; line-height: 1.5; max-width: 60ch; }
.fd-tool-upsell__text strong { font-weight: 800; }
.fd-tool-upsell__btn {
    background: #fff; color: var(--fd-blue) !important;
    font-family: 'Open Sans', sans-serif; font-weight: 700;
    padding: 0.7rem 1.4rem; border-radius: 999px;
    text-decoration: none !important; white-space: nowrap;
}
.fd-tool-upsell__btn:hover { transform: translateY(-1px); }

/* Empty/error message */
.fd-tool-msg {
    background: #fffbeb; border: 1px solid #fde68a; border-left: 4px solid #d97706;
    color: #78350f; border-radius: 10px; padding: 1rem 1.25rem;
    font-family: 'Open Sans', sans-serif; font-size: 0.95rem;
}

@media (max-width: 560px) {
    .fd-tool-form { flex-direction: column; }
    .fd-tool-upsell { flex-direction: column; align-items: flex-start; }
}
