/* =============================================================================
   NexArt — Email capture bar (global, sticky bottom)
   ============================================================================= */

.nx-email-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9990;
    background: var(--nx-bg-card, #111111);
    border-top: 1px solid rgba(217, 164, 65, 0.28);
    box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.50);
    transform: translateY(100%);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.nx-email-bar.is-visible {
    transform: translateY(0);
}

.nx-email-bar-inner {
    max-width: var(--nx-max, 1280px);
    margin: 0 auto;
    padding: 18px 28px;
    display: flex;
    align-items: center;
    gap: 28px;
}

/* ── Text ───────────────────────────────────────────────────────────────── */

.nx-email-bar-text {
    flex: 1;
    min-width: 0;
}

.nx-email-bar-text strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--nx-text, #f5f5f5);
    letter-spacing: 0.01em;
}

.nx-email-bar-text span {
    display: block;
    font-size: 12px;
    color: var(--nx-text-muted, #aaaaaa);
    margin-top: 2px;
}

/* ── Form ───────────────────────────────────────────────────────────────── */

.nx-email-bar-form {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.nx-email-bar-form input[type="email"] {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--nx-text, #f5f5f5);
    font-family: inherit;
    font-size: 13px;
    padding: 10px 16px;
    border-radius: var(--nx-radius, 8px);
    width: 230px;
    outline: none;
    transition: border-color 0.22s ease;
}

.nx-email-bar-form input[type="email"]::placeholder {
    color: var(--nx-text-muted, #aaaaaa);
}

.nx-email-bar-form input[type="email"]:focus {
    border-color: rgba(217, 164, 65, 0.55);
}

.nx-email-bar-form button[type="submit"] {
    background: var(--nx-gold, #d9a441);
    color: #080808;
    border: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 10px 22px;
    border-radius: var(--nx-radius, 8px);
    cursor: pointer;
    transition: background 0.22s ease;
    white-space: nowrap;
}

.nx-email-bar-form button[type="submit"]:hover {
    background: var(--nx-gold-light, #e8b85a);
}

.nx-email-bar-form button[type="submit"]:disabled {
    opacity: 0.5;
    cursor: default;
}

/* ── Success state ──────────────────────────────────────────────────────── */

.nx-email-bar-success {
    display: none;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--nx-gold, #d9a441);
    flex-shrink: 0;
}

/* ── Close button ───────────────────────────────────────────────────────── */

.nx-email-bar-close {
    background: none;
    border: none;
    color: var(--nx-text-muted, #aaaaaa);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 6px;
    flex-shrink: 0;
    transition: color 0.18s ease;
}

.nx-email-bar-close:hover {
    color: var(--nx-text, #f5f5f5);
}

/* ── Reduced motion ─────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    .nx-email-bar {
        transition: none;
    }
}

/* ── Mobile ─────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .nx-email-bar-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 16px 16px 20px;
        position: relative;
    }

    .nx-email-bar-text { padding-right: 32px; }

    .nx-email-bar-form {
        width: 100%;
    }

    .nx-email-bar-form input[type="email"] {
        flex: 1;
        width: auto;
        min-width: 0;
    }

    .nx-email-bar-close {
        position: absolute;
        top: 14px;
        right: 14px;
    }
}
