/* Email reveal popup — global, shared across all pages.
   Replaces the silent-failure mailto: behavior with an inline
   reveal that shows the address + subject + copy buttons + a
   fallback "open mail app" link. Markup lives in partials/footer.php. */

.fn-mailpop {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
}

.fn-mailpop.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.fn-mailpop__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 15, 15, 0.55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.fn-mailpop__dialog {
    position: relative;
    background: #ffffff;
    color: #1d1d1b;
    border-radius: 14px;
    padding: 28px 24px;
    width: min(420px, calc(100vw - 32px));
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: fnMailpopIn .25s ease-out;
}

@keyframes fnMailpopIn {
    from { opacity: 0; transform: translateY(8px) scale(.98); }
    to   { opacity: 1; transform: none; }
}

.fn-mailpop__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}

.fn-mailpop__close:hover { background: rgba(0, 0, 0, 0.1); }

.fn-mailpop__title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 6px;
    padding-right: 32px;
}

.fn-mailpop__tip {
    font-size: 13px;
    color: rgba(29, 29, 27, 0.65);
    margin: 0 0 18px;
    line-height: 1.5;
}

.fn-mailpop__row {
    background: #f4f5f7;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fn-mailpop__field {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.fn-mailpop__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: rgba(29, 29, 27, 0.5);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.fn-mailpop__value {
    font-size: 14px;
    font-weight: 600;
    word-break: break-all;
    line-height: 1.35;
}

.fn-mailpop__copy {
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    font-family: inherit;
    color: #1d1d1b;
    transition: all .2s;
}

.fn-mailpop__copy:hover { background: #1d1d1b; color: #fff; border-color: #1d1d1b; }
.fn-mailpop__copy.is-copied { background: #88c4bc; color: #1d1d1b; border-color: #88c4bc; }

.fn-mailpop__actions {
    display: flex;
    gap: 8px;
    margin-top: 18px;
}

.fn-mailpop__btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: all .2s;
}

.fn-mailpop__btn--primary { background: #88c4bc; color: #1d1d1b; }
.fn-mailpop__btn--primary:hover { background: #6aae9f; }

.fn-mailpop__btn--ghost {
    background: transparent;
    color: #1d1d1b;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.fn-mailpop__btn--ghost:hover { background: rgba(0, 0, 0, 0.05); }

@media (max-width: 480px) {
    .fn-mailpop__dialog { padding: 24px 20px; }
    .fn-mailpop__actions { flex-direction: column-reverse; }
}
